Skip to content

Commit 866cd1f

Browse files
authored
[migrate] replace Animate.css with View Transition API (#9)
1 parent edbc637 commit 866cd1f

File tree

8 files changed

+4748
-4019
lines changed

8 files changed

+4748
-4019
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

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm test

.husky/pre-push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm run build

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ https://web-cell-scaffold.vercel.app/
2626

2727
- [x] **Async Loading** (based on `import()` ECMAScript syntax)
2828

29-
- [x] [Animate.css][7] based **Page Transition Animation**
29+
- [x] [View Transition API][7] based **Page Transition Animation**
3030

3131
## Installation
3232

@@ -164,4 +164,4 @@ new DOMRenderer().render(
164164
[4]: https://libraries.io/npm/cell-router
165165
[5]: https://github.com/EasyWebApp/cell-router/actions/workflows/main.yml
166166
[6]: https://nodei.co/npm/cell-router/
167-
[7]: https://animate.style/
167+
[7]: https://developer.chrome.com/docs/web-platform/view-transitions/

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cell-router",
3-
"version": "3.0.0-rc.5",
3+
"version": "3.0.0-rc.7",
44
"license": "LGPL-3.0",
55
"description": "Web Component Router based on WebCell & MobX",
66
"keywords": [
@@ -24,40 +24,40 @@
2424
"main": "dist/index.js",
2525
"module": "dist/index.esm.js",
2626
"dependencies": {
27-
"@swc/helpers": "^0.5.3",
28-
"dom-renderer": "^2.0.6",
27+
"@swc/helpers": "^0.5.11",
28+
"dom-renderer": "^2.1.7",
2929
"mobx": ">=6.11",
3030
"regenerator-runtime": "^0.14.1",
31-
"urlpattern-polyfill": "^9.0.0",
32-
"web-cell": "^3.0.0-rc.7",
33-
"web-utility": "^4.1.3"
31+
"urlpattern-polyfill": "^10.0.0",
32+
"web-cell": "^3.0.0-rc.16",
33+
"web-utility": "^4.4.0"
3434
},
3535
"devDependencies": {
36-
"@parcel/config-default": "~2.11.0",
37-
"@parcel/packager-ts": "~2.11.0",
38-
"@parcel/transformer-less": "~2.11.0",
39-
"@parcel/transformer-typescript-tsc": "~2.11.0",
40-
"@parcel/transformer-typescript-types": "~2.11.0",
41-
"@types/jest": "^29.5.11",
42-
"element-internals-polyfill": "^1.3.10",
36+
"@parcel/config-default": "~2.12.0",
37+
"@parcel/packager-ts": "~2.12.0",
38+
"@parcel/transformer-less": "~2.12.0",
39+
"@parcel/transformer-typescript-tsc": "~2.12.0",
40+
"@parcel/transformer-typescript-types": "~2.12.0",
41+
"@types/jest": "^29.5.12",
42+
"element-internals-polyfill": "^1.3.11",
4343
"fs-match": "^1.7.1",
44-
"husky": "^8.0.3",
44+
"husky": "^9.0.11",
4545
"jest": "^29.7.0",
4646
"jest-environment-jsdom": "^29.7.0",
4747
"koapache": "^2.2.2",
48-
"lint-staged": "^15.2.0",
49-
"parcel": "~2.11.0",
50-
"prettier": "^3.2.2",
48+
"lint-staged": "^15.2.7",
49+
"parcel": "~2.12.0",
50+
"prettier": "^3.3.2",
5151
"process": "^0.11.10",
52-
"puppeteer-core": "^21.7.0",
53-
"rimraf": "^5.0.5",
54-
"ts-jest": "^29.1.1",
55-
"typedoc": "^0.25.7",
56-
"typedoc-plugin-mdn-links": "^3.1.12",
57-
"typescript": "~5.3.3"
52+
"puppeteer-core": "^22.11.0",
53+
"rimraf": "^5.0.7",
54+
"ts-jest": "^29.1.4",
55+
"typedoc": "^0.25.13",
56+
"typedoc-plugin-mdn-links": "^3.1.29",
57+
"typescript": "~5.4.5"
5858
},
5959
"scripts": {
60-
"prepare": "husky install",
60+
"prepare": "husky",
6161
"set-chrome": "app-find chrome -c",
6262
"preview": "cd test/ && rimraf ../.parcel-cache/ dist/ && parcel --open",
6363
"pack-preview": "cd test/ && rimraf ../.parcel-cache/ dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",

0 commit comments

Comments
 (0)