@octanejs/transition-group 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UPSTREAM.md +2 -0
- package/package.json +7 -7
- package/src/SwitchTransition.tsrx +2 -2
- package/src/Transition.tsrx +1 -1
- package/src/TransitionGroup.tsrx +1 -1
package/UPSTREAM.md
CHANGED
|
@@ -10,6 +10,8 @@ The upstream project and this adapted package are licensed under BSD-3-Clause. T
|
|
|
10
10
|
|
|
11
11
|
The vendored JavaScript is not published. The maintained implementation is under `src`. Adapted Octane tests are under `tests`. The strongest runtime oracle is the pristine Jest lane: `pnpm test:upstream` runs the pinned suite unchanged against React through the manifest `jest-full` executor and checks every identity against `audit/pristine-runtime.json`.
|
|
12
12
|
|
|
13
|
+
The Jest render bridge flushes React state updates from renderer-created timers when those timers are delivered. This preserves the upstream timeout-order assertions when the event loop stalls: an earlier transition timer must commit its completion before a later guard timer runs. Timer delays, native handles, and upstream assertions remain unchanged. Harness controls inject a 40 ms stall, reproduce the failure with flushing disabled, and verify that an incorrect 100 ms appear delay still fails the original 15 ms guard.
|
|
14
|
+
|
|
13
15
|
## DefinitelyTyped type-suite provenance
|
|
14
16
|
|
|
15
17
|
The React type oracle is [`@types/react-transition-group` 4.4.12](https://www.npmjs.com/package/@types/react-transition-group/v/4.4.12). Its canonical source is DefinitelyTyped repository path `types/react-transition-group`, pinned at commit `cccd2a9ffecb708ac0606faa7f81f0b7ec535bf9`; `typesPublisherContentHash` is `28d8cc9bfe6b15e0291a07b916505b49e5cf57cfd1f331db1d9ad49fd36bfd41`. The npm tarball omits its executable type test, so `upstream-types/react-transition-group-tests.tsx` and `upstream-types/tsconfig.definitelytyped.json` are byte-exact vendored copies from that commit. The pristine runner `upstream-types/tsconfig.json` retains DT's compiler options while resolving declarations from npm rather than vendored `.d.ts` files.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/transition-group",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"./config": "./src/config.ts"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"octane": "^0.1.51 || ^0.2.0"
|
|
44
|
+
"octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.28.0",
|
|
48
48
|
"@babel/preset-env": "^7.28.0",
|
|
49
49
|
"@babel/preset-react": "^7.27.1",
|
|
50
50
|
"@testing-library/react": "^14.3.1",
|
|
51
|
-
"@tsrx/react": "^0.
|
|
51
|
+
"@tsrx/react": "^0.3.0",
|
|
52
52
|
"@types/react": "^19.2.17",
|
|
53
53
|
"@types/react-dom": "^19.2.3",
|
|
54
54
|
"babel-jest": "30.4.1",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"jest-environment-jsdom": "30.4.1",
|
|
59
59
|
"jest-environment-node": "30.4.1",
|
|
60
60
|
"prop-types": "^15.8.1",
|
|
61
|
-
"react": "
|
|
62
|
-
"react-dom": "
|
|
61
|
+
"react": "19.2.7",
|
|
62
|
+
"react-dom": "19.2.7",
|
|
63
63
|
"react18": "npm:react@18.3.1",
|
|
64
64
|
"react-dom18": "npm:react-dom@18.3.1",
|
|
65
65
|
"react-transition-group": "4.4.5",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vitest": "^4.1.10",
|
|
68
68
|
"@types/react-transition-group": "^4.4.12",
|
|
69
|
-
"@octanejs/testing-library": "0.1.
|
|
70
|
-
"octane": "0.
|
|
69
|
+
"@octanejs/testing-library": "0.1.52",
|
|
70
|
+
"octane": "0.3.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"test": "pnpm upstream:check && pnpm upstream:verify && pnpm test:upstream && vitest run --root ../.. --project transition-group --project transition-group-ssr",
|
|
@@ -97,9 +97,9 @@ export function SwitchTransition(props: SwitchTransitionProps) @{
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
<TransitionGroupContext
|
|
100
|
+
<TransitionGroupContext
|
|
101
101
|
value={{ isMounting: !appeared.current }}
|
|
102
|
-
>{output}</TransitionGroupContext
|
|
102
|
+
>{output}</TransitionGroupContext>
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export default SwitchTransition;
|
package/src/Transition.tsrx
CHANGED
|
@@ -254,7 +254,7 @@ function TransitionImpl(props: TransitionProps) @{
|
|
|
254
254
|
: cloneElement(Children.only(children), childProps);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
<TransitionGroupContext
|
|
257
|
+
<TransitionGroupContext value={null}>{rendered}</TransitionGroupContext>
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
export const Transition = TransitionImpl as unknown as TransitionComponent;
|
package/src/TransitionGroup.tsrx
CHANGED
|
@@ -64,7 +64,7 @@ export function TransitionGroup(props: TransitionGroupProps) @{
|
|
|
64
64
|
? renderedChildren
|
|
65
65
|
: createElement(component, wrapperProps, ...renderedChildren);
|
|
66
66
|
|
|
67
|
-
<TransitionGroupContext
|
|
67
|
+
<TransitionGroupContext value={{ isMounting }}>{output}</TransitionGroupContext>
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export default TransitionGroup;
|