* feat(typescript-client): add Deno compatibility
- Switch build from tsc to tsup for dual CJS + ESM output with proper exports field
- Add deno_setup.ts preload that injects Jest-compatible globals (describe/test/expect) via @std/testing/bdd and @std/expect
- Fix generated client.gen.ts: exclude hey-api internal `client` field from RequestInit spread to avoid conflict with Deno.HttpClient
- Add test:deno npm script using --unstable-sloppy-imports and --preload
- Add test-typescript-client-deno CI job using denoland/setup-deno@v2 (v2.x)
- Update docs: rename page to TypeScript / JavaScript Client, add Deno installation section
* feat: add Deno compatibility to ai-sdk and chat integrations
- Switch ai-sdk and chat builds from tsc to tsup (ESM bundle, eliminates
extension-less import issues in Deno)
- Add deno.json import map to ai-sdk redirecting 'vitest' to a custom
vitest-compat.ts shim and bare npm specifiers to npm: URLs
- Add vitest-compat.ts shim implementing vi.fn()/vi.spyOn()/vi.mocked()
using @std/expect's Symbol.for("@MOCK") interface so toHaveBeenCalledWith
and other mock matchers work under Deno
- Add test:deno script to ai-sdk (all 30 tests pass under Deno)
* ci: add Deno test job for ai-sdk integration
Adds a new test-ai-sdk-integration-deno CI job that runs the ai-sdk
unit tests under Deno LTS, verifying Deno compatibility of the package.
* fix: remove broken link to non-existent n8n blog post in streamlit post
* fix: patch client.gen.ts for Deno compatibility during generation
Add a post-generation patch step to generate-clients.sh that removes
the hey-api internal 'client' field from the RequestInit spread in
client.gen.ts. Deno's Request constructor rejects 'client' because it
conflicts with the Deno.HttpClient option name.
60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"version": "5",
|
|
"specifiers": {
|
|
"jsr:@std/assert@^1.0.17": "1.0.19",
|
|
"jsr:@std/assert@^1.0.19": "1.0.19",
|
|
"jsr:@std/expect@*": "1.0.18",
|
|
"jsr:@std/internal@^1.0.12": "1.0.12",
|
|
"jsr:@std/path@^1.1.4": "1.1.4",
|
|
"jsr:@std/testing@*": "1.0.17"
|
|
},
|
|
"jsr": {
|
|
"@std/assert@1.0.19": {
|
|
"integrity": "eaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991e",
|
|
"dependencies": [
|
|
"jsr:@std/internal"
|
|
]
|
|
},
|
|
"@std/expect@1.0.18": {
|
|
"integrity": "8566eab35200466f8609eb7e7aed062ed0db314e9a258d5d201b1b8997ce801a",
|
|
"dependencies": [
|
|
"jsr:@std/assert@^1.0.19",
|
|
"jsr:@std/internal",
|
|
"jsr:@std/path"
|
|
]
|
|
},
|
|
"@std/internal@1.0.12": {
|
|
"integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027"
|
|
},
|
|
"@std/path@1.1.4": {
|
|
"integrity": "1d2d43f39efb1b42f0b1882a25486647cb851481862dc7313390b2bb044314b5",
|
|
"dependencies": [
|
|
"jsr:@std/internal"
|
|
]
|
|
},
|
|
"@std/testing@1.0.17": {
|
|
"integrity": "87bdc2700fa98249d48a17cd72413352d3d3680dcfbdb64947fd0982d6bbf681",
|
|
"dependencies": [
|
|
"jsr:@std/assert@^1.0.17",
|
|
"jsr:@std/internal"
|
|
]
|
|
}
|
|
},
|
|
"workspace": {
|
|
"dependencies": [
|
|
"npm:ai@6",
|
|
"npm:zod@4"
|
|
],
|
|
"packageJson": {
|
|
"dependencies": [
|
|
"npm:@types/node@22",
|
|
"npm:@vitest/ui@^4.0.18",
|
|
"npm:ai@^6.0.2",
|
|
"npm:tsup@^8.5.1",
|
|
"npm:typescript@^5.7.0",
|
|
"npm:vitest@^4.0.18",
|
|
"npm:zod@^4.2.0"
|
|
]
|
|
}
|
|
}
|
|
}
|