@xyo-network/plugins 2.99.5 → 3.0.0

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,3 +1,2 @@
1
1
  export * from '@xyo-network/payload-plugins';
2
2
  export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from '@xyo-network/payload-plugins';
2
2
  export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from '@xyo-network/payload-plugins';
2
2
  export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
package/jest.config.ts CHANGED
@@ -30,5 +30,4 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
30
30
 
31
31
  const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
32
32
 
33
- // eslint-disable-next-line import/no-default-export
34
33
  export default config
package/package.json CHANGED
@@ -13,33 +13,40 @@
13
13
  "packages/**/*"
14
14
  ],
15
15
  "dependencies": {
16
- "@xyo-network/payload-plugins": "^2.99.5",
17
- "@xyo-network/payloadset-plugins": "^2.99.5"
16
+ "@xyo-network/payload-plugins": "^3.0.0",
17
+ "@xyo-network/payloadset-plugins": "^3.0.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@babel/core": "^7.25.2",
21
- "@babel/preset-env": "^7.25.3",
22
- "@babel/preset-typescript": "^7.24.7",
21
+ "@stylistic/eslint-plugin": "^2.6.2",
23
22
  "@types/jest": "^29.5.12",
24
23
  "@types/supertest": "^6.0.2",
25
- "@xylabs/eslint-config": "^3.15.13",
26
- "@xylabs/eslint-config-flat": "^3.15.13",
27
- "@xylabs/forget": "^3.6.8",
28
- "@xylabs/ts-scripts-yarn3": "^3.15.13",
29
- "@xylabs/tsconfig": "^3.15.13",
30
- "@xylabs/tsconfig-dom-jest": "^3.15.13",
31
- "@xyo-network/account": "^2.111.2",
32
- "@xyo-network/archivist-memory": "^2.111.2",
33
- "@xyo-network/boundwitness-builder": "^2.111.2",
34
- "@xyo-network/hash": "^2.111.2",
35
- "@xyo-network/manifest": "^2.111.2",
36
- "@xyo-network/manifest-wrapper": "^2.111.2",
37
- "@xyo-network/node-memory": "^2.111.2",
38
- "@xyo-network/payload-builder": "^2.111.2",
24
+ "@typescript-eslint/eslint-plugin": "^8.1.0",
25
+ "@typescript-eslint/parser": "^8.1.0",
26
+ "@xylabs/eslint-config-flat": "^4.0.0-rc.15",
27
+ "@xylabs/forget": "^4.0.0",
28
+ "@xylabs/platform": "^4.0.0",
29
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
30
+ "@xylabs/tsconfig": "^4.0.0-rc.15",
31
+ "@xylabs/tsconfig-dom-jest": "^4.0.0-rc.15",
32
+ "@xylabs/tsconfig-jest": "^4.0.0-rc.15",
33
+ "@xyo-network/account": "^3.0.1",
34
+ "@xyo-network/archivist-memory": "^3.0.1",
35
+ "@xyo-network/boundwitness-builder": "^3.0.1",
36
+ "@xyo-network/hash": "^3.0.1",
37
+ "@xyo-network/manifest": "^3.0.1",
38
+ "@xyo-network/manifest-wrapper": "^3.0.1",
39
+ "@xyo-network/node-memory": "^3.0.1",
40
+ "@xyo-network/payload-builder": "^3.0.1",
39
41
  "babel-jest": "^29.7.0",
40
42
  "dotenv": "^16.4.5",
41
- "eslint": "^9.8.0",
42
- "ethers": "^6.13.2",
43
+ "eslint": "^9.9.0",
44
+ "eslint-import-resolver-typescript": "^3.6.1",
45
+ "eslint-plugin-import": "^2.29.1",
46
+ "eslint-plugin-prettier": "^5.2.1",
47
+ "eslint-plugin-simple-import-sort": "^12.1.1",
48
+ "eslint-plugin-sonarjs": "^1.0.4",
49
+ "eslint-plugin-workspaces": "^0.10.1",
43
50
  "jest": "^29.7.0",
44
51
  "jest-docblock": "^29.7.0",
45
52
  "jest-environment-jsdom": "^29.7.0",
@@ -47,51 +54,37 @@
47
54
  "jest-runner": "^29.7.0",
48
55
  "jest-runner-groups": "^2.2.0",
49
56
  "jest-sorted": "^1.0.15",
57
+ "jsbi": "^3.2.5",
58
+ "jsdom": "^24.1.1",
59
+ "lodash": "^4.17.21",
60
+ "lodash-es": "^4.17.21",
50
61
  "nodemon": "^3.1.4",
51
62
  "reflect-metadata": "^0.2.2",
52
63
  "supertest": "^7.0.0",
53
64
  "ts-jest": "^29.2.4",
54
65
  "ts-node": "^10.9.2",
66
+ "tslib": "^2.6.3",
55
67
  "typedoc": "^0.26.5",
56
- "typescript": "^5.5.4"
68
+ "typescript": "^5.5.4",
69
+ "vitest": "^2.0.5"
57
70
  },
