Skip to content

feat(encode): Allow ignoring undefined plain object properties#155

Merged
rvagg merged 2 commits intorvagg:masterfrom
matthieusieben:msi/ignore-undefined-properties
Jan 19, 2026
Merged

feat(encode): Allow ignoring undefined plain object properties#155
rvagg merged 2 commits intorvagg:masterfrom
matthieusieben:msi/ignore-undefined-properties

Conversation

@matthieusieben
Copy link
Copy Markdown
Contributor

@matthieusieben matthieusieben commented Dec 15, 2025

Fix for #154

@matthieusieben matthieusieben force-pushed the msi/ignore-undefined-properties branch 14 times, most recently from 6c2efbc to 56fc9f4 Compare December 15, 2025 10:56
matthieusieben added a commit to matthieusieben/cborg that referenced this pull request Dec 15, 2025
@matthieusieben matthieusieben force-pushed the msi/ignore-undefined-properties branch from 56fc9f4 to 6b10774 Compare December 15, 2025 10:57
matthieusieben added a commit to matthieusieben/cborg that referenced this pull request Dec 15, 2025
@matthieusieben matthieusieben force-pushed the msi/ignore-undefined-properties branch from 6b10774 to 70e5e61 Compare December 15, 2025 10:58
@matthieusieben matthieusieben force-pushed the msi/ignore-undefined-properties branch from 70e5e61 to e03a909 Compare December 15, 2025 10:59
@matthieusieben
Copy link
Copy Markdown
Contributor Author

@rvagg would you mind giving this PR a review, or tell me when you'd be able to do so ?

Thank you very much & Happy new year 🥳

@rvagg
Copy link
Copy Markdown
Owner

rvagg commented Jan 6, 2026

yeah, sorry, on my list but I need to catch up after a break, sorry about the delay

Copy link
Copy Markdown
Owner

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some minor perf tweaks, expanded tests to cover some edges and inserted README note about this

sorry for the delay @matthieusieben and thanks for the contribution

@rvagg rvagg merged commit 55f653c into rvagg:master Jan 19, 2026
9 checks passed
rvagg pushed a commit that referenced this pull request Jan 19, 2026
github-actions Bot pushed a commit that referenced this pull request Jan 19, 2026
## [4.4.0](v4.3.2...v4.4.0) (2026-01-19)

### Features

* **encode:** Allow ignoring `undefined` plain object properties ([a0db184](a0db184)), closes [#155](#155)
* **token:** add Type.equals() for bundler-safe type comparison ([#159](#159)) ([b3e7cf4](b3e7cf4)), closes [#136](#136)

### Bug Fixes

* **encode:** replace unpaired surrogates with U+FFFD in utf8ToBytes ([#157](#157)) ([362856c](362856c))

### Trivial Changes

* **ci:** OIDC publishing ([743ecc3](743ecc3))
* **deps-dev:** bump @types/node from 24.10.3 to 25.0.0 ([#153](#153)) ([20f9e4f](20f9e4f))
* **deps:** bump actions/setup-node from 6.1.0 to 6.2.0 ([#158](#158)) ([feafeb2](feafeb2))
* minor optimisation & test additions for ignoreUndefinedProperties ([55f653c](55f653c))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants