diff --git a/apps/events/package.json b/apps/events/package.json index 0334aa5c..779de254 100644 --- a/apps/events/package.json +++ b/apps/events/package.json @@ -29,7 +29,7 @@ "@xmtp/xmtp-js": "^13.0.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "effect": "^3.10.12", + "effect": "^3.10.19", "ethers": "^6.13.3", "graph-framework": "workspace:*", "lucide-react": "^0.441.0", @@ -37,7 +37,7 @@ "react-dom": "^18.3.1", "tailwind-merge": "^2.5.3", "tailwindcss-animate": "^1.0.7", - "uuid": "^11.0.2", + "uuid": "^11.0.3", "vite-plugin-node-polyfills": "^0.22.0" }, "devDependencies": { diff --git a/apps/server/package.json b/apps/server/package.json index ef392321..364c670c 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -21,7 +21,7 @@ "@prisma/client": "5.22.0", "cors": "^2.8.5", "dotenv": "^16.4.5", - "effect": "^3.10.12", + "effect": "^3.10.19", "express": "^5.0.1", "graph-framework-space-events": "workspace:*", "graph-framework-messages": "workspace:*", diff --git a/package.json b/package.json index caf55a82..ee0b9522 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,16 @@ "workspaces": ["apps/*", "packages/*"], "devDependencies": { "@biomejs/biome": "1.9.4", + "@effect/build-utils": "^0.7.8", "escape-string-regexp": "^5.0.0", + "glob": "^11.0.0", "typescript": "^5.6.3", "vite": "^5.4.10", - "vitest": "^2.1.4", - "vite-plugin-dts": "^4.3.0" + "vitest": "^2.1.4" }, "scripts": { - "build": "pnpm -r build", + "clean": "node scripts/clean.mjs", + "build": "tsc -b tsconfig.build.json && pnpm --recursive --parallel run build", "ts:check": "pnpm -r ts:check", "test": "vitest", "lint": "pnpm -r lint", diff --git a/packages/graph-framework-identity/LICENSE b/packages/graph-framework-identity/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-identity/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-identity/README.md b/packages/graph-framework-identity/README.md new file mode 100644 index 00000000..e3fb7c69 --- /dev/null +++ b/packages/graph-framework-identity/README.md @@ -0,0 +1,5 @@ +# @graph-framework/identity + +Contains utils and tools for creating identities for graph-framework dapp users. As well as handling authentication for dapps built ontop of the graph-framework. + +## TODO: add api/examples \ No newline at end of file diff --git a/packages/graph-framework-identity/package.json b/packages/graph-framework-identity/package.json index b0467c41..e856a6c7 100644 --- a/packages/graph-framework-identity/package.json +++ b/packages/graph-framework-identity/package.json @@ -1,11 +1,25 @@ { "name": "graph-framework-identity", "version": "0.0.1", - "description": "", + "description": "Contains utils and tools for creating identities for graph-framework dapp users. As well as handling authentication for dapps built ontop of the graph-framework.", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-identity" + }, + "license": "MIT", "type": "module", + "exports": { + ".": { + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" + } + }, "scripts": { + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -13,19 +27,14 @@ "check": "pnpm biome check src/*", "check:fix": "pnpm biome check --write src/*" }, - "exports": { - ".": { - "default": "./dist/index.js" - } - }, "peerDependencies": { - "effect": "^3.10.12" + "effect": "^3.10.19" }, "devDependencies": { - "effect": "^3.10.12" + "effect": "^3.10.19" }, "dependencies": { - "uuid": "^11.0.2", + "uuid": "^11.0.3", "graph-framework-utils": "workspace:*" } } diff --git a/packages/graph-framework-identity/src/index.tsx b/packages/graph-framework-identity/src/index.ts similarity index 100% rename from packages/graph-framework-identity/src/index.tsx rename to packages/graph-framework-identity/src/index.ts diff --git a/packages/graph-framework-identity/src/create-identity.test.ts b/packages/graph-framework-identity/test/create-identity.test.ts similarity index 68% rename from packages/graph-framework-identity/src/create-identity.test.ts rename to packages/graph-framework-identity/test/create-identity.test.ts index 9418db40..a9fb57da 100644 --- a/packages/graph-framework-identity/src/create-identity.test.ts +++ b/packages/graph-framework-identity/test/create-identity.test.ts @@ -1,5 +1,5 @@ import { expect, it } from 'vitest'; -import { createIdentity } from './create-identity.js'; +import { createIdentity } from '../src/create-identity.js'; it.skip('should generate an identity', () => { expect(createIdentity()).toEqual({}); diff --git a/packages/graph-framework-identity/tsconfig.build.json b/packages/graph-framework-identity/tsconfig.build.json index c08390c9..87cf0fbb 100644 --- a/packages/graph-framework-identity/tsconfig.build.json +++ b/packages/graph-framework-identity/tsconfig.build.json @@ -6,6 +6,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"] + } } diff --git a/packages/graph-framework-identity/tsconfig.test.json b/packages/graph-framework-identity/tsconfig.test.json new file mode 100644 index 00000000..9ecbb468 --- /dev/null +++ b/packages/graph-framework-identity/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }, { "path": "../graph-framework-utils" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-key/LICENSE b/packages/graph-framework-key/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-key/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-key/README.md b/packages/graph-framework-key/README.md index 064e0944..48fe5a1e 100644 --- a/packages/graph-framework-key/README.md +++ b/packages/graph-framework-key/README.md @@ -1,3 +1,3 @@ -# Graph Framework Key +# @graph-framework/key Utilities for Space Keys and Key boxes. diff --git a/packages/graph-framework-key/package.json b/packages/graph-framework-key/package.json index 8326442f..e58ac6b2 100644 --- a/packages/graph-framework-key/package.json +++ b/packages/graph-framework-key/package.json @@ -2,16 +2,24 @@ "name": "graph-framework-key", "version": "0.0.1", "description": "Utilities for Space Keys and Key boxes", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-key" + }, + "license": "MIT", "type": "module", "exports": { ".": { - "default": "./dist/index.js" + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" } }, "scripts": { - "build": "tsc", + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -23,9 +31,6 @@ "@noble/ciphers": "^1.0.0", "@noble/curves": "^1.6.0", "@noble/hashes": "^1.5.0", - "effect": "^3.10.12" - }, - "devDependencies": { - "vite-plugin-dts": "^4.3.0" + "effect": "^3.10.19" } } diff --git a/packages/graph-framework-key/src/key-box.test.ts b/packages/graph-framework-key/test/key-box.test.ts similarity index 99% rename from packages/graph-framework-key/src/key-box.test.ts rename to packages/graph-framework-key/test/key-box.test.ts index ed63cf97..f8f81317 100644 --- a/packages/graph-framework-key/src/key-box.test.ts +++ b/packages/graph-framework-key/test/key-box.test.ts @@ -1,7 +1,8 @@ import { randomBytes } from '@noble/ciphers/webcrypto'; import { bytesToHex } from '@noble/hashes/utils'; import { describe, expect, it } from 'vitest'; -import { decryptKeyBox, encryptKeyBox, generateKeypair } from './key-box.js'; + +import { decryptKeyBox, encryptKeyBox, generateKeypair } from '../src/key-box.js'; describe('KeyBox Encryption/Decryption', () => { describe('encryptKeyBox', () => { diff --git a/packages/graph-framework-key/src/key.test.ts b/packages/graph-framework-key/test/key.test.ts similarity index 96% rename from packages/graph-framework-key/src/key.test.ts rename to packages/graph-framework-key/test/key.test.ts index f7a2599b..f2339511 100644 --- a/packages/graph-framework-key/src/key.test.ts +++ b/packages/graph-framework-key/test/key.test.ts @@ -1,8 +1,9 @@ import { randomBytes } from '@noble/ciphers/webcrypto'; import { describe, expect, it } from 'vitest'; -import { createKey } from './create-key.js'; -import { encryptKey } from './encrypt-key.js'; -import { decryptKeyBox, generateKeypair } from './key-box.js'; + +import { createKey } from '../src/create-key.js'; +import { encryptKey } from '../src/encrypt-key.js'; +import { decryptKeyBox, generateKeypair } from '../src/key-box.js'; describe('Key Encryption', () => { describe('encryptKey', () => { @@ -158,9 +159,7 @@ describe('Key Encryption', () => { // Each recipient should be able to decrypt their version recipients.forEach((recipient, index) => { const decryptedKey = decryptKeyBox({ - // @ts-expect-error entry is defined ciphertext: encryptedKeys[index].keyBoxCiphertext, - // @ts-expect-error entry is defined nonce: encryptedKeys[index].keyBoxNonce, publicKey: sender.publicKey, secretKey: recipient.secretKey, diff --git a/packages/graph-framework-key/tsconfig.build.json b/packages/graph-framework-key/tsconfig.build.json index 50f248a2..e3c415a6 100644 --- a/packages/graph-framework-key/tsconfig.build.json +++ b/packages/graph-framework-key/tsconfig.build.json @@ -5,6 +5,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"] + } } diff --git a/packages/graph-framework-key/tsconfig.test.json b/packages/graph-framework-key/tsconfig.test.json new file mode 100644 index 00000000..24d66247 --- /dev/null +++ b/packages/graph-framework-key/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-messages/LICENSE b/packages/graph-framework-messages/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-messages/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-messages/README.md b/packages/graph-framework-messages/README.md index 366f2f60..d94d5346 100644 --- a/packages/graph-framework-messages/README.md +++ b/packages/graph-framework-messages/README.md @@ -1,3 +1,3 @@ -# Graph Framework Messages +# @graph-framework/messages Provides types related to messages for the Graph Framework \ No newline at end of file diff --git a/packages/graph-framework-messages/package.json b/packages/graph-framework-messages/package.json index 9f10e7fa..73140cb7 100644 --- a/packages/graph-framework-messages/package.json +++ b/packages/graph-framework-messages/package.json @@ -2,16 +2,24 @@ "name": "graph-framework-messages", "version": "0.0.1", "description": "Provides types related to messages for the Graph Framework", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-messages" + }, + "license": "MIT", "type": "module", "exports": { ".": { - "default": "./dist/index.js" + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" } }, "scripts": { - "build": "tsc", + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -22,10 +30,7 @@ "dependencies": { "@noble/ciphers": "^1.0.0", "@noble/curves": "^1.6.0", - "effect": "^3.10.12", + "effect": "^3.10.19", "graph-framework-space-events": "workspace:*" - }, - "devDependencies": { - "vite-plugin-dts": "^4.3.0" } } diff --git a/packages/graph-framework-messages/src/decrypt-message.test.ts b/packages/graph-framework-messages/test/decrypt-message.test.ts similarity index 91% rename from packages/graph-framework-messages/src/decrypt-message.test.ts rename to packages/graph-framework-messages/test/decrypt-message.test.ts index d5019398..ca107cf7 100644 --- a/packages/graph-framework-messages/src/decrypt-message.test.ts +++ b/packages/graph-framework-messages/test/decrypt-message.test.ts @@ -1,6 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { decryptMessage } from './decrypt-message.js'; -import { encryptMessage } from './encrypt-message.js'; + +import { decryptMessage } from '../src/decrypt-message.js'; +import { encryptMessage } from '../src/encrypt-message.js'; + describe('decryptMessage', () => { const testKey = new Uint8Array(32).fill(1); diff --git a/packages/graph-framework-messages/src/encrypt-message.test.ts b/packages/graph-framework-messages/test/encrypt-message.test.ts similarity index 84% rename from packages/graph-framework-messages/src/encrypt-message.test.ts rename to packages/graph-framework-messages/test/encrypt-message.test.ts index acd0d8e1..a43e46b5 100644 --- a/packages/graph-framework-messages/src/encrypt-message.test.ts +++ b/packages/graph-framework-messages/test/encrypt-message.test.ts @@ -1,5 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { encryptMessage } from './encrypt-message.js'; + +import { encryptMessage } from '../src/encrypt-message.js'; + describe('encryptMessage', () => { const tooShortKey = new Uint8Array(31).fill(1); diff --git a/packages/graph-framework-messages/src/types.test.ts b/packages/graph-framework-messages/test/types.test.ts similarity index 100% rename from packages/graph-framework-messages/src/types.test.ts rename to packages/graph-framework-messages/test/types.test.ts diff --git a/packages/graph-framework-messages/tsconfig.build.json b/packages/graph-framework-messages/tsconfig.build.json index a57eb428..89fb3ade 100644 --- a/packages/graph-framework-messages/tsconfig.build.json +++ b/packages/graph-framework-messages/tsconfig.build.json @@ -6,6 +6,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"] + } } diff --git a/packages/graph-framework-messages/tsconfig.test.json b/packages/graph-framework-messages/tsconfig.test.json new file mode 100644 index 00000000..108fa956 --- /dev/null +++ b/packages/graph-framework-messages/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }, { "path": "../graph-framework-space-events" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-schema/LICENSE b/packages/graph-framework-schema/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-schema/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-schema/README.md b/packages/graph-framework-schema/README.md new file mode 100644 index 00000000..abdaca97 --- /dev/null +++ b/packages/graph-framework-schema/README.md @@ -0,0 +1,5 @@ +# @graph-framework/schema + +Generates a strongly-typed schema representation of a Space and exposes functionality for creating a provider, and react hooks to interact with that schema. + +## TODO: add api/examples \ No newline at end of file diff --git a/packages/graph-framework-schema/package.json b/packages/graph-framework-schema/package.json index 993088bf..34882b0a 100644 --- a/packages/graph-framework-schema/package.json +++ b/packages/graph-framework-schema/package.json @@ -1,11 +1,25 @@ { "name": "graph-framework-schema", "version": "0.0.1", - "description": "", + "description": "Generates a strongly-typed schema representation of a Space and exposes functionality for creating a provider, and react hooks to interact with that schema.", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-schema" + }, + "license": "MIT", "type": "module", + "exports": { + ".": { + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" + } + }, "scripts": { + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -13,23 +27,18 @@ "check": "pnpm biome check src/*", "check:fix": "pnpm biome check --write src/*" }, - "exports": { - ".": { - "default": "./dist/index.js" - } - }, "peerDependencies": { "@automerge/automerge": "^2", "@automerge/automerge-repo": "^1", "@automerge/automerge-repo-react-hooks": "^1", - "effect": "^3.10.12", + "effect": "^3.10.19", "react": "^18" }, "devDependencies": { "@automerge/automerge": "^2.2.8", "@automerge/automerge-repo": "^1.2.1", "@automerge/automerge-repo-react-hooks": "^1.2.1", - "effect": "^3.10.12", + "effect": "^3.10.19", "@testing-library/jest-dom": "^6.5.0", "@testing-library/react": "^16.0.1", "@types/react": "^18.3.7", diff --git a/packages/graph-framework-schema/src/index.test.tsx b/packages/graph-framework-schema/test/index.test.tsx similarity index 97% rename from packages/graph-framework-schema/src/index.test.tsx rename to packages/graph-framework-schema/test/index.test.tsx index 195bc673..dca09763 100644 --- a/packages/graph-framework-schema/src/index.test.tsx +++ b/packages/graph-framework-schema/test/index.test.tsx @@ -1,8 +1,10 @@ import '@testing-library/jest-dom/vitest'; import { act, cleanup, renderHook } from '@testing-library/react'; -import type React from 'react'; +// biome-ignore lint/style/useImportType: +import React from 'react'; import { afterEach, beforeEach, describe, expect, expectTypeOf, it } from 'vitest'; -import { createFunctions, repo, type } from './context.js'; + +import { createFunctions, repo, type } from '../src/context.js'; afterEach(() => { cleanup(); diff --git a/packages/graph-framework-schema/tsconfig.build.json b/packages/graph-framework-schema/tsconfig.build.json index cf392a1c..87cf0fbb 100644 --- a/packages/graph-framework-schema/tsconfig.build.json +++ b/packages/graph-framework-schema/tsconfig.build.json @@ -6,6 +6,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.test.tsx", "src/**/*.spec.ts", "src/**/*.spec.tsx"] + } } diff --git a/packages/graph-framework-schema/tsconfig.test.json b/packages/graph-framework-schema/tsconfig.test.json new file mode 100644 index 00000000..9ecbb468 --- /dev/null +++ b/packages/graph-framework-schema/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }, { "path": "../graph-framework-utils" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-space-events/LICENSE b/packages/graph-framework-space-events/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-space-events/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-space-events/README.md b/packages/graph-framework-space-events/README.md new file mode 100644 index 00000000..553b5e02 --- /dev/null +++ b/packages/graph-framework-space-events/README.md @@ -0,0 +1,5 @@ +# @graph-framework/space-events + +Exposes functionality for events, and applying them, to a space. + +## TODO: add api/functionality \ No newline at end of file diff --git a/packages/graph-framework-space-events/package.json b/packages/graph-framework-space-events/package.json index 8c0649bc..811934d4 100644 --- a/packages/graph-framework-space-events/package.json +++ b/packages/graph-framework-space-events/package.json @@ -1,11 +1,25 @@ { "name": "graph-framework-space-events", "version": "0.0.1", - "description": "", + "description": "Exposes functionality for events, and applying them, to a space.", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-space-events" + }, + "license": "MIT", "type": "module", + "exports": { + ".": { + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" + } + }, "scripts": { + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -13,21 +27,16 @@ "check": "pnpm biome check src/*", "check:fix": "pnpm biome check --write src/*" }, - "exports": { - ".": { - "default": "./dist/index.js" - } - }, "peerDependencies": { - "effect": "^3.10.12" + "effect": "^3.10.19" }, "devDependencies": { - "effect": "^3.10.12" + "effect": "^3.10.19" }, "dependencies": { "@noble/curves": "^1.6.0", "@noble/hashes": "^1.5.0", "graph-framework-utils": "workspace:*", - "uuid": "^11.0.2" + "uuid": "^11.0.3" } } diff --git a/packages/graph-framework-space-events/src/create-space.ts b/packages/graph-framework-space-events/src/create-space.ts index 49c97b83..1089ad92 100644 --- a/packages/graph-framework-space-events/src/create-space.ts +++ b/packages/graph-framework-space-events/src/create-space.ts @@ -1,6 +1,8 @@ import { secp256k1 } from '@noble/curves/secp256k1'; import { Effect } from 'effect'; + import { canonicalize, generateId, stringToUint8Array } from 'graph-framework-utils'; + import type { Author, CreateSpaceEvent } from './types.js'; type Params = { diff --git a/packages/graph-framework-space-events/src/accept-invitation.test.ts b/packages/graph-framework-space-events/test/accept-invitation.test.ts similarity index 88% rename from packages/graph-framework-space-events/src/accept-invitation.test.ts rename to packages/graph-framework-space-events/test/accept-invitation.test.ts index 6b6a48e8..dd3e01eb 100644 --- a/packages/graph-framework-space-events/src/accept-invitation.test.ts +++ b/packages/graph-framework-space-events/test/accept-invitation.test.ts @@ -1,10 +1,10 @@ +import { Effect } from 'effect'; import { expect, it } from 'vitest'; -import { Effect } from 'effect'; -import { acceptInvitation } from './accept-invitation.js'; -import { applyEvent } from './apply-event.js'; -import { createInvitation } from './create-invitation.js'; -import { createSpace } from './create-space.js'; +import { acceptInvitation } from '../src/accept-invitation.js'; +import { applyEvent } from '../src/apply-event.js'; +import { createInvitation } from '../src/create-invitation.js'; +import { createSpace } from '../src/create-space.js'; const author = { signaturePublicKey: '03594161eed61407084114a142d1ce05ef4c5a5279479fdd73a2b16944fbff003b', diff --git a/packages/graph-framework-space-events/src/apply-event.test.ts b/packages/graph-framework-space-events/test/apply-event.test.ts similarity index 92% rename from packages/graph-framework-space-events/src/apply-event.test.ts rename to packages/graph-framework-space-events/test/apply-event.test.ts index c72e058b..69319ce7 100644 --- a/packages/graph-framework-space-events/src/apply-event.test.ts +++ b/packages/graph-framework-space-events/test/apply-event.test.ts @@ -1,11 +1,13 @@ import { secp256k1 } from '@noble/curves/secp256k1'; import { Cause, Effect, Exit } from 'effect'; -import { canonicalize, stringToUint8Array } from 'graph-framework-utils'; import { expect, it } from 'vitest'; -import { applyEvent } from './apply-event.js'; -import { createInvitation } from './create-invitation.js'; -import { createSpace } from './create-space.js'; -import { InvalidEventError, VerifySignatureError } from './types.js'; + +import { canonicalize, stringToUint8Array } from 'graph-framework-utils'; + +import { applyEvent } from '../src/apply-event.js'; +import { createInvitation } from '../src/create-invitation.js'; +import { createSpace } from '../src/create-space.js'; +import { InvalidEventError, VerifySignatureError } from '../src/types.js'; const author = { signaturePublicKey: '03594161eed61407084114a142d1ce05ef4c5a5279479fdd73a2b16944fbff003b', diff --git a/packages/graph-framework-space-events/src/create-invitation.test.ts b/packages/graph-framework-space-events/test/create-invitation.test.ts similarity index 93% rename from packages/graph-framework-space-events/src/create-invitation.test.ts rename to packages/graph-framework-space-events/test/create-invitation.test.ts index 4e9a0956..5e2c43bf 100644 --- a/packages/graph-framework-space-events/src/create-invitation.test.ts +++ b/packages/graph-framework-space-events/test/create-invitation.test.ts @@ -1,11 +1,11 @@ +import { Cause, Effect, Exit } from 'effect'; import { expect, it } from 'vitest'; -import { Cause, Effect, Exit } from 'effect'; -import { acceptInvitation } from './accept-invitation.js'; -import { applyEvent } from './apply-event.js'; -import { createInvitation } from './create-invitation.js'; -import { createSpace } from './create-space.js'; -import { InvalidEventError } from './types.js'; +import { acceptInvitation } from '../src/accept-invitation.js'; +import { applyEvent } from '../src/apply-event.js'; +import { createInvitation } from '../src/create-invitation.js'; +import { createSpace } from '../src/create-space.js'; +import { InvalidEventError } from '../src/types.js'; const author = { signaturePublicKey: '03594161eed61407084114a142d1ce05ef4c5a5279479fdd73a2b16944fbff003b', diff --git a/packages/graph-framework-space-events/src/create-space.test.ts b/packages/graph-framework-space-events/test/create-space.test.ts similarity index 90% rename from packages/graph-framework-space-events/src/create-space.test.ts rename to packages/graph-framework-space-events/test/create-space.test.ts index 427dd6aa..9b064a19 100644 --- a/packages/graph-framework-space-events/src/create-space.test.ts +++ b/packages/graph-framework-space-events/test/create-space.test.ts @@ -1,7 +1,8 @@ import { Effect } from 'effect'; import { expect, it } from 'vitest'; -import { applyEvent } from './apply-event.js'; -import { createSpace } from './create-space.js'; + +import { applyEvent } from '../src/apply-event.js'; +import { createSpace } from '../src/create-space.js'; it('should create a space state', async () => { const author = { diff --git a/packages/graph-framework-space-events/src/delete-space.test.ts b/packages/graph-framework-space-events/test/delete-space.test.ts similarity index 88% rename from packages/graph-framework-space-events/src/delete-space.test.ts rename to packages/graph-framework-space-events/test/delete-space.test.ts index 5c49d474..57d9aaee 100644 --- a/packages/graph-framework-space-events/src/delete-space.test.ts +++ b/packages/graph-framework-space-events/test/delete-space.test.ts @@ -1,11 +1,12 @@ import { Cause, Effect, Exit } from 'effect'; import { expect, it } from 'vitest'; -import { acceptInvitation } from './accept-invitation.js'; -import { applyEvent } from './apply-event.js'; -import { createInvitation } from './create-invitation.js'; -import { createSpace } from './create-space.js'; -import { deleteSpace } from './delete-space.js'; -import { InvalidEventError } from './types.js'; + +import { acceptInvitation } from '../src/accept-invitation.js'; +import { applyEvent } from '../src/apply-event.js'; +import { createInvitation } from '../src/create-invitation.js'; +import { createSpace } from '../src/create-space.js'; +import { deleteSpace } from '../src/delete-space.js'; +import { InvalidEventError } from '../src/types.js'; const author = { signaturePublicKey: '03594161eed61407084114a142d1ce05ef4c5a5279479fdd73a2b16944fbff003b', diff --git a/packages/graph-framework-space-events/tsconfig.build.json b/packages/graph-framework-space-events/tsconfig.build.json index c08390c9..87cf0fbb 100644 --- a/packages/graph-framework-space-events/tsconfig.build.json +++ b/packages/graph-framework-space-events/tsconfig.build.json @@ -6,6 +6,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"] + } } diff --git a/packages/graph-framework-space-events/tsconfig.test.json b/packages/graph-framework-space-events/tsconfig.test.json new file mode 100644 index 00000000..9ecbb468 --- /dev/null +++ b/packages/graph-framework-space-events/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }, { "path": "../graph-framework-utils" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-utils/LICENSE b/packages/graph-framework-utils/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework-utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework-utils/README.md b/packages/graph-framework-utils/README.md index 7359e8a8..58d8f5fe 100644 --- a/packages/graph-framework-utils/README.md +++ b/packages/graph-framework-utils/README.md @@ -1,4 +1,4 @@ -# Graph Framework Utils +# @graph-framework/utils Provides common utilities for the Graph Framework. diff --git a/packages/graph-framework-utils/package.json b/packages/graph-framework-utils/package.json index 21554980..1309feea 100644 --- a/packages/graph-framework-utils/package.json +++ b/packages/graph-framework-utils/package.json @@ -2,30 +2,24 @@ "name": "graph-framework-utils", "version": "0.0.1", "description": "Provides common utilities for the Graph Framework", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework-utils" + }, + "license": "MIT", "type": "module", - "main": "./dist/index.mjs", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.cjs", - "import": "./dist/index.mjs", - "default": "./dist/index.mjs" - }, - "./base58": { - "types": "./dist/base58.d.ts", - "require": "./dist/base58.cjs", - "import": "./dist/base58.mjs", - "default": "./dist/base58.mjs" + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" } }, - "files": ["dist", "package.json"], - "sideEffects": false, "scripts": { - "build": "tsc", + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -35,8 +29,7 @@ }, "devDependencies": { "@types/uuid": "^10.0.0", - "uuid": "^11.0.2", - "vite-plugin-dts": "^4.3.0" + "uuid": "^11.0.3" }, "peerDependencies": { "uuid": "^11" diff --git a/packages/graph-framework-utils/src/base58.test.ts b/packages/graph-framework-utils/test/base58.test.ts similarity index 88% rename from packages/graph-framework-utils/src/base58.test.ts rename to packages/graph-framework-utils/test/base58.test.ts index 7888b733..63451f6b 100644 --- a/packages/graph-framework-utils/src/base58.test.ts +++ b/packages/graph-framework-utils/test/base58.test.ts @@ -1,7 +1,7 @@ import { v4 } from 'uuid'; import { describe, expect, it } from 'vitest'; -import { decodeBase58ToUUID, encodeBase58 } from './base58.js'; +import { decodeBase58ToUUID, encodeBase58 } from '../src/base58.js'; describe('base58', () => { it('should be able to encoded a UUID to base58 and then decode it back to its original UUID', () => { diff --git a/packages/graph-framework-utils/src/generateId.test.ts b/packages/graph-framework-utils/test/generateId.test.ts similarity index 80% rename from packages/graph-framework-utils/src/generateId.test.ts rename to packages/graph-framework-utils/test/generateId.test.ts index 588b0d3d..6ca6c845 100644 --- a/packages/graph-framework-utils/src/generateId.test.ts +++ b/packages/graph-framework-utils/test/generateId.test.ts @@ -1,6 +1,6 @@ import { expect, it } from 'vitest'; -import { generateId } from './generateId.js'; +import { generateId } from '../src/generateId.js'; it('should generate a base58 encoded uuid of 22 char length', () => { const id = generateId(); diff --git a/packages/graph-framework-utils/src/jsc.test.ts b/packages/graph-framework-utils/test/jsc.test.ts similarity index 99% rename from packages/graph-framework-utils/src/jsc.test.ts rename to packages/graph-framework-utils/test/jsc.test.ts index 2cefa3c5..a0fcd465 100644 --- a/packages/graph-framework-utils/src/jsc.test.ts +++ b/packages/graph-framework-utils/test/jsc.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { InfinityNotAllowedError, NaNNotAllowedError, canonicalize } from './jsc.js'; +import { InfinityNotAllowedError, NaNNotAllowedError, canonicalize } from '../src/jsc.js'; describe('jsc', () => { describe('canonicalize', () => { diff --git a/packages/graph-framework-utils/src/stringToUint8Array.test.ts b/packages/graph-framework-utils/test/stringToUint8Array.test.ts similarity index 89% rename from packages/graph-framework-utils/src/stringToUint8Array.test.ts rename to packages/graph-framework-utils/test/stringToUint8Array.test.ts index c969229a..69e5a468 100644 --- a/packages/graph-framework-utils/src/stringToUint8Array.test.ts +++ b/packages/graph-framework-utils/test/stringToUint8Array.test.ts @@ -1,5 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { stringToUint8Array } from './stringToUint8Array.js'; + +import { stringToUint8Array } from '../src/stringToUint8Array.js'; describe('stringToUint8Array', () => { it('should convert a string to a Uint8Array', () => { diff --git a/packages/graph-framework-utils/tsconfig.build.json b/packages/graph-framework-utils/tsconfig.build.json index 50f248a2..e3c415a6 100644 --- a/packages/graph-framework-utils/tsconfig.build.json +++ b/packages/graph-framework-utils/tsconfig.build.json @@ -5,6 +5,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"] + } } diff --git a/packages/graph-framework-utils/tsconfig.test.json b/packages/graph-framework-utils/tsconfig.test.json new file mode 100644 index 00000000..24d66247 --- /dev/null +++ b/packages/graph-framework-utils/tsconfig.test.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [{ "path": "tsconfig.src.json" }], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/packages/graph-framework-utils/vitest.config.ts b/packages/graph-framework-utils/vitest.config.ts index 1be24e98..70dc0b6a 100644 --- a/packages/graph-framework-utils/vitest.config.ts +++ b/packages/graph-framework-utils/vitest.config.ts @@ -1,4 +1,5 @@ import { type UserConfigExport, mergeConfig } from 'vitest/config'; + import shared from '../../vitest.shared.js'; const config: UserConfigExport = {}; diff --git a/packages/graph-framework/LICENSE b/packages/graph-framework/LICENSE new file mode 100644 index 00000000..c75b86eb --- /dev/null +++ b/packages/graph-framework/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-present The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/graph-framework/README.md b/packages/graph-framework/README.md new file mode 100644 index 00000000..f7836b45 --- /dev/null +++ b/packages/graph-framework/README.md @@ -0,0 +1,5 @@ +# @graphprotocol/graph-framework + +SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs. + +TODO: add a lot of docs, api, examples, stuff here \ No newline at end of file diff --git a/packages/graph-framework/package.json b/packages/graph-framework/package.json index 1f7c09ff..d99ab213 100644 --- a/packages/graph-framework/package.json +++ b/packages/graph-framework/package.json @@ -1,11 +1,49 @@ { "name": "graph-framework", "version": "0.0.1", - "description": "", + "description": "SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs.", + "repository": { + "type": "git", + "url": "https://github.com/geobrowser/graph-framework.git", + "directory": "packages/graph-framework" + }, + "license": "MIT", "type": "module", + "exports": { + ".": { + "default": "./build/esm/index.js", + "types": "./build/dts/index.d.ts" + }, + "./utils": { + "default": "./build/esm/exports/utils.js", + "types": "./build/dts/exports/utils.d.ts" + }, + "./schema": { + "default": "./build/esm/exports/schema.js", + "types": "./build/dts/exports/schema.d.ts" + }, + "./identity": { + "default": "./build/esm/exports/identity.js", + "types": "./build/dts/exports/identity.d.ts" + }, + "./space-events": { + "default": "./build/esm/exports/space-events.js", + "types": "./build/dts/exports/space-events.d.ts" + }, + "./key": { + "default": "./build/esm/exports/key.js", + "types": "./build/dts/exports/key.d.ts" + }, + "./messages": { + "default": "./build/esm/exports/messages.js", + "types": "./build/dts/exports/messages.d.ts" + } + }, "scripts": { + "build": "pnpm build-esm && build-utils pack-v2", + "build-esm": "tsc -b tsconfig.build.json", "test": "vitest run --typecheck", - "ts:check": "tsc --noEmit", + "ts:check": "tsc -b tsconfig.json", "lint": "pnpm biome lint src/*", "lint:fix": "pnpm biome lint --write src/*", "format": "pnpm biome format src/*", @@ -13,11 +51,6 @@ "check": "pnpm biome check src/*", "check:fix": "pnpm biome check --write src/*" }, - "exports": { - ".": { - "default": "./dist/index.js" - } - }, "peerDependencies": { "@automerge/automerge": "^2", "@automerge/automerge-repo": "^1", diff --git a/packages/graph-framework/src/exports/identity.ts b/packages/graph-framework/src/exports/identity.ts new file mode 100644 index 00000000..6fe02302 --- /dev/null +++ b/packages/graph-framework/src/exports/identity.ts @@ -0,0 +1 @@ +export * from 'graph-framework-identity'; diff --git a/packages/graph-framework/src/exports/key.ts b/packages/graph-framework/src/exports/key.ts new file mode 100644 index 00000000..e6fca0aa --- /dev/null +++ b/packages/graph-framework/src/exports/key.ts @@ -0,0 +1 @@ +export * from 'graph-framework-key'; diff --git a/packages/graph-framework/src/exports/messages.ts b/packages/graph-framework/src/exports/messages.ts new file mode 100644 index 00000000..4498a4b2 --- /dev/null +++ b/packages/graph-framework/src/exports/messages.ts @@ -0,0 +1 @@ +export * from 'graph-framework-messages'; diff --git a/packages/graph-framework/src/exports/schema.tsx b/packages/graph-framework/src/exports/schema.tsx new file mode 100644 index 00000000..816f9f65 --- /dev/null +++ b/packages/graph-framework/src/exports/schema.tsx @@ -0,0 +1 @@ +export * from 'graph-framework-schema'; diff --git a/packages/graph-framework/src/exports/space-events.ts b/packages/graph-framework/src/exports/space-events.ts new file mode 100644 index 00000000..e3087c9c --- /dev/null +++ b/packages/graph-framework/src/exports/space-events.ts @@ -0,0 +1 @@ +export * from 'graph-framework-space-events'; diff --git a/packages/graph-framework/src/exports/utils.ts b/packages/graph-framework/src/exports/utils.ts new file mode 100644 index 00000000..e4a14e52 --- /dev/null +++ b/packages/graph-framework/src/exports/utils.ts @@ -0,0 +1 @@ +export * from 'graph-framework-utils'; diff --git a/packages/graph-framework/src/index.tsx b/packages/graph-framework/src/index.tsx index ece5b4f8..4c7acbfb 100644 --- a/packages/graph-framework/src/index.tsx +++ b/packages/graph-framework/src/index.tsx @@ -1,6 +1,6 @@ -export * from 'graph-framework-identity'; -export * from 'graph-framework-key'; -export * from 'graph-framework-messages'; -export * from 'graph-framework-schema'; -export * from 'graph-framework-space-events'; -export * from 'graph-framework-utils'; +export * from './exports/identity.js'; +export * from './exports/key.js'; +export * from './exports/messages.js'; +export * from './exports/schema.js'; +export * from './exports/space-events.js'; +export * from './exports/utils.js'; diff --git a/packages/graph-framework/src/index.test.tsx b/packages/graph-framework/test/index.test.tsx similarity index 100% rename from packages/graph-framework/src/index.test.tsx rename to packages/graph-framework/test/index.test.tsx diff --git a/packages/graph-framework/tsconfig.build.json b/packages/graph-framework/tsconfig.build.json index 3fd67dae..5dded4c4 100644 --- a/packages/graph-framework/tsconfig.build.json +++ b/packages/graph-framework/tsconfig.build.json @@ -13,6 +13,5 @@ "outDir": "build/esm", "declarationDir": "build/dts", "stripInternal": true - }, - "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.test.tsx", "src/**/*.spec.ts", "src/**/*.spec.tsx"] + } } diff --git a/packages/graph-framework/tsconfig.test.json b/packages/graph-framework/tsconfig.test.json new file mode 100644 index 00000000..9a4175ae --- /dev/null +++ b/packages/graph-framework/tsconfig.test.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.base.json", + "include": ["test"], + "references": [ + { "path": "tsconfig.src.json" }, + { "path": "../graph-framework-utils" }, + { "path": "../graph-framework-identity" }, + { "path": "../graph-framework-schema" }, + { "path": "../graph-framework-space-events" }, + { "path": "../graph-framework-messages" }, + { "path": "../graph-framework-key" } + ], + "compilerOptions": { + "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", + "rootDir": "test", + "noEmit": true + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 79cad9ac..23273ad0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,18 +11,21 @@ importers: '@biomejs/biome': specifier: 1.9.4 version: 1.9.4 + '@effect/build-utils': + specifier: ^0.7.8 + version: 0.7.8 escape-string-regexp: specifier: ^5.0.0 version: 5.0.0 + glob: + specifier: ^11.0.0 + version: 11.0.0 typescript: specifier: ^5.6.3 version: 5.6.3 vite: specifier: ^5.4.10 version: 5.4.10(@types/node@22.9.0) - vite-plugin-dts: - specifier: ^4.3.0 - version: 4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)) vitest: specifier: ^2.1.4 version: 2.1.4(@types/node@22.9.0)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -66,8 +69,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 ethers: specifier: ^6.13.3 version: 6.13.4(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -90,8 +93,8 @@ importers: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.14(ts-node@10.9.2(@swc/core@1.7.26(@swc/helpers@0.5.13))(@types/node@22.9.0)(typescript@5.6.3))) uuid: - specifier: ^11.0.2 - version: 11.0.2 + specifier: ^11.0.3 + version: 11.0.3 vite-plugin-node-polyfills: specifier: ^0.22.0 version: 0.22.0(rollup@4.21.3)(vite@5.4.10(@types/node@22.9.0)) @@ -151,8 +154,8 @@ importers: specifier: ^16.4.5 version: 16.4.5 effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 express: specifier: ^5.0.1 version: 5.0.1 @@ -252,12 +255,12 @@ importers: specifier: workspace:* version: link:../graph-framework-utils uuid: - specifier: ^11.0.2 - version: 11.0.2 + specifier: ^11.0.3 + version: 11.0.3 devDependencies: effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 packages/graph-framework-key: dependencies: @@ -271,12 +274,8 @@ importers: specifier: ^1.5.0 version: 1.5.0 effect: - specifier: ^3.10.12 - version: 3.10.12 - devDependencies: - vite-plugin-dts: - specifier: ^4.3.0 - version: 4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)) + specifier: ^3.10.19 + version: 3.10.19 packages/graph-framework-messages: dependencies: @@ -287,15 +286,11 @@ importers: specifier: ^1.6.0 version: 1.6.0 effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 graph-framework-space-events: specifier: workspace:* version: link:../graph-framework-space-events - devDependencies: - vite-plugin-dts: - specifier: ^4.3.0 - version: 4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)) packages/graph-framework-schema: dependencies: @@ -334,8 +329,8 @@ importers: specifier: ^4.3.2 version: 4.3.3(vite@5.4.10(@types/node@22.9.0)) effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 jsdom: specifier: ^25.0.1 version: 25.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -352,12 +347,12 @@ importers: specifier: workspace:* version: link:../graph-framework-utils uuid: - specifier: ^11.0.2 - version: 11.0.2 + specifier: ^11.0.3 + version: 11.0.3 devDependencies: effect: - specifier: ^3.10.12 - version: 3.10.12 + specifier: ^3.10.19 + version: 3.10.19 packages/graph-framework-utils: devDependencies: @@ -365,11 +360,8 @@ importers: specifier: ^10.0.0 version: 10.0.0 uuid: - specifier: ^11.0.2 - version: 11.0.2 - vite-plugin-dts: - specifier: ^4.3.0 - version: 4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)) + specifier: ^11.0.3 + version: 11.0.3 packages: @@ -683,6 +675,11 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} + '@effect/build-utils@0.7.8': + resolution: {integrity: sha512-ixcKsG6UnjIKqIbgCkTMJRcte+bW+p0ffHu/5QvDgVuzg3Nv0OUmgLOps49ExVE2VvoRddS4jVcjxlIzkPCKow==} + engines: {node: '>=16.17.1'} + hasBin: true + '@emotion/is-prop-valid@1.2.2': resolution: {integrity: sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==} @@ -1170,19 +1167,6 @@ packages: resolution: {integrity: sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==} engines: {node: '>=14.0.0'} - '@microsoft/api-extractor-model@7.29.8': - resolution: {integrity: sha512-t3Z/xcO6TRbMcnKGVMs4uMzv/gd5j0NhMiJIGjD4cJMeFJ1Hf8wnLSx37vxlRlL0GWlGJhnFgxvnaL6JlS+73g==} - - '@microsoft/api-extractor@7.47.11': - resolution: {integrity: sha512-lrudfbPub5wzBhymfFtgZKuBvXxoSIAdrvS2UbHjoMT2TjIEddq6Z13pcve7A03BAouw0x8sW8G4txdgfiSwpQ==} - hasBin: true - - '@microsoft/tsdoc-config@0.17.0': - resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} - - '@microsoft/tsdoc@0.15.0': - resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} - '@motionone/animation@10.18.0': resolution: {integrity: sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw==} @@ -1599,28 +1583,6 @@ packages: cpu: [x64] os: [win32] - '@rushstack/node-core-library@5.9.0': - resolution: {integrity: sha512-MMsshEWkTbXqxqFxD4gcIUWQOCeBChlGczdZbHfqmNZQFLHB3yWxDFSMHFUdu2/OB9NUk7Awn5qRL+rws4HQNg==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - - '@rushstack/rig-package@0.5.3': - resolution: {integrity: sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==} - - '@rushstack/terminal@0.14.2': - resolution: {integrity: sha512-2fC1wqu1VCExKC0/L+0noVcFQEXEnoBOtCIex1TOjBzEDWcw8KzJjjj7aTP6mLxepG0XIyn9OufeFb6SFsa+sg==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - - '@rushstack/ts-command-line@4.23.0': - resolution: {integrity: sha512-jYREBtsxduPV6ptNq8jOKp9+yx0ld1Tb/Tkdnlj8gTjazl1sF3DwX2VbluyYrNd0meWIL0bNeer7WDf5tKFjaQ==} - '@scure/base@1.1.9': resolution: {integrity: sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==} @@ -1915,9 +1877,6 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@types/argparse@1.0.38': - resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} - '@types/aria-query@5.0.4': resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} @@ -2055,35 +2014,6 @@ packages: '@vitest/utils@2.1.4': resolution: {integrity: sha512-MXDnZn0Awl2S86PSNIim5PWXgIAx8CIkzu35mBdSApUip6RFOGXBCf3YFyeEu8n1IHk4bWD46DeYFu9mQlFIRg==} - '@volar/language-core@2.4.9': - resolution: {integrity: sha512-t++GIrUeQnKCieZdY9e+Uar2VmTqOE4Z9KcEcdSHKmKZPuqpbbWow1YKe1i3HpU2s1JqLRVM8y/n87WKXyxJAg==} - - '@volar/source-map@2.4.9': - resolution: {integrity: sha512-UGE+WgJwk64OcfBwBOBKIzmF+uNx4dC5GzOvaVsHbTBp/IVqeTVsGiO5CwBAt6l3vVXYbMuddG2DU8FEnBRxTg==} - - '@volar/typescript@2.4.9': - resolution: {integrity: sha512-Zmh3Bq8CFD6OANKYsi4vs/l7togwfjFH0kgrT12uAsDff2AJQjbEUKTVUnxmHbnbH2B9ja7Lb6Mu/Wj9wBuJlg==} - - '@vue/compiler-core@3.5.12': - resolution: {integrity: sha512-ISyBTRMmMYagUxhcpyEH0hpXRd/KqDU4ymofPgl2XAkY9ZhQ+h0ovEZJIiPop13UmR/54oA2cgMDjgroRelaEw==} - - '@vue/compiler-dom@3.5.12': - resolution: {integrity: sha512-9G6PbJ03uwxLHKQ3P42cMTi85lDRvGLB2rSGOiQqtXELat6uI4n8cNz9yjfVHRPIu+MsK6TE418Giruvgptckg==} - - '@vue/compiler-vue2@2.7.16': - resolution: {integrity: sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==} - - '@vue/language-core@2.1.6': - resolution: {integrity: sha512-MW569cSky9R/ooKMh6xa2g1D0AtRKbL56k83dzus/bx//RDJk24RHWkMzbAlXjMdDNyxAaagKPRquBIxkxlCkg==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@vue/shared@3.5.12': - resolution: {integrity: sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg==} - '@wallet-standard/app@1.0.1': resolution: {integrity: sha512-LnLYq2Vy2guTZ8GQKKSXQK3+FRGPil75XEdkZqE6fiLixJhZJoJa5hT7lXxwe0ykVTt9LEThdTbOpT7KadS26Q==} engines: {node: '>=16'} @@ -2298,28 +2228,6 @@ packages: resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} engines: {node: '>= 8.0.0'} - ajv-draft-04@1.0.0: - resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} - peerDependencies: - ajv: ^8.5.0 - peerDependenciesMeta: - ajv: - optional: true - - ajv-formats@3.0.1: - resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - - ajv@8.12.0: - resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} - - ajv@8.13.0: - resolution: {integrity: sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==} - ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -2357,9 +2265,6 @@ packages: arg@5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - aria-query@5.3.0: resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} @@ -2636,12 +2541,6 @@ packages: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} - compare-versions@6.1.1: - resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} - - computeds@0.0.1: - resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==} - concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -2764,9 +2663,6 @@ packages: dateformat@4.6.3: resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} - de-indent@1.0.2: - resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} - debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} peerDependencies: @@ -2914,8 +2810,8 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - effect@3.10.12: - resolution: {integrity: sha512-+IqqTQS5+jM13qZHzfAX+RpCGOl0oBWIR7nec/zq76HyN/hdGQYnfr/LLLOVxUt8uIbckBea8rkwBKrQ0Hb/aA==} + effect@3.10.19: + resolution: {integrity: sha512-Bc+unZVpHQ/0QkydshNk97OjDXT17Y1M4rBjDZaEPjD6YmlcZxhadEo325OfdPQKWCKEHTdRGtX8/bfQ0RLTIw==} electron-to-chromium@1.5.24: resolution: {integrity: sha512-0x0wLCmpdKFCi9ulhvYZebgcPmHTkFVUfU2wzDykadkslKwT4oAmDTHEKLnlrDsMGZe4B+ksn8quZfZjYsBetA==} @@ -3171,10 +3067,6 @@ packages: resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} engines: {node: '>= 0.8'} - fs-extra@7.0.1: - resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} - engines: {node: '>=6 <7 || >=8'} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -3217,6 +3109,11 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} @@ -3233,9 +3130,6 @@ packages: gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - h3@1.12.0: resolution: {integrity: sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==} @@ -3277,10 +3171,6 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} - he@1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - help-me@5.0.0: resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} @@ -3340,10 +3230,6 @@ packages: ignore-by-default@1.0.1: resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} - import-lazy@4.0.0: - resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} - engines: {node: '>=8'} - indent-string@4.0.0: resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} engines: {node: '>=8'} @@ -3468,6 +3354,10 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + jayson@4.1.2: resolution: {integrity: sha512-5nzMWDHy6f+koZOuYsArh2AXs73NfWYVlFyJJuCedr93GpY+Ku8qq10ropSXVfHK+H0T6paA88ww+/dV+1fBNA==} engines: {node: '>=8'} @@ -3477,9 +3367,6 @@ packages: resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==} hasBin: true - jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - jose@4.15.9: resolution: {integrity: sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==} @@ -3516,9 +3403,6 @@ packages: engines: {node: '>=6'} hasBin: true - json-schema-traverse@1.0.0: - resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} - json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} @@ -3527,9 +3411,6 @@ packages: engines: {node: '>=6'} hasBin: true - jsonfile@4.0.0: - resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} engines: {'0': node >= 0.2.0} @@ -3541,9 +3422,6 @@ packages: keyvaluestorage-interface@1.0.0: resolution: {integrity: sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==} - kolorist@1.8.0: - resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} - libphonenumber-js@1.11.13: resolution: {integrity: sha512-LIJmXxgs7o1njVZPcX5fkbtcFgDnXXPvJQQBH5Ho/8+r6BFlJaEbJ+bAiaUGaChWUhFtvawwdmXIOz4wZBANCg==} @@ -3571,10 +3449,6 @@ packages: lit@2.8.0: resolution: {integrity: sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==} - local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} - engines: {node: '>=14'} - locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -3605,13 +3479,13 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lru-cache@11.0.2: + resolution: {integrity: sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==} + engines: {node: 20 || >=22} + lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lru-cache@6.0.0: - resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} - engines: {node: '>=10'} - lucide-react@0.441.0: resolution: {integrity: sha512-0vfExYtvSDhkC2lqg0zYVW1Uu9GsI4knuV9GP9by5z0Xhc4Zi5RejTxfz9LsjRmCyWVzHCJvxGKZWcRyvQCWVg==} peerDependencies: @@ -3702,8 +3576,9 @@ packages: minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} - minimatch@3.0.8: - resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -3746,9 +3621,6 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - muggle-string@0.4.1: - resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==} - multiformats@9.9.0: resolution: {integrity: sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==} @@ -3944,6 +3816,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@8.2.0: resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==} engines: {node: '>=16'} @@ -4255,10 +4131,6 @@ packages: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - require-from-string@2.0.2: - resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} - engines: {node: '>=0.10.0'} - require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} @@ -4330,11 +4202,6 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} - engines: {node: '>=10'} - hasBin: true - semver@7.6.3: resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} engines: {node: '>=10'} @@ -4404,10 +4271,6 @@ packages: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} - source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - split-on-first@1.1.0: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} engines: {node: '>=6'} @@ -4416,9 +4279,6 @@ packages: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -4442,10 +4302,6 @@ packages: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} - string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -4518,10 +4374,6 @@ packages: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} - supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -4690,11 +4542,6 @@ packages: typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - typescript@5.4.2: - resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} - engines: {node: '>=14.17'} - hasBin: true - typescript@5.6.3: resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} @@ -4726,10 +4573,6 @@ packages: unenv@1.10.0: resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} - universalify@0.1.2: - resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} - engines: {node: '>= 4.0.0'} - unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} @@ -4806,9 +4649,6 @@ packages: uqr@0.1.2: resolution: {integrity: sha512-MJu7ypHq6QasgF5YRTjqscSzQp/W11zoUk6kvmlH+fmWEs63Y0Eib13hYFwAzagRJcVY8WVnlV+eBDUGMJ5IbA==} - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - url@0.11.4: resolution: {integrity: sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==} engines: {node: '>= 0.4'} @@ -4844,8 +4684,8 @@ packages: resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==} hasBin: true - uuid@11.0.2: - resolution: {integrity: sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==} + uuid@11.0.3: + resolution: {integrity: sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==} hasBin: true uuid@8.3.2: @@ -4896,16 +4736,6 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite-plugin-dts@4.3.0: - resolution: {integrity: sha512-LkBJh9IbLwL6/rxh0C1/bOurDrIEmRE7joC+jFdOEEciAFPbpEKOLSAr5nNh5R7CJ45cMbksTrFfy52szzC5eA==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - typescript: '*' - vite: '*' - peerDependenciesMeta: - vite: - optional: true - vite-plugin-node-polyfills@0.22.0: resolution: {integrity: sha512-F+G3LjiGbG8QpbH9bZ//GSBr9i1InSTkaulfUHFa9jkLqVGORFBoqc2A/Yu5Mmh1kNAbiAeKeK+6aaQUf3x0JA==} peerDependencies: @@ -4980,9 +4810,6 @@ packages: vm-browserify@1.1.2: resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} - vscode-uri@3.0.8: - resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} - w3c-xmlserializer@5.0.0: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} @@ -5191,9 +5018,6 @@ packages: yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yallist@4.0.0: - resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - yaml@2.5.1: resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} engines: {node: '>= 14'} @@ -5593,6 +5417,8 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 + '@effect/build-utils@0.7.8': {} + '@emotion/is-prop-valid@1.2.2': dependencies: '@emotion/memoize': 0.8.1 @@ -6135,41 +5961,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@microsoft/api-extractor-model@7.29.8(@types/node@22.9.0)': - dependencies: - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.9.0(@types/node@22.9.0) - transitivePeerDependencies: - - '@types/node' - - '@microsoft/api-extractor@7.47.11(@types/node@22.9.0)': - dependencies: - '@microsoft/api-extractor-model': 7.29.8(@types/node@22.9.0) - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.9.0(@types/node@22.9.0) - '@rushstack/rig-package': 0.5.3 - '@rushstack/terminal': 0.14.2(@types/node@22.9.0) - '@rushstack/ts-command-line': 4.23.0(@types/node@22.9.0) - lodash: 4.17.21 - minimatch: 3.0.8 - resolve: 1.22.8 - semver: 7.5.4 - source-map: 0.6.1 - typescript: 5.4.2 - transitivePeerDependencies: - - '@types/node' - - '@microsoft/tsdoc-config@0.17.0': - dependencies: - '@microsoft/tsdoc': 0.15.0 - ajv: 8.12.0 - jju: 1.4.0 - resolve: 1.22.8 - - '@microsoft/tsdoc@0.15.0': {} - '@motionone/animation@10.18.0': dependencies: '@motionone/easing': 10.18.0 @@ -6601,40 +6392,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.21.3': optional: true - '@rushstack/node-core-library@5.9.0(@types/node@22.9.0)': - dependencies: - ajv: 8.13.0 - ajv-draft-04: 1.0.0(ajv@8.13.0) - ajv-formats: 3.0.1(ajv@8.13.0) - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.8 - semver: 7.5.4 - optionalDependencies: - '@types/node': 22.9.0 - - '@rushstack/rig-package@0.5.3': - dependencies: - resolve: 1.22.8 - strip-json-comments: 3.1.1 - - '@rushstack/terminal@0.14.2(@types/node@22.9.0)': - dependencies: - '@rushstack/node-core-library': 5.9.0(@types/node@22.9.0) - supports-color: 8.1.1 - optionalDependencies: - '@types/node': 22.9.0 - - '@rushstack/ts-command-line@4.23.0(@types/node@22.9.0)': - dependencies: - '@rushstack/terminal': 0.14.2(@types/node@22.9.0) - '@types/argparse': 1.0.38 - argparse: 1.0.10 - string-argv: 0.3.2 - transitivePeerDependencies: - - '@types/node' - '@scure/base@1.1.9': {} '@scure/bip32@1.3.2': @@ -6994,8 +6751,6 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@types/argparse@1.0.38': {} - '@types/aria-query@5.0.4': {} '@types/babel__core@7.20.5': @@ -7173,51 +6928,6 @@ snapshots: loupe: 3.1.2 tinyrainbow: 1.2.0 - '@volar/language-core@2.4.9': - dependencies: - '@volar/source-map': 2.4.9 - - '@volar/source-map@2.4.9': {} - - '@volar/typescript@2.4.9': - dependencies: - '@volar/language-core': 2.4.9 - path-browserify: 1.0.1 - vscode-uri: 3.0.8 - - '@vue/compiler-core@3.5.12': - dependencies: - '@babel/parser': 7.26.2 - '@vue/shared': 3.5.12 - entities: 4.5.0 - estree-walker: 2.0.2 - source-map-js: 1.2.1 - - '@vue/compiler-dom@3.5.12': - dependencies: - '@vue/compiler-core': 3.5.12 - '@vue/shared': 3.5.12 - - '@vue/compiler-vue2@2.7.16': - dependencies: - de-indent: 1.0.2 - he: 1.2.0 - - '@vue/language-core@2.1.6(typescript@5.6.3)': - dependencies: - '@volar/language-core': 2.4.9 - '@vue/compiler-dom': 3.5.12 - '@vue/compiler-vue2': 2.7.16 - '@vue/shared': 3.5.12 - computeds: 0.0.1 - minimatch: 9.0.5 - muggle-string: 0.4.1 - path-browserify: 1.0.1 - optionalDependencies: - typescript: 5.6.3 - - '@vue/shared@3.5.12': {} - '@wallet-standard/app@1.0.1': dependencies: '@wallet-standard/base': 1.0.1 @@ -7713,28 +7423,6 @@ snapshots: dependencies: humanize-ms: 1.2.1 - ajv-draft-04@1.0.0(ajv@8.13.0): - optionalDependencies: - ajv: 8.13.0 - - ajv-formats@3.0.1(ajv@8.13.0): - optionalDependencies: - ajv: 8.13.0 - - ajv@8.12.0: - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - - ajv@8.13.0: - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - ansi-regex@5.0.1: {} ansi-regex@6.1.0: {} @@ -7762,10 +7450,6 @@ snapshots: arg@5.0.2: {} - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - aria-query@5.3.0: dependencies: dequal: 2.0.3 @@ -8111,10 +7795,6 @@ snapshots: commander@4.1.1: {} - compare-versions@6.1.1: {} - - computeds@0.0.1: {} - concat-map@0.0.1: {} confbox@0.1.7: {} @@ -8240,8 +7920,6 @@ snapshots: dateformat@4.6.3: {} - de-indent@1.0.2: {} - debug@2.6.9: dependencies: ms: 2.0.0 @@ -8347,7 +8025,7 @@ snapshots: ee-first@1.1.1: {} - effect@3.10.12: + effect@3.10.19: dependencies: fast-check: 3.23.1 @@ -8743,12 +8421,6 @@ snapshots: fresh@2.0.0: {} - fs-extra@7.0.1: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - fsevents@2.3.3: optional: true @@ -8791,6 +8463,15 @@ snapshots: package-json-from-dist: 1.0.0 path-scurry: 1.11.1 + glob@11.0.0: + dependencies: + foreground-child: 3.3.0 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + globals@11.12.0: {} globals@15.12.0: {} @@ -8803,8 +8484,6 @@ snapshots: dependencies: get-intrinsic: 1.2.4 - graceful-fs@4.2.11: {} - h3@1.12.0: dependencies: cookie-es: 1.2.2 @@ -8856,8 +8535,6 @@ snapshots: dependencies: function-bind: 1.1.2 - he@1.2.0: {} - help-me@5.0.0: {} hey-listen@1.0.8: {} @@ -8920,8 +8597,6 @@ snapshots: ignore-by-default@1.0.1: {} - import-lazy@4.0.0: {} - indent-string@4.0.0: {} inherits@2.0.4: {} @@ -9018,6 +8693,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + jayson@4.1.2(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@types/connect': 3.4.38 @@ -9038,8 +8717,6 @@ snapshots: jiti@1.21.6: {} - jju@1.4.0: {} - jose@4.15.9: {} joycon@3.1.1: {} @@ -9082,16 +8759,10 @@ snapshots: jsesc@3.0.2: {} - json-schema-traverse@1.0.0: {} - json-stringify-safe@5.0.1: {} json5@2.2.3: {} - jsonfile@4.0.0: - optionalDependencies: - graceful-fs: 4.2.11 - jsonparse@1.3.1: {} keccak@3.0.4: @@ -9102,8 +8773,6 @@ snapshots: keyvaluestorage-interface@1.0.0: {} - kolorist@1.8.0: {} - libphonenumber-js@1.11.13: {} lilconfig@2.1.0: {} @@ -9151,11 +8820,6 @@ snapshots: lit-element: 3.3.3 lit-html: 2.8.0 - local-pkg@0.5.0: - dependencies: - mlly: 1.7.1 - pkg-types: 1.2.0 - locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -9180,14 +8844,12 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.0.2: {} + lru-cache@5.1.1: dependencies: yallist: 3.1.1 - lru-cache@6.0.0: - dependencies: - yallist: 4.0.0 - lucide-react@0.441.0(react@18.3.1): dependencies: react: 18.3.1 @@ -9258,9 +8920,9 @@ snapshots: minimalistic-crypto-utils@1.0.1: {} - minimatch@3.0.8: + minimatch@10.0.1: dependencies: - brace-expansion: 1.1.11 + brace-expansion: 2.0.1 minimatch@3.1.2: dependencies: @@ -9302,8 +8964,6 @@ snapshots: ms@2.1.3: {} - muggle-string@0.4.1: {} - multiformats@9.9.0: {} mz@2.7.0: @@ -9503,6 +9163,11 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.2 + minipass: 7.1.2 + path-to-regexp@8.2.0: {} pathe@1.1.2: {} @@ -9843,8 +9508,6 @@ snapshots: require-directory@2.1.1: {} - require-from-string@2.0.2: {} - require-main-filename@2.0.0: {} resolve-pkg-maps@1.0.0: {} @@ -9941,10 +9604,6 @@ snapshots: semver@6.3.1: {} - semver@7.5.4: - dependencies: - lru-cache: 6.0.0 - semver@7.6.3: {} send@1.1.0: @@ -10028,14 +9687,10 @@ snapshots: source-map-js@1.2.1: {} - source-map@0.6.1: {} - split-on-first@1.1.0: {} split2@4.2.0: {} - sprintf-js@1.0.3: {} - stackback@0.0.2: {} statuses@2.0.1: {} @@ -10058,8 +9713,6 @@ snapshots: strict-uri-encode@2.0.0: {} - string-argv@0.3.2: {} - string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -10140,10 +9793,6 @@ snapshots: dependencies: has-flag: 4.0.0 - supports-color@8.1.1: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} symbol-tree@3.2.4: {} @@ -10309,8 +9958,6 @@ snapshots: dependencies: is-typedarray: 1.0.0 - typescript@5.4.2: {} - typescript@5.6.3: {} ua-parser-js@1.0.39: {} @@ -10339,8 +9986,6 @@ snapshots: node-fetch-native: 1.6.4 pathe: 1.1.2 - universalify@0.1.2: {} - unpipe@1.0.0: {} unplugin@1.14.1: @@ -10385,10 +10030,6 @@ snapshots: uqr@0.1.2: {} - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - url@0.11.4: dependencies: punycode: 1.4.1 @@ -10422,7 +10063,7 @@ snapshots: uuid@10.0.0: {} - uuid@11.0.2: {} + uuid@11.0.3: {} uuid@8.3.2: {} @@ -10492,25 +10133,6 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)): - dependencies: - '@microsoft/api-extractor': 7.47.11(@types/node@22.9.0) - '@rollup/pluginutils': 5.1.2(rollup@4.21.3) - '@volar/typescript': 2.4.9 - '@vue/language-core': 2.1.6(typescript@5.6.3) - compare-versions: 6.1.1 - debug: 4.3.7(supports-color@5.5.0) - kolorist: 1.8.0 - local-pkg: 0.5.0 - magic-string: 0.30.12 - typescript: 5.6.3 - optionalDependencies: - vite: 5.4.10(@types/node@22.9.0) - transitivePeerDependencies: - - '@types/node' - - rollup - - supports-color - vite-plugin-node-polyfills@0.22.0(rollup@4.21.3)(vite@5.4.10(@types/node@22.9.0)): dependencies: '@rollup/plugin-inject': 5.0.5(rollup@4.21.3) @@ -10580,8 +10202,6 @@ snapshots: vm-browserify@1.1.2: {} - vscode-uri@3.0.8: {} - w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 @@ -10807,8 +10427,6 @@ snapshots: yallist@3.1.1: {} - yallist@4.0.0: {} - yaml@2.5.1: {} yargs-parser@18.1.3: diff --git a/scripts/clean.mjs b/scripts/clean.mjs new file mode 100644 index 00000000..c1d32460 --- /dev/null +++ b/scripts/clean.mjs @@ -0,0 +1,11 @@ +import * as Fs from 'node:fs'; +import * as Glob from 'glob'; + +const dirs = ['.', ...Glob.sync('packages/*/')]; +for (const pkg of dirs) { + const files = ['.tsbuildinfo', 'build', 'dist']; + + for (const file of files) { + Fs.rmSync(`${pkg}/${file}`, { recursive: true, force: true }, () => {}); + } +} diff --git a/shared/vitePluginExternalizeDependencies.ts b/shared/vitePluginExternalizeDependencies.ts deleted file mode 100644 index d6d05463..00000000 --- a/shared/vitePluginExternalizeDependencies.ts +++ /dev/null @@ -1,52 +0,0 @@ -import fs from 'node:fs/promises'; -import path from 'node:path'; -import escapeStringRegexp from 'escape-string-regexp'; -import type { Plugin } from 'vite'; - -/** - * Vite plugin to automatically externalize all `dependencies` and `peerDependencies` of the package. - * Note that `devDependencies` are not externalized, since they shouldn't even be present in a consumer's dependency tree. - * If any bit of a dev dependency makes it into the final bundle, it will be inlined (but it really shouldn't happen). - */ -export function vitePluginExternalizeDependencies(): Plugin { - return { - name: 'vite-plugin-externalize-dependencies', - async config(config, { command }) { - // Only run for the `build` command - if (command !== 'build') return; - - const packageJsonPath = path.join(config.root ?? process.cwd(), 'package.json'); - try { - await fs.access(packageJsonPath); - } catch { - console.error(`package.json not found at ${packageJsonPath}`); - return; - } - - let packageJson: { - dependencies?: Record; - peerDependencies?: Record; - } = {}; - try { - packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8')); - } catch (error) { - console.error(`Failed to read or parse package.json at ${packageJsonPath}`, error); - return; - } - - config.build = config.build ?? {}; - config.build.rollupOptions = { - ...config.build.rollupOptions, - external: [ - ...Object.keys(packageJson.dependencies ?? {}), - ...Object.keys(packageJson.peerDependencies ?? {}), - ].map( - // Match the exact dependency name and any path under it (except CSS files) - (dependency) => new RegExp(`^${escapeStringRegexp(dependency)}(/(?!.*\\.css$).*)?$`), - ), - }; - - return config; - }, - }; -} diff --git a/vitest.shared.ts b/vitest.shared.ts index 9b9190bb..65a7c178 100644 --- a/vitest.shared.ts +++ b/vitest.shared.ts @@ -1,5 +1,5 @@ import * as path from 'node:path'; -import type { UserConfig } from 'vitest/config'; +import type { ViteUserConfig } from 'vitest/config'; const alias = (pkg: string, dir = pkg) => { return { @@ -9,7 +9,7 @@ const alias = (pkg: string, dir = pkg) => { }; // This is a workaround, see https://github.com/vitest-dev/vitest/issues/4744 -const config: UserConfig = { +const config: ViteUserConfig = { test: { alias: { ...alias('graph-framework'),