Skip to content

breaking: make object definitions exact by default and add isObjectWith#442

Merged
gjbkz merged 2 commits into
mainfrom
435-exact-objects-is-object-with
Jul 20, 2026
Merged

breaking: make object definitions exact by default and add isObjectWith#442
gjbkz merged 2 commits into
mainfrom
435-exact-objects-is-object-with

Conversation

@gjbkz

@gjbkz gjbkz commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • make direct object definitions exact plain-object checks by default
  • add the public isObjectWith() combinator for legacy open-shape validation
  • document migration guidance and cover runtime, diagnostics, identity, and inference

Tests

  • npx biome format --write (modified source files)
  • npm run lint
  • npm run test:type
  • focused Node tests
  • npm run test:unit
  • npx c8 npm run test
  • npm run build
  • ESM and CommonJS package-entry smoke tests

Closes #435

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.63%. Comparing base (d4313bc) to head (aa07bda).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #442      +/-   ##
==========================================
+ Coverage   97.57%   97.63%   +0.06%     
==========================================
  Files          48       48              
  Lines        2472     2541      +69     
  Branches      248      260      +12     
==========================================
+ Hits         2412     2481      +69     
  Misses         60       60              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gjbkz
gjbkz merged commit 69b8662 into main Jul 20, 2026
8 checks passed
@gjbkz
gjbkz deleted the 435-exact-objects-is-object-with branch July 20, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

breaking: make object definitions exact by default and add isObjectWith

1 participant