From 20c3fd45b1c0cb2f596fe700da3f64721461c335 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 08:03:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20chore:=20number=20the=20legacy-d?= =?UTF-8?q?ecorator=20line=200.1.x,=20not=201.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01SAcqrz3FcadkYr3xG32CjK --- .github/workflows/ci.yml | 4 ++-- CHANGELOG.md | 13 ++++++++----- README.md | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b7bd93..4c00b05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main, develop, 1.x ] + branches: [ main, develop, 0.1.x ] pull_request: - branches: [ main, develop, 1.x ] + branches: [ main, develop, 0.1.x ] jobs: verify: diff --git a/CHANGELOG.md b/CHANGELOG.md index 767da17..b5b20f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,15 @@ All notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.0] - 2026-08-05 +## [0.1.0] - 2026-08-05 -The legacy-decorator line, promoted from 0.1.0 and now maintained in parallel with 2.x. -Functionally identical to the previous unreleased state; only the version and the -maintenance-line notice changed. See the 2.x branch for standard decorators and -compile-time rule checking. +The legacy-decorator line, now maintained in parallel with 0.2.x. Functionally identical +to the previous state; only the maintenance-line notice was added. See the 0.2.x branch +for standard decorators and compile-time rule checking. + +The project stays on 0.x while nothing has been published: under semver that signals the +API may still move, which is honest for software with no real-world users yet. A breaking +change is therefore a minor bump — 0.1.x to 0.2.x. ### Added diff --git a/README.md b/README.md index e1fd91e..3eb5611 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package-lock.json b/package-lock.json index e5f3393..518e587 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cereale", - "version": "1.0.0", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cereale", - "version": "1.0.0", + "version": "0.1.0", "license": "MIT", "devDependencies": { "@eslint/js": "^10.0.1", diff --git a/package.json b/package.json index 05eeb9c..59010f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cereale", - "version": "1.0.0", + "version": "0.1.0", "description": "Spring-like decorators for JSON mapping and validation in TypeScript", "type": "module", "main": "./dist/cjs/index.js",