@solid-primitives/utils 6.2.0 → 6.2.1

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,4 +1,4 @@
1
- import { DEV, untrack, getOwner, onCleanup, createSignal, sharedConfig, onMount } from 'solid-js';
1
+ import { DEV, equalFn, untrack, getOwner, onCleanup, createSignal, sharedConfig, onMount } from 'solid-js';
2
2
  import { isServer } from 'solid-js/web';
3
3
  export { isServer } from 'solid-js/web';
4
4
 
@@ -9,7 +9,7 @@ var isProd = !isDev;
9
9
  var noop = () => void 0;
10
10
  var trueFn = () => true;
11
11
  var falseFn = () => false;
12
- var defaultEquals = (a, b) => a === b;
12
+ var defaultEquals = equalFn;
13
13
  var EQUALS_FALSE_OPTIONS = { equals: false };
14
14
  var INTERNAL_OPTIONS = { internal: true };
15
15
  var ofClass = (v, c) => v instanceof c || v && v.constructor === c;
@@ -1,4 +1,4 @@
1
- import { compare, ofClass } from '../chunk/APG4HSEJ.js';
1
+ import { compare, ofClass } from '../chunk/R5675YMU.js';
2
2
 
3
3
  // src/immutable/copy.ts
4
4
  var shallowArrayCopy = (array) => array.slice();
@@ -10,7 +10,7 @@ exports.isProd = !exports.isDev;
10
10
  exports.noop = () => void 0;
11
11
  exports.trueFn = () => true;
12
12
  exports.falseFn = () => false;
13
- exports.defaultEquals = (a, b) => a === b;
13
+ exports.defaultEquals = solidJs.equalFn;
14
14
  exports.EQUALS_FALSE_OPTIONS = { equals: false };
15
15
  exports.INTERNAL_OPTIONS = { internal: true };
16
16
  exports.ofClass = (v, c) => v instanceof c || v && v.constructor === c;
@@ -11,8 +11,8 @@ declare const isProd: boolean;
11
11
  declare const noop: Noop;
12
12
  declare const trueFn: () => boolean;
13
13
  declare const falseFn: () => boolean;
14
- /** default `equals` camparator. `(a, b) => a === b` */
15
- declare const defaultEquals: (a: unknown, b: unknown) => boolean;
14
+ /** @deprecated use {@link equalFn} from "solid-js" */
15
+ declare const defaultEquals: <T>(a: T, b: T) => boolean;
16
16
  declare const EQUALS_FALSE_OPTIONS: {
17
17
  readonly equals: false;
18
18
  };
@@ -1 +1 @@
1
- export { EQUALS_FALSE_OPTIONS, INTERNAL_OPTIONS, access, accessArray, accessWith, arrayEquals, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createHydratableSignal, createHydrateSignal, createMicrotask, defaultEquals, defer, entries, falseFn, filterNonNullable, handleDiffArray, isClient, isDev, isNonNullable, isObject, isProd, isServer, keys, noop, ofClass, reverseChain, trueFn, tryOnCleanup, withAccess } from '../chunk/APG4HSEJ.js';
1
+ export { EQUALS_FALSE_OPTIONS, INTERNAL_OPTIONS, access, accessArray, accessWith, arrayEquals, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createHydratableSignal, createHydrateSignal, createMicrotask, defaultEquals, defer, entries, falseFn, filterNonNullable, handleDiffArray, isClient, isDev, isNonNullable, isObject, isProd, isServer, keys, noop, ofClass, reverseChain, trueFn, tryOnCleanup, withAccess } from '../chunk/R5675YMU.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-primitives/utils",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "A bunch of reactive utility types and functions, for building primitives with Solid.js",
5
5
  "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",
6
6
  "contributors": [
@@ -57,6 +57,9 @@
57
57
  "peerDependencies": {
58
58
  "solid-js": "^1.6.12"
59
59
  },
60
+ "devDependencies": {
61
+ "solid-js": "1.7.6"
62
+ },
60
63
  "scripts": {
61
64
  "dev": "jiti ../../scripts/dev.ts",
62
65
  "build": "jiti ../../scripts/build.ts",