Skip to content

Commit d6beff9

Browse files
committed
[add] Cookie Store polyfill
[optimize] upgrade to PNPM 10, Dot Env 17, Happy DOM 18, Marked 16, Lint Staged 16 & other latest Upstream packages [fix] replace the Fake Open Source CDN with a real one
1 parent d5ba83a commit d6beff9

File tree

6 files changed

+582
-647
lines changed

6 files changed

+582
-647
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
WAN_ICON=🇺🇳
22
WAN_HOST=https://polyfill.web-cell.dev
33
LAN_ICON=🇨🇳
4-
LAN_HOST=https://polyfill.kaiyuanshe.cn
4+
LAN_HOST=https://polyfill.web-conf.dev

.github/workflows/main.yml

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

1212
- uses: pnpm/action-setup@v4
1313
with:
14-
version: 9
14+
version: 10
1515

1616
- uses: actions/setup-node@v4
1717
with:
@@ -31,16 +31,3 @@ jobs:
3131
personal_token: ${{ secrets.GITHUB_TOKEN }}
3232
force_orphan: true
3333
cname: polyfill.web-cell.dev
34-
35-
- name: Deploy for China mainland
36-
uses: azure/CLI@v2
37-
with:
38-
azcliversion: 2.67.0
39-
inlineScript: |
40-
tdnf install -y azcopy;
41-
42-
az storage blob sync \
43-
--container '$web' \
44-
--source ./public \
45-
--connection-string "${{ secrets.ConnectionString }}" \
46-
--delete-destination true

ReadMe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ self.importScripts('https://polyfill.web-cell.dev/feature/Regenerator.js');
3838

3939
### China mainland
4040

41-
Thanks for [KaiYuanShe][13]'s donation, we get a fast local mirror for China mainland:
41+
Thanks for [fCC ChengDu community][13]'s donation, we get a fast local mirror for China mainland:
4242

43-
> https://polyfill.kaiyuanshe.cn/
43+
> https://polyfill.web-conf.dev/
4444
4545
### Custom examples
4646

@@ -65,7 +65,7 @@ LAN_HOST=https://polyfill.example.kp
6565
## Inspired by
6666

6767
1. https://polyfill.io/
68-
2. https://polyfiller.kaiyuanshe.cn/
68+
2. https://github.com/Open-Source-Bazaar/Polyfiller
6969

7070
[1]: https://en.wikipedia.org/wiki/Content_delivery_network
7171
[2]: https://remysharp.com/2010/10/08/what-is-a-polyfill
@@ -79,4 +79,4 @@ LAN_HOST=https://polyfill.example.kp
7979
[10]: https://github.com/EasyWebApp/Web-polyfill
8080
[11]: https://github.com/EasyWebApp/Web-polyfill/blob/master/.github/workflows/main.yml#L31
8181
[12]: https://pages.github.com/
82-
[13]: https://kaiyuanshe.cn/
82+
[13]: https://fcc-cd.dev/

package.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-polyfill",
3-
"version": "0.8.0",
3+
"version": "0.8.3",
44
"license": "AGPL-3.0",
55
"author": "[email protected]",
66
"description": "An automatic CDN service for Web polyfills, which is based on TypeScript, Node.js & UnPkg.",
@@ -27,27 +27,32 @@
2727
"dependencies": {
2828
"@tech_query/node-toolkit": "^2.0.0-alpha.0",
2929
"dom-renderer": "^2.6.2",
30-
"dotenv": "^16.4.7",
31-
"fs-extra": "^11.3.0",
32-
"happy-dom": "^17.1.8",
30+
"dotenv": "^17.2.2",
31+
"fs-extra": "^11.3.2",
32+
"happy-dom": "^18.0.1",
3333
"koapache": "^2.2.2",
34-
"marked": "^15.0.7",
34+
"marked": "^16.3.0",
3535
"tslib": "^2.8.1",
36-
"undici": "^7.3.0"
36+
"undici": "^7.16.0"
3737
},
3838
"devDependencies": {
3939
"@types/fs-extra": "^11.0.4",
40-
"@types/node": "^22.13.5",
40+
"@types/node": "^22.18.6",
4141
"husky": "^9.1.7",
42-
"lint-staged": "^15.4.3",
43-
"prettier": "^3.5.2",
44-
"tsx": "^4.19.3",
45-
"typescript": "~5.7.3"
42+
"lint-staged": "^16.2.1",
43+
"prettier": "^3.6.2",
44+
"tsx": "^4.20.6",
45+
"typescript": "~5.9.2"
4646
},
4747
"resolutions": {
4848
"marked": "$marked",
4949
"@tech_query/node-toolkit": "$@tech_query/node-toolkit"
5050
},
51+
"pnpm": {
52+
"onlyBuiltDependencies": [
53+
"esbuild"
54+
]
55+
},
5156
"prettier": {
5257
"singleQuote": true,
5358
"trailingComma": "none",

0 commit comments

Comments
 (0)