@xyo-network/sdk-js 3.2.0 → 3.3.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.
package/eslint.config.mjs CHANGED
@@ -1,15 +1,27 @@
1
1
  // eslint.config.mjs
2
2
 
3
-
4
- import { typescriptConfig,
3
+ import {
4
+ typescriptConfig,
5
5
  unicornConfig,
6
6
  workspacesConfig,
7
7
  rulesConfig,
8
- importConfig } from '@xylabs/eslint-config-flat'
8
+ importConfig,
9
+ } from '@xylabs/eslint-config-flat'
9
10
 
10
11
  export default [
11
12
  {
12
- ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs', '**/docs/**/*.js'],
13
+ ignores: [
14
+ '.yarn/**',
15
+ 'jest.config.cjs',
16
+ '**/dist/**',
17
+ 'dist',
18
+ 'build/**',
19
+ 'node_modules/**',
20
+ 'public',
21
+ '.storybook',
22
+ 'storybook-static',
23
+ '**/docs/**/*.js',
24
+ ],
13
25
  },
14
26
  unicornConfig,
15
27
  workspacesConfig,
@@ -18,7 +30,7 @@ export default [
18
30
  ...typescriptConfig,
19
31
  rules: {
20
32
  ...typescriptConfig.rules,
21
- '@typescript-eslint/consistent-type-imports': ['warn']
33
+ '@typescript-eslint/consistent-type-imports': ['warn'],
22
34
  },
23
35
  },
24
36
  {
@@ -29,6 +41,7 @@ export default [
29
41
  paths: [
30
42
  ...rulesConfig.rules['no-restricted-imports'][1].paths,
31
43
  '@types/node',
44
+ '@xylabs/lodash',
32
45
  '@xyo-network/archivist',
33
46
  '@xyo-network/bridge',
34
47
  '@xyo-network/core',
@@ -51,7 +64,22 @@ export default [
51
64
  ...importConfig,
52
65
  rules: {
53
66
  ...importConfig.rules,
67
+ 'import-x/no-internal-modules': [
68
+ 'warn',
69
+ {
70
+ allow: [
71
+ '**/*.json', // Allow JSON imports
72
+ 'vitest/**', // Allow vitest internal imports
73
+ '@*/**', // Allow imports from any @scoped package
74
+ // Allow imports to any index.js file
75
+ '**/index.js',
76
+ '**/index.ts',
77
+ '**/index.jsx',
78
+ '**/index.tsx',
79
+ ],
80
+ },
81
+ ],
54
82
  'import-x/no-cycle': ['warn', { maxDepth: 5 }],
55
- }
56
- }
83
+ },
84
+ },
57
85
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/sdk-js",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -70,27 +70,26 @@
70
70
  "quick-lru": "^5"
71
71
  },
72
72
  "dependencies": {
73
- "@xyo-network/core-payload-plugins": "^3.2.0",
74
- "@xyo-network/manifest": "^3.2.0",
75
- "@xyo-network/modules": "^3.2.0",
76
- "@xyo-network/protocol": "^3.2.0",
77
- "@xyo-network/sdk-utils": "^3.2.0",
78
- "@xyo-network/shared": "^3.2.0"
73
+ "@xyo-network/core-payload-plugins": "^3.3.0",
74
+ "@xyo-network/manifest": "^3.3.0",
75
+ "@xyo-network/modules": "^3.3.0",
76
+ "@xyo-network/protocol": "^3.3.0",
77
+ "@xyo-network/sdk-utils": "^3.3.0",
78
+ "@xyo-network/shared": "^3.3.0"
79
79
  },
80
80
  "devDependencies": {
81
- "@babel/core": "^7.25.7",
81
+ "@babel/core": "^7.25.8",
82
82
  "@jest/globals": "^29.7.0",
83
83
  "@stylistic/eslint-plugin": "^2.9.0",
84
84
  "@types/jest": "^29.5.13",
85
85
  "@types/supertest": "^6.0.2",
86
- "@typescript-eslint/eslint-plugin": "^8.8.1",
87
- "@typescript-eslint/parser": "^8.8.1",
88
- "@xylabs/eslint-config-flat": "^4.1.0",
89
- "@xylabs/forget": "^4.1.0",
90
- "@xylabs/ts-scripts-yarn3": "^4.1.0",
91
- "@xylabs/tsconfig": "^4.1.0",
86
+ "@typescript-eslint/eslint-plugin": "^8.10.0",
87
+ "@typescript-eslint/parser": "^8.10.0",
88
+ "@xylabs/eslint-config-flat": "^4.2.1",
89
+ "@xylabs/forget": "^4.2.2",
90
+ "@xylabs/ts-scripts-yarn3": "^4.2.1",
91
+ "@xylabs/tsconfig": "^4.2.1",
92
92
  "@xylabs/tsconfig-dom-jest": "^4.1.0",
93
- "@xylabs/tsconfig-jest": "^4.1.0",
94
93
  "babel-jest": "^29.7.0",
95
94
  "dotenv": "^16.4.5",
96
95
  "eslint": "^9.12.0",
@@ -107,11 +106,11 @@
107
106
  "supertest": "^7.0.0",
108
107
  "ts-jest": "^29.2.5",
109
108
  "ts-node": "^10.9.2",
110
- "tslib": "^2.7.0",
111
- "typedoc": "^0.26.8",
109
+ "tslib": "^2.8.0",
110
+ "typedoc": "^0.26.10",
112
111
  "typedoc-material-theme": "^1.1.0",
113
- "typescript": "^5.6.2",
114
- "vitest": "^2.1.2"
112
+ "typescript": "^5.6.3",
113
+ "vitest": "^2.1.3"
115
114
  },
116
115
  "packageManager": "yarn@4.5.0",
117
116
  "volta": {
package/vitest.config.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import dotenv from 'dotenv'
2
- // eslint-disable-next-line import-x/no-internal-modules
3
2
  import { defineConfig } from 'vitest/config'
4
3
 
5
4
  dotenv.config()
@@ -0,0 +1,5 @@
1
+ import { defineWorkspace } from 'vitest/config'
2
+
3
+ export default defineWorkspace([
4
+ './vitest.config.ts',
5
+ ])