Skip to content

Commit

Permalink
config & eslint update
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 8, 2024
1 parent 9980bcf commit dd95c06
Show file tree
Hide file tree
Showing 207 changed files with 3,910 additions and 1,134 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default [
...importConfig,
rules: {
...importConfig.rules,
'import-x/no-cycle': ['warn', { maxDepth: 5 }]
'import-x/no-cycle': ['warn', { maxDepth: 5 }],
}
}
]
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@xylabs/eslint-config-flat": "^4.0.7",
"@xylabs/eslint-config-flat": "^4.1.0",
"@xylabs/forget": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/tsconfig-dom-jest": "^4.0.7",
"@xylabs/tsconfig-jest": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xylabs/tsconfig-dom-jest": "^4.1.0",
"@xylabs/tsconfig-jest": "^4.1.0",
"babel-jest": "^29.7.0",
"dotenv": "^16.4.5",
"eslint": "^9.12.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@xyo-network/value-payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/address/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/domain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
},
"devDependencies": {
"@types/node": "^22.7.5",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/value/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@xyo-network/payload-plugin": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@xyo-network/manifest-wrapper": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"ajv": "^8.17.1",
"typescript": "^5.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/manifest/packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"devDependencies": {
"@types/node": "^22.7.5",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2",
"typescript-json-schema": "^0.65.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/manifest/packages/wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"devDependencies": {
"@xylabs/object": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"devDependencies": {
"@swc/core": "1.7.28",
"@xylabs/delay": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/archivist-memory": "workspace:^",
"@xyo-network/archivist-model": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/packages/archivist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@xyo-network/archivist-wrapper": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"@xylabs/delay": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/id-payload-plugin": "workspace:^",
"@xyo-network/payload-wrapper": "workspace:^",
"typescript": "^5.6.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@firebase/app-compat": "^0.2.42",
"@firebase/rules-unit-testing": "^3.0.4",
"@xylabs/object": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/id-payload-plugin": "workspace:^",
"@xyo-network/payload-wrapper": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"devDependencies": {
"@xylabs/object": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/id-payload-plugin": "workspace:^",
"@xyo-network/payload-wrapper": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ import type { IndexedDbArchivistConfig } from '../Config.ts'
import { IndexedDbArchivistConfigSchema } from '../Config.ts'

// Augment window with prototypes to ensure instance of comparisons work
window.IDBCursor = IDBCursor
window.IDBCursorWithValue = IDBCursorWithValue
window.IDBDatabase = IDBDatabase
window.IDBFactory = IDBFactory
window.IDBIndex = IDBIndex
window.IDBKeyRange = IDBKeyRange
window.IDBObjectStore = IDBObjectStore
window.IDBOpenDBRequest = IDBOpenDBRequest
window.IDBRequest = IDBRequest
window.IDBTransaction = IDBTransaction
window.IDBVersionChangeEvent = IDBVersionChangeEvent
window.indexedDB = indexedDB
globalThis.IDBCursor = IDBCursor
globalThis.IDBCursorWithValue = IDBCursorWithValue
globalThis.IDBDatabase = IDBDatabase
globalThis.IDBFactory = IDBFactory
globalThis.IDBIndex = IDBIndex
globalThis.IDBKeyRange = IDBKeyRange
globalThis.IDBObjectStore = IDBObjectStore
globalThis.IDBOpenDBRequest = IDBOpenDBRequest
globalThis.IDBRequest = IDBRequest
globalThis.IDBTransaction = IDBTransaction
globalThis.IDBVersionChangeEvent = IDBVersionChangeEvent
globalThis.indexedDB = indexedDB

/**
* @group module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ describe('IndexedDbArchivist', () => {
type TestPayload = PayloadWithMeta<{ salt: string; schema: string }>

// Augment window with prototypes to ensure instance of comparisons work
window.IDBCursor = IDBCursor
window.IDBCursorWithValue = IDBCursorWithValue
window.IDBDatabase = IDBDatabase
window.IDBFactory = IDBFactory
window.IDBIndex = IDBIndex
window.IDBKeyRange = IDBKeyRange
window.IDBObjectStore = IDBObjectStore
window.IDBOpenDBRequest = IDBOpenDBRequest
window.IDBRequest = IDBRequest
window.IDBTransaction = IDBTransaction
window.IDBVersionChangeEvent = IDBVersionChangeEvent
window.indexedDB = indexedDB
globalThis.IDBCursor = IDBCursor
globalThis.IDBCursorWithValue = IDBCursorWithValue
globalThis.IDBDatabase = IDBDatabase
globalThis.IDBFactory = IDBFactory
globalThis.IDBIndex = IDBIndex
globalThis.IDBKeyRange = IDBKeyRange
globalThis.IDBObjectStore = IDBObjectStore
globalThis.IDBOpenDBRequest = IDBOpenDBRequest
globalThis.IDBRequest = IDBRequest
globalThis.IDBTransaction = IDBTransaction
globalThis.IDBVersionChangeEvent = IDBVersionChangeEvent
globalThis.indexedDB = indexedDB

const fillDb = async (db: ArchivistInstance, count: number = 10): Promise<TestPayload[]> => {
const sources = await Promise.all(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"lru-cache": "^11.0.1"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"typescript": "^5.6.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"devDependencies": {
"@xylabs/delay": "^4.0.10",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/archivist-memory": "workspace:^",
"@xyo-network/boundwitness-wrapper": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/archivist-memory": "workspace:^",
"@xyo-network/node-memory": "workspace:^",
"@xyo-network/payload-builder": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/archivist-memory": "workspace:^",
"@xyo-network/payload-builder": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/packages/bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@xyo-network/bridge-wrapper": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/bridge-pub-sub": "workspace:^",
"@xyo-network/node-memory": "workspace:^",
"@xyo-network/node-model": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"lru-cache": "^11.0.1"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/packages/bridge/packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^22.7.5",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"@xyo-network/account": "workspace:^",
"@xyo-network/archivist-model": "workspace:^",
"@xyo-network/bridge-abstract": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/packages/bridge/packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@xyo-network/payload-model": "workspace:^"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"module": "dist/neutral/index.mjs",
"types": "dist/neutral/index.d.ts",
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"@xylabs/ts-scripts-yarn3": "^4.1.0",
"@xylabs/tsconfig": "^4.1.0",
"typescript": "^5.6.2"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit dd95c06

Please sign in to comment.