Add Bun/Deno adapters, integration tests, AI docs, and CI - #11
Merged
Conversation
- Add Bun adapter (packages/bun) importing hooks from bun:test - Add Deno adapter (packages/deno) using @std/testing/bdd via JSR - Add comprehensive integration tests for all 6 adapters covering lazy values, caching, dependency tracking, refinement, and cleanup - Add AI-ready documentation: llms.txt, llms-full.txt, agents.md - Update GitHub Actions: add typecheck/lint/test to PR workflow, configure deploy workflow for npm + JSR publishing - Add publish scripts to all npm packages - Update README with Bun and Deno installation instructions - Fix Jest ESM config and .nvmrc trailing whitespace Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests using .mts imports require --experimental-transform-types at runtime but tsc rejects them without allowImportingTsExtensions. Exclude test directories from typecheck since tests are validated by their native runners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests use .mts imports for --experimental-transform-types runtime compatibility. Enable allowImportingTsExtensions so tsc and eslint accept these imports (noEmit is already set via root tsconfig). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add build.ts that copies core source files into _core/, renaming .mts to .ts and rewriting internal imports for Deno compatibility. This eliminates the npm:@given3/core dependency so the Deno adapter is self-contained for both local development and JSR publishing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/bun) — imports hooks frombun:test, builds with--external bun:testfor tsup/esbuild compatibilitypackages/deno) — uses@std/testing/bddvia JSR,npm:@given3/corefor core dependency, published viadeno publishllms.txt(concise overview),llms-full.txt(comprehensive reference),agents.md(contributor guide for AI agents)Test plan
pnpm buildsucceeds for all packages (including Bun with externalizedbun:test)pnpm turbo testpasses all 9 test tasks (core: 26 tests, 5 adapters: 10 each, examples: 8)--experimental-vm-modulesfor ESM support--node-option experimental-transform-types--experimental-transform-typesand.mtsimportsbun testdeno task test(requires Deno runtime)🤖 Generated with Claude Code