@xyo-network/plugins 3.2.0-rc.1 → 3.2.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.
- package/eslint.config.mjs +1 -1
- package/package.json +24 -24
- package/vitest.config.ts +17 -2
- package/jest.config.ts +0 -31
package/eslint.config.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { typescriptConfig,
|
|
|
8
8
|
|
|
9
9
|
export default [
|
|
10
10
|
{
|
|
11
|
-
ignores: ['.yarn/**', '
|
|
11
|
+
ignores: ['.yarn/**', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs'],
|
|
12
12
|
},
|
|
13
13
|
unicornConfig,
|
|
14
14
|
workspacesConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/plugins",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "xy build && xy statics",
|
|
36
|
+
"build-tests": "tsc --noEmit --lib dom,esnext",
|
|
36
37
|
"build-typedoc-site": "typedoc",
|
|
37
38
|
"compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
|
|
38
39
|
"coverage": "yarn vitest --coverage --forceExit",
|
|
@@ -42,50 +43,49 @@
|
|
|
42
43
|
},
|
|
43
44
|
"resolutions": {
|
|
44
45
|
"axios": "^1",
|
|
45
|
-
"eslint": "^8",
|
|
46
46
|
"ethers": "^6",
|
|
47
47
|
"jsbi": "^3",
|
|
48
48
|
"quick-lru": "^5"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@xyo-network/payload-plugins": "^3.2.0-rc.
|
|
52
|
-
"@xyo-network/payloadset-plugins": "^3.2.0-rc.
|
|
51
|
+
"@xyo-network/payload-plugins": "^3.2.0-rc.2",
|
|
52
|
+
"@xyo-network/payloadset-plugins": "^3.2.0-rc.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/core": "^7.26.0",
|
|
56
56
|
"@ethersproject/address": "^5.7.0",
|
|
57
57
|
"@ethersproject/bignumber": "^5.7.0",
|
|
58
|
-
"@stylistic/eslint-plugin": "^2.12.
|
|
58
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
59
59
|
"@types/supertest": "^6.0.2",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.18.
|
|
61
|
-
"@typescript-eslint/parser": "^8.18.
|
|
62
|
-
"@xylabs/eslint-config-flat": "^4.2.
|
|
63
|
-
"@xylabs/forget": "^4.4.
|
|
64
|
-
"@xylabs/platform": "^4.4.
|
|
65
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
|
66
|
-
"@xylabs/tsconfig": "^4.2.
|
|
67
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
68
|
-
"@xyo-network/account": "^3.6.0-rc.
|
|
69
|
-
"@xyo-network/archivist-memory": "^3.6.0-rc.
|
|
70
|
-
"@xyo-network/boundwitness-builder": "^3.6.0-rc.
|
|
71
|
-
"@xyo-network/hash": "^3.6.0-rc.
|
|
72
|
-
"@xyo-network/manifest": "^3.6.0-rc.
|
|
73
|
-
"@xyo-network/manifest-wrapper": "^3.6.0-rc.
|
|
74
|
-
"@xyo-network/node-memory": "^3.6.0-rc.
|
|
75
|
-
"@xyo-network/payload-builder": "^3.6.0-rc.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
61
|
+
"@typescript-eslint/parser": "^8.18.1",
|
|
62
|
+
"@xylabs/eslint-config-flat": "^4.2.6",
|
|
63
|
+
"@xylabs/forget": "^4.4.24",
|
|
64
|
+
"@xylabs/platform": "^4.4.24",
|
|
65
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
66
|
+
"@xylabs/tsconfig": "^4.2.6",
|
|
67
|
+
"@xylabs/vitest-extended": "^4.4.24",
|
|
68
|
+
"@xyo-network/account": "^3.6.0-rc.11",
|
|
69
|
+
"@xyo-network/archivist-memory": "^3.6.0-rc.11",
|
|
70
|
+
"@xyo-network/boundwitness-builder": "^3.6.0-rc.11",
|
|
71
|
+
"@xyo-network/hash": "^3.6.0-rc.11",
|
|
72
|
+
"@xyo-network/manifest": "^3.6.0-rc.11",
|
|
73
|
+
"@xyo-network/manifest-wrapper": "^3.6.0-rc.11",
|
|
74
|
+
"@xyo-network/node-memory": "^3.6.0-rc.11",
|
|
75
|
+
"@xyo-network/payload-builder": "^3.6.0-rc.11",
|
|
76
76
|
"dotenv": "^16.4.7",
|
|
77
|
-
"eslint": "^9.
|
|
77
|
+
"eslint": "^9.17.0",
|
|
78
78
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
79
79
|
"eslint-plugin-import": "^2.31.0",
|
|
80
80
|
"jsbi": "^3.2.5",
|
|
81
81
|
"jsdom": "^25.0.1",
|
|
82
82
|
"lodash": "^4.17.21",
|
|
83
83
|
"lodash-es": "^4.17.21",
|
|
84
|
-
"nodemon": "^3.1.
|
|
84
|
+
"nodemon": "^3.1.9",
|
|
85
85
|
"reflect-metadata": "^0.2.2",
|
|
86
86
|
"supertest": "^7.0.0",
|
|
87
87
|
"tslib": "^2.8.1",
|
|
88
|
-
"typedoc": "^0.27.
|
|
88
|
+
"typedoc": "^0.27.5",
|
|
89
89
|
"typescript": "^5.7.2",
|
|
90
90
|
"vitest": "^2.1.8"
|
|
91
91
|
},
|
package/vitest.config.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
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()
|
|
6
5
|
|
|
7
|
-
export default defineConfig({
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
test: {
|
|
8
|
+
globals: false,
|
|
9
|
+
environment: 'node',
|
|
10
|
+
environmentMatchGlobs: [
|
|
11
|
+
['**/*.dom.spec.*', 'jsdom'], // Use jsdom
|
|
12
|
+
['**/*.node.spec.*', 'node'], // Use node
|
|
13
|
+
],
|
|
14
|
+
coverage: {
|
|
15
|
+
provider: 'v8', // Use V8 native coverage provider
|
|
16
|
+
reporter: ['text', 'html', 'lcov'], // Output formats
|
|
17
|
+
// reportsDirectory: './coverage', // Directory for coverage output
|
|
18
|
+
// include: ['**/src/**/*.ts'], // Include files to track
|
|
19
|
+
// exclude: ['node_modules', '**/src/*.spec.*'], // Exclude unnecessary files
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
})
|
package/jest.config.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
2
|
-
const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules
|
|
3
|
-
return {
|
|
4
|
-
coveragePathIgnorePatterns: ['<rootDir>/(.*)/dist'],
|
|
5
|
-
extensionsToTreatAsEsm: ['.ts'],
|
|
6
|
-
globalSetup: './jestSetup/globalSetup.ts',
|
|
7
|
-
globalTeardown: './jestSetup/globalTeardown.ts',
|
|
8
|
-
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
|
|
9
|
-
preset: 'ts-jest',
|
|
10
|
-
setupFiles: ['dotenv/config'],
|
|
11
|
-
setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all', './jestSetup/setupFiles.ts'],
|
|
12
|
-
testEnvironment: 'node',
|
|
13
|
-
testRegex: String.raw`(/__tests__/.*|(\.|/)((!perf\.)test|spec))\.tsx?$`,
|
|
14
|
-
testTimeout: 200_000,
|
|
15
|
-
transform: {
|
|
16
|
-
[`(${esModulesList}).+\\.js$`]: 'babel-jest',
|
|
17
|
-
'^.+\\.tsx?$': [
|
|
18
|
-
'ts-jest',
|
|
19
|
-
{
|
|
20
|
-
tsconfig: 'tsconfig.test.json',
|
|
21
|
-
useESM: true,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
transformIgnorePatterns: [`./node_modules/(?!${esModulesList})`],
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
|
|
30
|
-
|
|
31
|
-
export default config
|