58
71
  "resolutions": {
59
72
  "axios": "^1",
60
73
  "eslint": "^8",
61
74
  "ethers": "^6",
62
- "mapbox-gl": "^2",
63
75
  "quick-lru": "^5"
64
76
  },
65
77
  "resolutions_comment": "We set the above resolutions to make sure we pull in the latest versions of these packages even if some sub packages request earlier versions",
66
78
  "description": "Typescript/Javascript Plugins for XYO Platform",
67
79
  "exports": {
68
80
  ".": {
69
- "browser": {
70
- "require": {
71
- "types": "./dist/browser/index.d.cts",
72
- "default": "./dist/browser/index.cjs"
73
- },
74
- "import": {
75
- "types": "./dist/browser/index.d.mts",
76
- "default": "./dist/browser/index.mjs"
77
- }
78
- },
79
- "node": {
80
- "require": {
81
- "types": "./dist/node/index.d.cts",
82
- "default": "./dist/node/index.cjs"
83
- },
84
- "import": {
85
- "types": "./dist/node/index.d.mts",
86
- "default": "./dist/node/index.mjs"
87
- }
88
- }
81
+ "types": "./dist/neutral/index.d.ts",
82
+ "default": "./dist/neutral/index.mjs"
89
83
  },
90
84
  "./package.json": "./package.json"
91
85
  },
92
- "main": "dist/node/index.cjs",
93
- "module": "dist/node/index.mjs",
94
- "types": "dist/node/index.d.ts",
86
+ "module": "dist/neutral/index.mjs",
87
+ "types": "dist/neutral/index.d.ts",
95
88
  "homepage": "https://xyo.network",
96
89
  "license": "LGPL-3.0-only",
97
90
  "publishConfig": {
@@ -112,8 +105,8 @@
112
105
  "build-typedoc-site": "typedoc"
113
106
  },
114
107
  "sideEffects": false,
115
- "version": "2.99.5",
116
- "packageManager": "yarn@4.3.1",
108
+ "version": "3.0.0",
109
+ "packageManager": "yarn@4.4.0",
117
110
  "volta": {
118
111
  "node": "22.3.0",
119
112
  "yarn": "1.22.22"
@@ -0,0 +1,12 @@
1
+ import dotenv from 'dotenv'
2
+ // eslint-disable-next-line import-x/no-internal-modules
3
+ import { defineConfig } from 'vitest/config'
4
+
5
+ dotenv.config()
6
+
7
+ export default defineConfig({
8
+ test: {
9
+ globals: true,
10
+ setupFiles: ['./vitest.startup.ts'],
11
+ },
12
+ })
@@ -0,0 +1,8 @@
1
+ import * as matchers from 'jest-extended'
2
+ import { expect, vi } from 'vitest'
3
+
4
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
+ (globalThis as any).jest = vi // replace jest with vi
6
+
7
+ // Extend Vitest's expect with jest-extended matchers
8
+ expect.extend(matchers)
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
-
17
- // src/index.ts
18
- var src_exports = {};
19
- module.exports = __toCommonJS(src_exports);
20
- __reExport(src_exports, require("@xyo-network/payload-plugins"), module.exports);
21
- __reExport(src_exports, require("@xyo-network/payloadset-plugins"), module.exports);
22
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@xyo-network/payload-plugins'\nexport * from '@xyo-network/payloadset-plugins'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;wBAAc,yCAAd;AACA,wBAAc,4CADd;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
-
17
- // src/index.ts
18
- var src_exports = {};
19
- module.exports = __toCommonJS(src_exports);
20
- __reExport(src_exports, require("@xyo-network/payload-plugins"), module.exports);
21
- __reExport(src_exports, require("@xyo-network/payloadset-plugins"), module.exports);
22
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@xyo-network/payload-plugins'\nexport * from '@xyo-network/payloadset-plugins'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;wBAAc,yCAAd;AACA,wBAAc,4CADd;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
-
17
- // src/index.ts
18
- var src_exports = {};
19
- module.exports = __toCommonJS(src_exports);
20
- __reExport(src_exports, require("@xyo-network/payload-plugins"), module.exports);
21
- __reExport(src_exports, require("@xyo-network/payloadset-plugins"), module.exports);
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- ...require("@xyo-network/payload-plugins"),
25
- ...require("@xyo-network/payloadset-plugins")
26
- });
27
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@xyo-network/payload-plugins'\nexport * from '@xyo-network/payloadset-plugins'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;wBAAc,yCAAd;AACA,wBAAc,4CADd;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from '@xyo-network/payload-plugins';
2
- export * from '@xyo-network/payloadset-plugins';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}