@tanstack/solid-query-devtools 6.0.0-rc.0 → 6.0.0-rc.2

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.
@@ -1,15 +1,18 @@
1
1
  import { createRenderEffect, untrack, runWithOwner, sharedConfig } from 'solid-js';
2
2
 
3
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/web.js
3
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/web.js
4
4
  var transparentOptions = {
5
5
  transparent: true,
6
6
  sync: true
7
7
  };
8
- var effect = (fn, effectFn, options) => createRenderEffect(fn, effectFn, options ? {
9
- sync: true,
10
- ...options,
11
- transparent: !options.scope
12
- } : transparentOptions);
8
+ function effect(fn, effectFn, options) {
9
+ createRenderEffect(fn, effectFn, options ? {
10
+ sync: true,
11
+ ...options,
12
+ transparent: !options.scope
13
+ } : transparentOptions);
14
+ }
15
+ var hasOwn = Object.prototype.hasOwnProperty;
13
16
  function create(html, bypassGuard, flag) {
14
17
  const t = document.createElement("template");
15
18
  t.innerHTML = html;
@@ -25,6 +28,7 @@ function setAttribute(node, name, value) {
25
28
  node.removeAttribute(name);
26
29
  }
27
30
  function style(node, value, prev) {
31
+ if (isHydrating(node)) return;
28
32
  if (!value) {
29
33
  if (prev || node._$styles) {
30
34
  setAttribute(node, "style");
@@ -49,12 +53,13 @@ function style(node, value, prev) {
49
53
  }
50
54
  let v, s;
51
55
  for (s in applied) {
52
- if (value[s] == null) {
56
+ if (!hasOwn.call(value, s) || value[s] == null) {
53
57
  nodeStyle.removeProperty(s);
54
58
  delete applied[s];
55
59
  }
56
60
  }
57
61
  for (s in value) {
62
+ if (!hasOwn.call(value, s)) continue;
58
63
  v = value[s];
59
64
  if (v != null && v !== applied[s]) {
60
65
  nodeStyle.setProperty(s, v);
@@ -1,15 +1,18 @@
1
1
  import { createRenderEffect, untrack, runWithOwner, sharedConfig } from 'solid-js';
2
2
 
3
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/dev.js
3
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/dev.js
4
4
  var transparentOptions = {
5
5
  transparent: true,
6
6
  sync: true
7
7
  };
8
- var effect = (fn, effectFn, options) => createRenderEffect(fn, effectFn, options ? {
9
- sync: true,
10
- ...options,
11
- transparent: !options.scope
12
- } : transparentOptions);
8
+ function effect(fn, effectFn, options) {
9
+ createRenderEffect(fn, effectFn, options ? {
10
+ sync: true,
11
+ ...options,
12
+ transparent: !options.scope
13
+ } : transparentOptions);
14
+ }
15
+ var hasOwn = Object.prototype.hasOwnProperty;
13
16
  function create(html, bypassGuard, flag) {
14
17
  if (isHydrating() && !bypassGuard) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
15
18
  const t = document.createElement("template");
@@ -27,6 +30,7 @@ function setAttribute(node, name, value) {
27
30
  node.removeAttribute(name);
28
31
  }
29
32
  function style(node, value, prev) {
33
+ if (isHydrating(node)) return;
30
34
  if (!value) {
31
35
  if (prev || node._$styles) {
32
36
  setAttribute(node, "style");
@@ -51,12 +55,13 @@ function style(node, value, prev) {
51
55
  }
52
56
  let v, s;
53
57
  for (s in applied) {
54
- if (value[s] == null) {
58
+ if (!hasOwn.call(value, s) || value[s] == null) {
55
59
  nodeStyle.removeProperty(s);
56
60
  delete applied[s];
57
61
  }
58
62
  }
59
63
  for (s in value) {
64
+ if (!hasOwn.call(value, s)) continue;
60
65
  v = value[s];
61
66
  if (v != null && v !== applied[s]) {
62
67
  nodeStyle.setProperty(s, v);
package/build/dev.cjs CHANGED
@@ -13,6 +13,9 @@ var __export = (target, all) => {
13
13
  for (var name in all)
14
14
  __defProp(target, name, { get: all[name], enumerable: true });
15
15
  };
16
+ function effect(fn, effectFn, options) {
17
+ solidJs.createRenderEffect(fn, effectFn, transparentOptions);
18
+ }
16
19
  function create(html, bypassGuard, flag) {
17
20
  if (isHydrating() && !bypassGuard) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
18
21
  const t = document.createElement("template");
@@ -30,6 +33,7 @@ function setAttribute(node, name, value) {
30
33
  node.removeAttribute(name);
31
34
  }
32
35
  function style(node, value, prev) {
36
+ if (isHydrating(node)) return;
33
37
  if (!value) {
34
38
  if (prev || node._$styles) {
35
39
  setAttribute(node, "style");
@@ -54,12 +58,13 @@ function style(node, value, prev) {
54
58
  }
55
59
  let v, s;
56
60
  for (s in applied) {
57
- if (value[s] == null) {
61
+ if (!hasOwn.call(value, s) || value[s] == null) {
58
62
  nodeStyle.removeProperty(s);
59
63
  delete applied[s];
60
64
  }
61
65
  }
62
66
  for (s in value) {
67
+ if (!hasOwn.call(value, s)) continue;
63
68
  v = value[s];
64
69
  if (v != null && v !== applied[s]) {
65
70
  nodeStyle.setProperty(s, v);
@@ -85,18 +90,14 @@ function isHydrating(node) {
85
90
  }
86
91
  return false;
87
92
  }
88
- var transparentOptions, effect, isServer, isDev;
93
+ var transparentOptions, hasOwn, isServer, isDev;
89
94
  var init_dev = __esm({
90
- "../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/dev.js"() {
95
+ "../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/dev.js"() {
91
96
  transparentOptions = {
92
97
  transparent: true,
93
98
  sync: true
94
99
  };
95
- effect = (fn, effectFn, options) => solidJs.createRenderEffect(fn, effectFn, options ? {
96
- sync: true,
97
- ...options,
98
- transparent: !options.scope
99
- } : transparentOptions);
100
+ hasOwn = Object.prototype.hasOwnProperty;
100
101
  isServer = false;
101
102
  isDev = true;
102
103
  }
package/build/dev.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isDev, isServer } from './chunk/QIJPPGKW.js';
1
+ import { isDev, isServer } from './chunk/LZBCL5FW.js';
2
2
  import { createSignal, omit, sharedConfig, onSettled, createMemo, untrack } from 'solid-js';
3
3
 
4
4
  function clientOnly(fn) {
@@ -19,10 +19,10 @@ function clientOnly(fn) {
19
19
  }
20
20
 
21
21
  // src/index.tsx
22
- var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/HSTET7TP.js')) : function() {
22
+ var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/UQ6OWRDT.js')) : function() {
23
23
  return null;
24
24
  };
25
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/WI6DGUNI.js')) : function() {
25
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/JAI45AU2.js')) : function() {
26
26
  return null;
27
27
  };
28
28
 
package/build/dev.jsx CHANGED
@@ -1,6 +1,6 @@
1
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/dev.js
2
- import { createRenderEffect, createMemo, runWithOwner, sharedConfig, untrack, flatten, createRoot, merge, createComponent, omit, createOwner, createSignal, $DEVCOMP, onCleanup, enableHydration, enforceLoadingBoundary, flush, getOwner, createEffect } from "solid-js";
3
- import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, untrack as untrack2 } from "solid-js";
1
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/dev.js
2
+ import { createRenderEffect, createMemo, sharedConfig, enableHydration, untrack, runWithOwner, resetErrorHalt, enforceLoadingBoundary, createRoot, flatten, flush, getOwner, createOwner, patchableRaw, storeHasOptimisticFamily, storeIsShallow, registerRowOps, registerSlotPatch, onCleanup, registerPatch, createComponent, omit, createSignal, $DEVCOMP, createEffect } from "solid-js";
3
+ import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, merge, untrack as untrack2 } from "solid-js";
4
4
  var FLASH_COOKIE = "flash";
5
5
  var FLASH_MATCHER = new RegExp(`(?:^|;\\s*)${FLASH_COOKIE}=([^;]+)`);
6
6
  var isServer = false;
@@ -1,4 +1,4 @@
1
- import { ref, template } from '../chunk/46HMXOKE.js';
1
+ import { ref, template } from '../chunk/6YEK5RSE.js';
2
2
  import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
3
3
  import { useQueryClient, onlineManager } from '@tanstack/solid-query';
4
4
  import { TanstackQueryDevtools } from '@tanstack/query-devtools';
@@ -1,4 +1,4 @@
1
- import { ref, template } from '../chunk/QIJPPGKW.js';
1
+ import { ref, template } from '../chunk/LZBCL5FW.js';
2
2
  import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
3
3
  import { useQueryClient, onlineManager } from '@tanstack/solid-query';
4
4
  import { TanstackQueryDevtools } from '@tanstack/query-devtools';
@@ -1,4 +1,4 @@
1
- import { ref, effect, style, template } from '../chunk/QIJPPGKW.js';
1
+ import { ref, effect, style, template } from '../chunk/6YEK5RSE.js';
2
2
  import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
3
3
  import { useQueryClient, onlineManager } from '@tanstack/solid-query';
4
4
  import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
@@ -1,4 +1,4 @@
1
- import { ref, effect, style, template } from '../chunk/46HMXOKE.js';
1
+ import { ref, effect, style, template } from '../chunk/LZBCL5FW.js';
2
2
  import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
3
3
  import { useQueryClient, onlineManager } from '@tanstack/solid-query';
4
4
  import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
package/build/index.cjs CHANGED
@@ -13,6 +13,9 @@ var __export = (target, all) => {
13
13
  for (var name in all)
14
14
  __defProp(target, name, { get: all[name], enumerable: true });
15
15
  };
16
+ function effect(fn, effectFn, options) {
17
+ solidJs.createRenderEffect(fn, effectFn, transparentOptions);
18
+ }
16
19
  function create(html, bypassGuard, flag) {
17
20
  const t = document.createElement("template");
18
21
  t.innerHTML = html;
@@ -28,6 +31,7 @@ function setAttribute(node, name, value) {
28
31
  node.removeAttribute(name);
29
32
  }
30
33
  function style(node, value, prev) {
34
+ if (isHydrating(node)) return;
31
35
  if (!value) {
32
36
  if (prev || node._$styles) {
33
37
  setAttribute(node, "style");
@@ -52,12 +56,13 @@ function style(node, value, prev) {
52
56
  }
53
57
  let v, s;
54
58
  for (s in applied) {
55
- if (value[s] == null) {
59
+ if (!hasOwn.call(value, s) || value[s] == null) {
56
60
  nodeStyle.removeProperty(s);
57
61
  delete applied[s];
58
62
  }
59
63
  }
60
64
  for (s in value) {
65
+ if (!hasOwn.call(value, s)) continue;
61
66
  v = value[s];
62
67
  if (v != null && v !== applied[s]) {
63
68
  nodeStyle.setProperty(s, v);
@@ -83,18 +88,14 @@ function isHydrating(node) {
83
88
  }
84
89
  return false;
85
90
  }
86
- var transparentOptions, effect, isServer, isDev;
91
+ var transparentOptions, hasOwn, isServer, isDev;
87
92
  var init_web = __esm({
88
- "../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/web.js"() {
93
+ "../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/web.js"() {
89
94
  transparentOptions = {
90
95
  transparent: true,
91
96
  sync: true
92
97
  };
93
- effect = (fn, effectFn, options) => solidJs.createRenderEffect(fn, effectFn, options ? {
94
- sync: true,
95
- ...options,
96
- transparent: !options.scope
97
- } : transparentOptions);
98
+ hasOwn = Object.prototype.hasOwnProperty;
98
99
  isServer = false;
99
100
  isDev = false;
100
101
  }
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isDev, isServer } from './chunk/46HMXOKE.js';
1
+ import { isDev, isServer } from './chunk/6YEK5RSE.js';
2
2
  import { createSignal, omit, sharedConfig, onSettled, createMemo, untrack } from 'solid-js';
3
3
 
4
4
  function clientOnly(fn) {
@@ -19,10 +19,10 @@ function clientOnly(fn) {
19
19
  }
20
20
 
21
21
  // src/index.tsx
22
- var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/7AT5M27D.js')) : function() {
22
+ var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/NS4HL5WJ.js')) : function() {
23
23
  return null;
24
24
  };
25
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/ENEPWAUM.js')) : function() {
25
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/IQ6EXVZB.js')) : function() {
26
26
  return null;
27
27
  };
28
28
 
package/build/index.jsx CHANGED
@@ -1,6 +1,6 @@
1
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.0_solid-js@2.0.0-rc.0/node_modules/@solidjs/web/dist/web.js
2
- import { createRenderEffect, createMemo, runWithOwner, sharedConfig, untrack, flatten, createRoot, merge, createComponent, omit, createOwner, createSignal, onCleanup, enableHydration, flush, getOwner, createEffect } from "solid-js";
3
- import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, untrack as untrack2 } from "solid-js";
1
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.6_solid-js@2.0.0-rc.6/node_modules/@solidjs/web/dist/web.js
2
+ import { createRenderEffect, createMemo, sharedConfig, enableHydration, untrack, runWithOwner, createRoot, flatten, flush, getOwner, createOwner, patchableRaw, storeHasOptimisticFamily, storeIsShallow, registerRowOps, registerSlotPatch, onCleanup, registerPatch, createComponent, omit, createSignal, createEffect } from "solid-js";
3
+ import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, merge, untrack as untrack2 } from "solid-js";
4
4
  var FLASH_COOKIE = "flash";
5
5
  var FLASH_MATCHER = new RegExp(`(?:^|;\\s*)${FLASH_COOKIE}=([^;]+)`);
6
6
  var isServer = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query-devtools",
3
- "version": "6.0.0-rc.0",
3
+ "version": "6.0.0-rc.2",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -44,24 +44,24 @@
44
44
  "!src/__tests__"
45
45
  ],
46
46
  "dependencies": {
47
- "@tanstack/query-devtools": "5.101.0"
47
+ "@tanstack/query-devtools": "5.101.4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/core": "^7.28.0",
51
51
  "@babel/preset-typescript": "^7.18.6",
52
- "@solidjs/signals": "^2.0.0-rc.0",
52
+ "@solidjs/signals": "^2.0.0-rc.6",
53
53
  "@solidjs/testing-library": "^0.8.10",
54
54
  "@solidjs/vite-plugin": "^3.0.0-next.27",
55
- "@solidjs/web": "^2.0.0-rc.0",
56
- "babel-preset-solid": "^2.0.0-rc.0",
55
+ "@solidjs/web": "^2.0.0-rc.6",
56
+ "babel-preset-solid": "^2.0.0-rc.2",
57
57
  "npm-run-all2": "^5.0.0",
58
- "solid-js": "^2.0.0-rc.0",
58
+ "solid-js": "^2.0.0-rc.6",
59
59
  "tsup-preset-solid": "^2.2.0",
60
- "@tanstack/solid-query": "6.0.0-rc.0"
60
+ "@tanstack/solid-query": "6.0.0-rc.2"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "solid-js": ">=2.0.0-beta.0 <3.0.0",
64
- "@tanstack/solid-query": "^6.0.0-rc.0"
64
+ "@tanstack/solid-query": "^6.0.0-rc.2"
65
65
  },
66
66
  "scripts": {
67
67
  "clean": "premove ./build ./coverage ./dist-ts",