Skip to content

Commit 8c72dff

Browse files
authored
Remove automatic entrypoint (#638)
1 parent 9022d4a commit 8c72dff

File tree

11 files changed

+23
-555
lines changed

11 files changed

+23
-555
lines changed

.changeset/chilly-taxis-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@preact/signals-react": major
3+
---
4+
5+
Remove `/auto` and automatic tracking as it is incompatible with React 19

karma.conf.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ const pkgList = {
224224
core: "@preact/signals-core",
225225
preact: "@preact/signals",
226226
react: "@preact/signals-react",
227-
"react/auto": "@preact/signals-react/auto",
228227
"react/runtime": "@preact/signals-react/runtime",
229228
"react-transform": "@preact/signals-react-transform",
230229
};
@@ -304,19 +303,21 @@ module.exports = function (config) {
304303
customLaunchers: localLaunchers,
305304

306305
files: [
307-
...filteredPkgList.some(i => /^react/.test(i)) ? [
308-
{
309-
// Provide some NodeJS globals to run babel in a browser environment
310-
pattern: "test/browser/nodeGlobals.js",
311-
watched: false,
312-
type: "js",
313-
},
314-
{
315-
pattern: "test/browser/babel.js",
316-
watched: false,
317-
type: "js",
318-
},
319-
] : [],
306+
...(filteredPkgList.some(i => /^react/.test(i))
307+
? [
308+
{
309+
// Provide some NodeJS globals to run babel in a browser environment
310+
pattern: "test/browser/nodeGlobals.js",
311+
watched: false,
312+
type: "js",
313+
},
314+
{
315+
pattern: "test/browser/babel.js",
316+
watched: false,
317+
type: "js",
318+
},
319+
]
320+
: []),
320321
{
321322
pattern:
322323
process.env.TESTS ||

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
"private": true,
44
"scripts": {
55
"prebuild": "shx rm -rf packages/*/dist/",
6-
"build": "pnpm build:core && pnpm build:preact && pnpm build:react-runtime && pnpm build:react-auto && pnpm build:react && pnpm build:react-transform",
6+
"build": "pnpm build:core && pnpm build:preact && pnpm build:react-runtime && pnpm build:react && pnpm build:react-transform",
77
"_build": "microbundle --raw --globals @preact/signals-core=preactSignalsCore,preact/hooks=preactHooks,@preact/signals-react/runtime=reactSignalsRuntime",
88
"build:core": "pnpm _build --cwd packages/core && pnpm postbuild:core",
99
"build:preact": "pnpm _build --cwd packages/preact && pnpm postbuild:preact",
1010
"build:react": "pnpm _build --cwd packages/react --external \"react,@preact/signals-react/runtime,@preact/signals-core\" && pnpm postbuild:react",
11-
"build:react-auto": "pnpm _build --cwd packages/react/auto && pnpm postbuild:react-auto",
1211
"build:react-runtime": "pnpm _build --cwd packages/react/runtime && pnpm postbuild:react-runtime",
1312
"build:react-transform": "pnpm _build --no-compress --cwd packages/react-transform",
1413
"postbuild:core": "cd packages/core/dist && shx mv -f index.d.ts signals-core.d.ts",
1514
"postbuild:preact": "cd packages/preact/dist && shx mv -f preact/src/index.d.ts signals.d.ts && shx rm -rf preact",
1615
"postbuild:react": "cd packages/react/dist && shx mv -f react/src/index.d.ts signals.d.ts && shx rm -rf react",
17-
"postbuild:react-auto": "cd packages/react/auto/dist && shx mv -f react/auto/src/*.d.ts . && shx rm -rf react",
1816
"postbuild:react-runtime": "cd packages/react/runtime/dist && shx mv -f react/runtime/src/*.d.ts . && shx rm -rf react",
1917
"lint": "pnpm lint:eslint && pnpm lint:tsc",
2018
"lint:eslint": "eslint 'packages/**/*.{ts,tsx,js,jsx}'",

packages/react/auto/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/react/auto/src/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/react/auto/test/browser/mounts.test.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/react/auto/test/browser/updates.test.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/react/auto/test/node/renderToStaticMarkup.test.tsx

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/react/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@
3737
"import": "./runtime/dist/runtime.mjs",
3838
"require": "./runtime/dist/runtime.js"
3939
},
40-
"./runtime/package.json": "./runtime/package.json",
41-
"./auto": {
42-
"types": "./auto/dist/index.d.ts",
43-
"browser": "./auto/dist/auto.module.js",
44-
"import": "./auto/dist/auto.mjs",
45-
"require": "./auto/dist/auto.js"
46-
},
47-
"./auto/package.json": "./auto/package.json"
40+
"./runtime/package.json": "./runtime/package.json"
4841
},
4942
"mangle": "../../mangle.json",
5043
"files": [
@@ -53,15 +46,12 @@
5346
"runtime/dist",
5447
"runtime/src",
5548
"runtime/package.json",
56-
"auto/dist",
57-
"auto/src",
58-
"auto/package.json",
5949
"CHANGELOG.md",
6050
"LICENSE",
6151
"README.md"
6252
],
6353
"scripts": {
64-
"prepublishOnly": "cd ../.. && pnpm build:react-runtime && pnpm build:react-auto && pnpm build:react"
54+
"prepublishOnly": "cd ../.. && pnpm build:react-runtime && pnpm build:react"
6555
},
6656
"dependencies": {
6757
"@preact/signals-core": "workspace:^1.7.0",

0 commit comments

Comments
 (0)