Skip to content

Commit 28b30a1

Browse files
committed
[add] Basic Support of View Transition API
[optimize] upgrade to PNPM 9 & other latest Upstream packages
1 parent cb56015 commit 28b30a1

File tree

9 files changed

+4509
-3773
lines changed

9 files changed

+4509
-3773
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
- uses: pnpm/action-setup@v2
1313
with:
14-
version: 8
14+
version: 9
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 18

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: pnpm/action-setup@v2
1717
with:
18-
version: 8
18+
version: 9
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 18

Migrating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ MobX's [`@observable`][4] & [`reaction()`][5] are awesome APIs to implement thes
6060
npm install mobx
6161
```
6262

63-
On the other hand, [`mobx-web-cell` adapter][6] has been merged into the core package. And cause of replacing **Prototype Overwrite** with **Class Inheritance** to refactor **Class Mixins**, `@observer` decorator should follow strict order to make observation work:
63+
On the other hand, [`mobx-web-cell` adapter][6] has been merged into the core package.
6464

6565
```diff
6666
+import { JsxProps } from 'dom-renderer';

ReadMe.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class MyButton extends HTMLElement {
283283
<>
284284
<link
285285
rel="stylesheet"
286-
href="https://unpkg.com/[email protected].2/dist/css/bootstrap.min.css"
286+
href="https://unpkg.com/[email protected].3/dist/css/bootstrap.min.css"
287287
/>
288288
<a className="btn">
289289
<slot />
@@ -496,7 +496,8 @@ import 'web-cell/polyfill';
496496
- [Shadow DOM][25]
497497
- [Element Internals][26]
498498
- [CSS variables][27]
499-
- [ECMAScript 6+][28]
499+
- [View transitions][28]
500+
- [ECMAScript 6+][29]
500501
- [TypeScript 5+][4]
501502

502503
## Life Cycle hooks
@@ -573,7 +574,8 @@ We recommend these libraries to use with WebCell:
573574
[25]: https://web.dev/articles/shadowdom-v1
574575
[26]: https://web.dev/articles/more-capable-form-controls
575576
[27]: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
576-
[28]: http://es6-features.org/
577+
[28]: https://developer.chrome.com/docs/web-platform/view-transitions/
578+
[29]: http://es6-features.org/
577579
[30]: https://web-cell.dev/web-utility/interfaces/CustomElement.html#connectedCallback
578580
[31]: https://web-cell.dev/web-utility/interfaces/CustomElement.html#disconnectedCallback
579581
[32]: https://web-cell.dev/web-utility/interfaces/CustomElement.html#attributeChangedCallback

package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-cell",
3-
"version": "3.0.0-rc.15",
3+
"version": "3.0.0-rc.16",
44
"description": "Web Components engine based on VDOM, JSX, MobX & TypeScript",
55
"keywords": [
66
"web",
@@ -26,11 +26,11 @@
2626
"source": "source/index.ts",
2727
"types": "dist/index.d.ts",
2828
"dependencies": {
29-
"@swc/helpers": "^0.5.6",
30-
"dom-renderer": "^2.1.3",
29+
"@swc/helpers": "^0.5.11",
30+
"dom-renderer": "^2.1.7",
3131
"mobx": ">=6.11",
3232
"regenerator-runtime": "^0.14.1",
33-
"web-utility": "^4.1.3"
33+
"web-utility": "^4.4.0"
3434
},
3535
"peerDependencies": {
3636
"@webcomponents/webcomponentsjs": "^2.8",
@@ -40,33 +40,34 @@
4040
},
4141
"devDependencies": {
4242
"@jest/types": "^29.6.3",
43-
"@parcel/config-default": "~2.11.0",
44-
"@parcel/packager-ts": "~2.11.0",
45-
"@parcel/transformer-typescript-tsc": "~2.11.0",
46-
"@parcel/transformer-typescript-types": "~2.11.0",
43+
"@parcel/config-default": "~2.12.0",
44+
"@parcel/packager-ts": "~2.12.0",
45+
"@parcel/transformer-typescript-tsc": "~2.12.0",
46+
"@parcel/transformer-typescript-types": "~2.12.0",
47+
"@types/dom-view-transitions": "^1.0.4",
4748
"@types/jest": "^29.5.12",
48-
"@typescript-eslint/eslint-plugin": "^6.21.0",
49-
"@typescript-eslint/parser": "^6.21.0",
50-
"core-js": "^3.35.1",
51-
"element-internals-polyfill": "^1.3.10",
52-
"eslint": "^8.56.0",
49+
"@typescript-eslint/eslint-plugin": "^7.13.0",
50+
"@typescript-eslint/parser": "^7.13.0",
51+
"core-js": "^3.37.1",
52+
"element-internals-polyfill": "^1.3.11",
53+
"eslint": "^8.57.0",
5354
"eslint-config-prettier": "^9.1.0",
54-
"husky": "^9.0.10",
55+
"husky": "^9.0.11",
5556
"jest": "^29.7.0",
5657
"jest-environment-jsdom": "^29.7.0",
57-
"jsdom": "^24.0.0",
58-
"lint-staged": "^15.2.2",
58+
"jsdom": "^24.1.0",
59+
"lint-staged": "^15.2.7",
5960
"open-cli": "^8.0.0",
60-
"parcel": "~2.11.0",
61-
"prettier": "^3.2.5",
61+
"parcel": "~2.12.0",
62+
"prettier": "^3.3.2",
6263
"prettier-plugin-sh": "^0.14.0",
6364
"replace": "^1.2.2",
64-
"rimraf": "^5.0.5",
65-
"ts-jest": "^29.1.2",
65+
"rimraf": "^5.0.7",
66+
"ts-jest": "^29.1.4",
6667
"ts-node": "^10.9.2",
67-
"typedoc": "^0.25.8",
68-
"typedoc-plugin-mdn-links": "^3.1.15",
69-
"typescript": "~5.3.3"
68+
"typedoc": "^0.25.13",
69+
"typedoc-plugin-mdn-links": "^3.1.29",
70+
"typescript": "~5.4.5"
7071
},
7172
"scripts": {
7273
"prepare": "husky",

0 commit comments

Comments
 (0)