Skip to content

2.0#11

Draft
butthx wants to merge 14 commits into
masterfrom
switch-skema
Draft

2.0#11
butthx wants to merge 14 commits into
masterfrom
switch-skema

Conversation

@butthx

@butthx butthx commented May 28, 2026

Copy link
Copy Markdown
Contributor

The update version will be bringing some breaking changes.

  • Using the @tgsnake/skema and @tgsnake/bytesio for dealing with raw, error, and bytes api.
  • Since Node 20+ support require(ESM), now this 2.0 version fully distribute as ESM module.
  • Since /x is deprecated, the Deno version previously distributed via /x now will no longer updated. I'll planning to use JSR.
  • Previously the codebase written with Deno and using deno2node for compile, now is no longer written in Deno codebase, i write to node codebase since we will be using JSR to distribute for Deno version. The deno2node is using for building the browser version.
  • Previously using platform.node and platform.deno for centralized the dependencies import, now it will be deps and deps.browser.
  • The typescript target module is now es2024.
  • The logging format now changing. Previously written as [index] message which is index is global counting, now it will be [index.folder.file] message which is the index is not global counting, it will count start from 1 for every file for better debugging.

@butthx butthx marked this pull request as draft May 28, 2026 16:00
@butthx butthx self-assigned this May 28, 2026
@butthx butthx added enhancement New feature or request all platform affected This issue is affected to all platform labels May 28, 2026
@butthx butthx requested a review from Copilot May 28, 2026 16:02
@butthx butthx requested review from Copilot and removed request for Copilot May 28, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@butthx

butthx commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

Another dropped updates for 2.0 version:

  • Since we have switching to @tgsnake/skema, now this package needs to be installed as peer dependencies. And we have re-exported the Raw, Raws, Errors for backward compatibility.
  • Now the readme human readable with breaking change notices.
  • The JSDoc also improved for well documented.

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

Labels

all platform affected This issue is affected to all platform enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants