Skip to content

Conversation

@hyperpolymath
Copy link
Owner

No description provided.

claude and others added 3 commits December 27, 2025 14:10
- Add Bridge.res: ReScript module with transform, compose, prefix/suffix utilities
- Add rescript.json: compiler configuration for ESM output
- Add deno.json: task runner configuration for Deno environments
- Add package.json: npm scripts for Node.js fallback
- Add tests/bridge_test.mjs: 12 passing tests using Node.js test runner
- Update .gitignore: ignore compiled output and package-lock.json

The bridge demonstrates the core pattern:
  Input:  src/Bridge.res (ReScript)
  Output: lib/es6/src/Bridge.mjs (JavaScript ESM)
  Test:   node --test tests/bridge_test.mjs (12 tests pass)
- Add 25 contract tests verifying behavioral invariants:
  - Identity laws (unchanged input, idempotence)
  - Composition laws (left/right identity, associativity)
  - Transform contracts (prefix, length preservation)
  - transformSafe contracts (Ok/Error exhaustiveness)
  - Factory contracts (prefix/suffix return functions)
  - Uppercase contracts (idempotence, length preservation)
  - Info contracts (format verification)
  - Type preservation (all functions return strings)

- Update package.json test script to run all test files

Total: 37 tests (12 unit + 25 contract), all passing
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@hyperpolymath hyperpolymath merged commit f920fcb into main Dec 27, 2025
3 of 5 checks passed
@hyperpolymath hyperpolymath deleted the claude/ship-known-good-bridge-ZWkxj branch December 27, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants