Loading .github/workflows/build.yaml +24 −1 Original line number Diff line number Diff line Loading @@ -67,6 +67,29 @@ jobs: - run: deno task test:node working-directory: ${{ github.workspace }}/fedify/ test-bun: strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v2 with: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* - uses: oven-sh/setup-bun@v1 with: bun-version: latest - uses: pnpm/action-setup@v4 with: version: 10 - run: deno task test:bun working-directory: ${{ github.workspace }}/fedify/ lint: runs-on: ubuntu-latest steps: Loading Loading @@ -106,7 +129,7 @@ jobs: working-directory: ${{ github.workspace }}/cli/ publish: needs: [test, test-node, lint, release-test] needs: [test, test-node, test-bun, lint, release-test] runs-on: ubuntu-latest permissions: id-token: write Loading fedify/codegen/__snapshots__/class.test.ts.snap +0 −4 Original line number Diff line number Diff line Loading @@ -15638,7 +15638,6 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -15700,7 +15699,6 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -16429,7 +16427,6 @@ controller?: Application | Group | Organization | Person | Service | URL | null; if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -16491,7 +16488,6 @@ controller?: Application | Group | Organization | Person | Service | URL | null; if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. fedify/codegen/type.ts +0 −2 Original line number Diff line number Diff line Loading @@ -305,7 +305,6 @@ const scalarTypes: Record<string, ScalarType> = { typeGuard(v) { return ` // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore ${v} instanceof CryptoKey `; }, Loading @@ -328,7 +327,6 @@ const scalarTypes: Record<string, ScalarType> = { typeGuard(v) { return ` // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore ${v} instanceof CryptoKey `; }, Loading fedify/deno.json +28 −3 Original line number Diff line number Diff line Loading @@ -97,13 +97,38 @@ "codegen" ] }, "npm": "pnpm install && pnpm pack", "test:node": "pnpm install && pnpm test", "pnpm:install": "pnpm install", "pnpm:build": { "command": "pnpm exec tsdown", "dependencies": [ "codegen", "pnpm:install" ] }, "npm": { "command": "pnpm pack", "dependencies": [ "pnpm:install" ] }, "test:node": { "command": "cd dist/ && node --test", "dependencies": [ "pnpm:build" ] }, "test:bun": { "command": "cd dist/ && bun test", "dependencies": [ "pnpm:build" ] }, "test-all": { "dependencies": [ "check", "test", "test:node" "test:node", "test:bun" ] } } Loading fedify/federation/mq.test.ts +0 −3 Original line number Diff line number Diff line Loading @@ -99,17 +99,14 @@ const queues: Record<string, () => Promise<MessageQueue>> = { }; if ( // @ts-ignore: Works on Deno // dnt-shim-ignore "Deno" in globalThis && "openKv" in globalThis.Deno && // @ts-ignore: Works on Deno // dnt-shim-ignore typeof globalThis.Deno.openKv === "function" ) { const { DenoKvMessageQueue } = await import(".." + "/x/denokv.ts"); queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue( // @ts-ignore: Works on Deno // dnt-shim-ignore await globalThis.Deno.openKv(":memory:"), ); } Loading Loading
.github/workflows/build.yaml +24 −1 Original line number Diff line number Diff line Loading @@ -67,6 +67,29 @@ jobs: - run: deno task test:node working-directory: ${{ github.workspace }}/fedify/ test-bun: strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v2 with: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* - uses: oven-sh/setup-bun@v1 with: bun-version: latest - uses: pnpm/action-setup@v4 with: version: 10 - run: deno task test:bun working-directory: ${{ github.workspace }}/fedify/ lint: runs-on: ubuntu-latest steps: Loading Loading @@ -106,7 +129,7 @@ jobs: working-directory: ${{ github.workspace }}/cli/ publish: needs: [test, test-node, lint, release-test] needs: [test, test-node, test-bun, lint, release-test] runs-on: ubuntu-latest permissions: id-token: write Loading
fedify/codegen/__snapshots__/class.test.ts.snap +0 −4 Original line number Diff line number Diff line Loading @@ -15638,7 +15638,6 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -15700,7 +15699,6 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -16429,7 +16427,6 @@ controller?: Application | Group | Organization | Person | Service | URL | null; if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above. Loading Loading @@ -16491,7 +16488,6 @@ controller?: Application | Group | Organization | Person | Service | URL | null; if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore values.publicKey instanceof CryptoKey ) { // @ts-ignore: type is checked above.
fedify/codegen/type.ts +0 −2 Original line number Diff line number Diff line Loading @@ -305,7 +305,6 @@ const scalarTypes: Record<string, ScalarType> = { typeGuard(v) { return ` // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore ${v} instanceof CryptoKey `; }, Loading @@ -328,7 +327,6 @@ const scalarTypes: Record<string, ScalarType> = { typeGuard(v) { return ` // @ts-ignore: CryptoKey exists in the global scope. // dnt-shim-ignore ${v} instanceof CryptoKey `; }, Loading
fedify/deno.json +28 −3 Original line number Diff line number Diff line Loading @@ -97,13 +97,38 @@ "codegen" ] }, "npm": "pnpm install && pnpm pack", "test:node": "pnpm install && pnpm test", "pnpm:install": "pnpm install", "pnpm:build": { "command": "pnpm exec tsdown", "dependencies": [ "codegen", "pnpm:install" ] }, "npm": { "command": "pnpm pack", "dependencies": [ "pnpm:install" ] }, "test:node": { "command": "cd dist/ && node --test", "dependencies": [ "pnpm:build" ] }, "test:bun": { "command": "cd dist/ && bun test", "dependencies": [ "pnpm:build" ] }, "test-all": { "dependencies": [ "check", "test", "test:node" "test:node", "test:bun" ] } } Loading
fedify/federation/mq.test.ts +0 −3 Original line number Diff line number Diff line Loading @@ -99,17 +99,14 @@ const queues: Record<string, () => Promise<MessageQueue>> = { }; if ( // @ts-ignore: Works on Deno // dnt-shim-ignore "Deno" in globalThis && "openKv" in globalThis.Deno && // @ts-ignore: Works on Deno // dnt-shim-ignore typeof globalThis.Deno.openKv === "function" ) { const { DenoKvMessageQueue } = await import(".." + "/x/denokv.ts"); queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue( // @ts-ignore: Works on Deno // dnt-shim-ignore await globalThis.Deno.openKv(":memory:"), ); } Loading