🔖 chore: number the legacy-decorator line 0.1.x, not 1.x
Nothing has been published, so a 1.0.0/2.0.0 split claimed a stability and a history that do not exist. Staying on 0.x says what is true: the API may still move. Under semver a breaking change is then a minor bump, which is exactly the relationship between the two lines — 0.1.x keeps legacy experimentalDecorators, 0.2.x moves to TC39 standard decorators. Branch renamed 1.x -> 0.1.x to match, along with its CI trigger and the maintenance-line notice in the README. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAcqrz3FcadkYr3xG32CjK
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Cereale
|
||||
|
||||
> **This is the 1.x maintenance line**, which uses TypeScript's legacy
|
||||
> **This is the 0.1.x maintenance line**, which uses TypeScript's legacy
|
||||
> `experimentalDecorators`. It is feature-complete and supported for bug fixes.
|
||||
>
|
||||
> **New projects should use 2.x**, which moves to TC39 standard decorators and gains
|
||||
> **New projects should use 0.2.x**, which moves to TC39 standard decorators and gains
|
||||
> compile-time checking of validation rules against field types — `@IsString() age: number`
|
||||
> becomes a compile error rather than a runtime surprise.
|
||||
>
|
||||
> Stay on 1.x if your toolchain transpiles with **oxc**, which does not yet implement the
|
||||
> Stay on 0.1.x if your toolchain transpiles with **oxc**, which does not yet implement the
|
||||
> standard decorator transform. `tsc` and esbuild both do, so most projects can move.
|
||||
|
||||
Cereale is a lightweight TypeScript library that provides Spring-like decorators for JSON mapping and validation. Built with ZERO external dependencies, it simplifies the process of converting between plain JSON and class instances with full validation support.
|
||||
|
||||
Reference in New Issue
Block a user