Skip to content

Commit a3299fd

Browse files
committed
enhance: Polyfills no longer pollute global scope
1 parent 2e0ba94 commit a3299fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1040
-708
lines changed

.changeset/wet-ravens-report.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@data-client/use-enhanced-reducer': patch
3+
'@data-client/normalizr': patch
4+
'@data-client/endpoint': patch
5+
'@data-client/graphql': patch
6+
'@data-client/react': patch
7+
'@data-client/core': patch
8+
'@data-client/rest': patch
9+
'@data-client/test': patch
10+
'@data-client/img': patch
11+
---
12+
13+
Polyfills no longer pollute global scope

.github/renovate.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"enabled": false
2323
},
2424
{
25-
"matchPackageNames": ["@babel/runtime", "core-js", "core-js-compat"],
25+
"matchPackageNames": ["@babel/runtime", "@babel/runtime-corejs3", "core-js", "core-js-pure", "core-js-compat"],
2626
"matchDepTypes": ["dependencies"],
2727
"rangeStrategy": "replace"
2828
},
@@ -69,7 +69,10 @@
6969
"matchUpdateTypes": ["major", "minor", "patch"],
7070
"matchPackageNames": [
7171
"@anansi/babel-preset",
72+
"@babel/runtime",
73+
"@babel/runtime-corejs3",
7274
"core-js",
75+
"core-js-pure",
7376
"core-js-compat"
7477
],
7578
"groupSlug": "build",

babel.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ const fs = require('fs');
33
const path = require('path');
44

55
module.exports = function (api) {
6-
api.cache.using(() => process.env.NODE_ENV);
6+
api.cache.using(
7+
() => process.env.NODE_ENV + process.env.BROWSERSLIST_ENV + '0',
8+
);
79
return {
810
presets: [
911
[

examples/coin-app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"anansi"
2525
],
2626
"devDependencies": {
27-
"@anansi/babel-preset": "^6.0.0",
27+
"@anansi/babel-preset": "^6.1.5",
2828
"@anansi/browserslist-config": "^1.4.3",
2929
"@anansi/webpack-config": "^20.0.0",
3030
"@babel/core": "^7.22.15",
@@ -44,10 +44,11 @@
4444
"@anansi/cli": "^3.0.15",
4545
"@anansi/core": "^0.20.0",
4646
"@anansi/router": "^0.10.0",
47-
"@babel/runtime": "^7.22.15",
47+
"@babel/runtime-corejs3": "^7.26.7",
4848
"@data-client/img": "^0.14.0",
4949
"@data-client/react": "^0.14.0",
5050
"@data-client/rest": "^0.14.0",
51+
"core-js": "^3.40.0",
5152
"d3": "^7.9.0",
5253
"history": "*",
5354
"react": "^19.0.0",

examples/github-app/package-lock.json

Lines changed: 19 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/github-app/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"private": true,
2929
"license": "Apache-2.0",
3030
"devDependencies": {
31-
"@anansi/babel-preset": "6.1.4",
31+
"@anansi/babel-preset": "6.1.5",
3232
"@anansi/browserslist-config": "1.6.0",
3333
"@anansi/webpack-config": "20.0.19",
3434
"@babel/core": "7.26.9",
@@ -50,12 +50,14 @@
5050
"dependencies": {
5151
"@anansi/router": "0.10.11",
5252
"@ant-design/icons": "^5.0.0",
53+
"@babel/runtime-corejs3": "^7.26.7",
5354
"@data-client/graphql": "^0.14.0",
5455
"@data-client/img": "^0.14.15",
5556
"@data-client/react": "^0.14.0",
5657
"@data-client/rest": "^0.14.0",
5758
"@js-temporal/polyfill": "^0.4.4",
5859
"antd": "5.24.0",
60+
"core-js": "^3.40.0",
5961
"history": "^5.3.0",
6062
"parse-link-header": "^2.0.0",
6163
"react": "19.0.0",

examples/nextjs/package-lock.json

Lines changed: 43 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nextjs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@
1313
"node": ">=18.0"
1414
},
1515
"dependencies": {
16-
"@anansi/babel-preset": "^6.0.0",
16+
"@anansi/babel-preset": "^6.1.5",
1717
"@babel/core": "^7.24.7",
18+
"@babel/runtime-corejs3": "^7.26.7",
1819
"@data-client/react": "^0.14.0",
1920
"@data-client/rest": "^0.14.0",
2021
"@number-flow/react": "^0.5.0",
2122
"@types/node": "22.13.4",
2223
"@types/react": "19.0.8",
2324
"@types/react-dom": "19.0.3",
2425
"clsx": "^2.1.1",
26+
"core-js": "^3.40.0",
2527
"next": "15.1.7",
2628
"react": "19.0.0",
2729
"react-dom": "19.0.0",

examples/todo-app/package-lock.json

Lines changed: 19 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/todo-app/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"private": true,
2929
"license": "Apache-2.0",
3030
"devDependencies": {
31-
"@anansi/babel-preset": "6.1.4",
31+
"@anansi/babel-preset": "6.1.5",
3232
"@anansi/browserslist-config": "1.6.0",
3333
"@anansi/webpack-config": "20.0.19",
3434
"@babel/core": "7.26.9",
@@ -45,9 +45,11 @@
4545
"webpack-dev-server": "5.2.0"
4646
},
4747
"dependencies": {
48+
"@babel/runtime-corejs3": "^7.26.7",
4849
"@data-client/endpoint": "^0.14.0",
4950
"@data-client/react": "^0.14.0",
5051
"@data-client/rest": "^0.14.0",
52+
"core-js": "^3.40.0",
5153
"react": "19.0.0",
5254
"react-dom": "19.0.0",
5355
"uuid": "^11.0.0"

0 commit comments

Comments
 (0)