Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revision 0.32.27 #854

Merged
merged 2 commits into from Apr 28, 2024
Merged

Revision 0.32.27 #854

merged 2 commits into from Apr 28, 2024

Conversation

sinclairzx81
Copy link
Owner

This PR carries out general maintenance on TypeBox's build tooling as well as carries out a small refactor on the TypeBox redistributable package (renaming require and import sub directories to cjs and esm respectively). This to rename directories inline with community convention.

This PR also adds a https://esm.sh/ configuration to package.json to disable it's auto bundling strategy. It's noted that esm.sh will bundle each sub module entry point as a default, however this default behavior resulted in duplicates of TypeBox's FormatRegistry and TypeRegistry modules, meaning users registering types on the @sinclair/typebox registry would not be observed by the registry on @sinclair/typebox/value.

Additional information on this issue is documented at the following URLs

This configuration may be removed with the introduction on Type.Refine, with some consideration to providing users a side effect free alternative to type and format registration.

@sinclairzx81 sinclairzx81 merged commit 93a32b0 into master Apr 28, 2024
18 checks passed
@sinclairzx81 sinclairzx81 deleted the build branch April 28, 2024 10:59
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.

None yet

1 participant