@xylabs/exists 7.0.2 → 7.0.4

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ > **Deprecated.** Use [`@ariestools/sdk`](../../ariestools-sdk/README.md) instead. This package is a backward-compatibility re-export shim.
2
+
1
3
  [![logo][]](https://xylabs.com)
2
4
 
3
5
  # @xylabs/exists
@@ -12,25 +14,25 @@
12
14
  Using npm:
13
15
 
14
16
  ```sh
15
- npm install {{name}}
17
+ npm install @xylabs/exists
16
18
  ```
17
19
 
18
20
  Using yarn:
19
21
 
20
22
  ```sh
21
- yarn add {{name}}
23
+ yarn add @xylabs/exists
22
24
  ```
23
25
 
24
26
  Using pnpm:
25
27
 
26
28
  ```sh
27
- pnpm add {{name}}
29
+ pnpm add @xylabs/exists
28
30
  ```
29
31
 
30
32
  Using bun:
31
33
 
32
34
  ```sh
33
- bun add {{name}}
35
+ bun add @xylabs/exists
34
36
  ```
35
37
 
36
38
 
@@ -1,10 +1,2 @@
1
- /**
2
- * Used to type narrow an object which is possibly null or undefined. Works well
3
- * with functional Array methods. For example:
4
- * @example
5
- * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []
6
- * @param x The object which is potentially undefined or null
7
- * @returns False if the object is null/undefined, true otherwise
8
- */
9
- export declare const exists: <T>(x?: T | null) => x is NonNullable<T>;
1
+ export * from '@ariestools/sdk/exists';
10
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,IAAI,CAAC,GAAG,IAAI,KAAG,CAAC,IAAI,WAAW,CAAC,CAAC,CAE1D,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
@@ -1,8 +1,3 @@
1
1
  // src/index.ts
2
- var exists = (x) => {
3
- return x === void 0 || x === null ? false : true;
4
- };
5
- export {
6
- exists
7
- };
2
+ export * from "@ariestools/sdk/exists";
8
3
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is NonNullable<T> => {\n return x === undefined || x === null ? false : true\n}\n"],
5
- "mappings": ";AAQO,IAAM,SAAS,CAAI,MAAsC;AAC9D,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;",
4
+ "sourcesContent": ["export * from '@ariestools/sdk/exists'\n"],
5
+ "mappings": ";AAAA,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@xylabs/exists",
3
- "version": "7.0.2",
4
- "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
3
+ "version": "7.0.4",
4
+ "description": "DEPRECATED use @ariestools/sdk/exists. Backward-compatibility re-export shim.",
5
5
  "keywords": [
6
- "exists",
7
6
  "xylabs",
8
7
  "utility",
9
8
  "typescript",
@@ -40,20 +39,32 @@
40
39
  "!**/*.test.*",
41
40
  "README.md"
42
41
  ],
42
+ "dependencies": {
43
+ "@ariestools/sdk": "~7.0.4"
44
+ },
43
45
  "devDependencies": {
44
- "@xylabs/toolchain": "^8.5.3",
45
- "@xylabs/tsconfig": "^8.5.3",
46
+ "@opentelemetry/api": "^1.9.1",
47
+ "@opentelemetry/sdk-trace-base": "^2.8.0",
48
+ "@xylabs/toolchain": "^8.5.11",
49
+ "@xylabs/tsconfig": "^8.5.11",
50
+ "async-mutex": "^0.5.0",
46
51
  "browserslist": "4.28.4",
47
52
  "eslint": "^10.6.0",
48
53
  "eslint-import-resolver-typescript": "^4.4.5",
49
54
  "typescript": "^6.0.3",
50
- "vite": "^8.1.0",
51
- "vitest": "^4.1.9"
55
+ "zod": "^4.4.3"
56
+ },
57
+ "peerDependencies": {
58
+ "@opentelemetry/api": "^1.9",
59
+ "@opentelemetry/sdk-trace-base": "^2.7",
60
+ "async-mutex": "^0.5",
61
+ "zod": "^4.4"
52
62
  },
53
63
  "engines": {
54
64
  "node": ">=18"
55
65
  },
56
66
  "publishConfig": {
57
67
  "access": "public"
58
- }
68
+ },
69
+ "deprecated": "Use @ariestools/sdk/exists instead. @xylabs/exists is a compatibility shim only and will not receive further updates."
59
70
  }