@trackunit/react-core-contexts-test 1.6.28 → 1.6.29
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/index.cjs.js +0 -3
- package/index.esm.js +0 -3
- package/package.json +5 -5
package/index.cjs.js
CHANGED
|
@@ -921,7 +921,6 @@ class TrackunitProvidersMockBuilder {
|
|
|
921
921
|
let rerenderCounter = 0;
|
|
922
922
|
const renderedHook = await hookRenderer.reactHooksRenderHook(callback, children => this.getMockedCompositionRoot(jsxRuntime.jsx(RerenderProvider, { counter: rerenderCounter, children: jsxRuntime.jsx(RouterContainer, { addTestRootContainer: true, rootRoute: this.selectedRootRoute, selectedRouterProps: this.selectedRouterProps, children: jsxRuntime.jsx(RerenderComponent, { children: parentElement ? parentElement(children) : children }) }) })));
|
|
923
923
|
return {
|
|
924
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
925
924
|
...renderedHook,
|
|
926
925
|
rerender: async (props) => {
|
|
927
926
|
rerenderCounter += 1;
|
|
@@ -950,7 +949,6 @@ class TrackunitProvidersMockBuilder {
|
|
|
950
949
|
await react$1.act(async () => {
|
|
951
950
|
await flushPromises();
|
|
952
951
|
});
|
|
953
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
954
952
|
return mountedcomponent;
|
|
955
953
|
}
|
|
956
954
|
/**
|
|
@@ -997,7 +995,6 @@ const useIsFirstRender = () => {
|
|
|
997
995
|
const useDebugger = (propsToWatch, id) => {
|
|
998
996
|
const prevPropsRef = React.useRef(propsToWatch);
|
|
999
997
|
const uniqueId = React.useMemo(() => {
|
|
1000
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
1001
998
|
let stackId = id || (propsToWatch && propsToWatch.id);
|
|
1002
999
|
const stack = new Error().stack;
|
|
1003
1000
|
if (!stackId && stack) {
|
package/index.esm.js
CHANGED
|
@@ -919,7 +919,6 @@ class TrackunitProvidersMockBuilder {
|
|
|
919
919
|
let rerenderCounter = 0;
|
|
920
920
|
const renderedHook = await hookRenderer.reactHooksRenderHook(callback, children => this.getMockedCompositionRoot(jsx(RerenderProvider, { counter: rerenderCounter, children: jsx(RouterContainer, { addTestRootContainer: true, rootRoute: this.selectedRootRoute, selectedRouterProps: this.selectedRouterProps, children: jsx(RerenderComponent, { children: parentElement ? parentElement(children) : children }) }) })));
|
|
921
921
|
return {
|
|
922
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
923
922
|
...renderedHook,
|
|
924
923
|
rerender: async (props) => {
|
|
925
924
|
rerenderCounter += 1;
|
|
@@ -948,7 +947,6 @@ class TrackunitProvidersMockBuilder {
|
|
|
948
947
|
await act(async () => {
|
|
949
948
|
await flushPromises();
|
|
950
949
|
});
|
|
951
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
952
950
|
return mountedcomponent;
|
|
953
951
|
}
|
|
954
952
|
/**
|
|
@@ -995,7 +993,6 @@ const useIsFirstRender = () => {
|
|
|
995
993
|
const useDebugger = (propsToWatch, id) => {
|
|
996
994
|
const prevPropsRef = useRef(propsToWatch);
|
|
997
995
|
const uniqueId = useMemo(() => {
|
|
998
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
999
996
|
let stackId = id || (propsToWatch && propsToWatch.id);
|
|
1000
997
|
const stack = new Error().stack;
|
|
1001
998
|
if (!stackId && stack) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.29",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"react": "19.0.0",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"graphql": "^16.10.0",
|
|
15
|
-
"@trackunit/react-core-contexts-api": "1.7.
|
|
16
|
-
"@trackunit/react-core-hooks": "1.6.
|
|
17
|
-
"@trackunit/shared-utils": "1.8.
|
|
18
|
-
"@trackunit/react-test-setup": "1.3.
|
|
15
|
+
"@trackunit/react-core-contexts-api": "1.7.28",
|
|
16
|
+
"@trackunit/react-core-hooks": "1.6.29",
|
|
17
|
+
"@trackunit/shared-utils": "1.8.27",
|
|
18
|
+
"@trackunit/react-test-setup": "1.3.27",
|
|
19
19
|
"@tanstack/react-router": "1.114.29",
|
|
20
20
|
"@tanstack/router-core": "1.114.29"
|
|
21
21
|
},
|