@octanejs/redux-toolkit 0.1.39 → 0.1.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/redux-toolkit",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,10 +37,10 @@
37
37
  "@reduxjs/toolkit": "^2.12.0",
38
38
  "redux": "^5.0.1",
39
39
  "reselect": "5.2.0",
40
- "@octanejs/redux": "0.1.41"
40
+ "@octanejs/redux": "0.1.42"
41
41
  },
42
42
  "peerDependencies": {
43
- "octane": "0.1.44"
43
+ "octane": "0.1.45"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@tsrx/react": "^0.2.58",
@@ -49,7 +49,7 @@
49
49
  "react-dom": "^19.2.7",
50
50
  "react-redux": "9.3.0",
51
51
  "vitest": "^4.1.10",
52
- "octane": "0.1.44"
52
+ "octane": "0.1.45"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "vitest run --root ../.. --project redux-toolkit --project redux-toolkit-ssr"
@@ -51,6 +51,9 @@ import type { Store } from 'redux';
51
51
  import { useStableQueryArgs } from './useSerializedStableValue';
52
52
  import { useShallowStableValue } from './useShallowStableValue';
53
53
 
54
+ // Module-local type for the bundler's process.env.NODE_ENV replacement.
55
+ declare const process: { env: { NODE_ENV?: string } };
56
+
54
57
  type DependencyList = any[];
55
58
  type InfiniteQueryDirection = 'forward' | 'backward';
56
59
  type RefObject<T> = { current: T };
@@ -23,6 +23,9 @@ import type { InfiniteQueryHooks, MutationHooks, QueryHooks } from './buildHooks
23
23
  import { buildHooks } from './buildHooks';
24
24
  import type { HooksWithUniqueNames } from './namedHooks';
25
25
 
26
+ // Module-local type for the bundler's process.env.NODE_ENV replacement.
27
+ declare const process: { env: { NODE_ENV?: string } };
28
+
26
29
  const isQueryDefinition = (definition: { type?: string }) => definition.type === 'query';
27
30
  const isMutationDefinition = (definition: { type?: string }) => definition.type === 'mutation';
28
31
  const isInfiniteQueryDefinition = (definition: { type?: string }) =>