Repository navigation
Releases
Releases · devcodex-labs/schema-dsl
schema-dsl v3.0.5
3.0.5 发布说明
发布日期:2026-10-22。目标版本:schema-dsl@3.0.5,标签:v3.0.5。
修复
- 验证快路径保留与
enum同时声明的type约束。 - 多个组合关键词同时出现时保守回退 AJV;内部 IR 明确标记不支持的合取。
- 正则匹配遵循 AJV 的 Unicode 语义,支持
unicodeRegExp: false,自定义code.regExp引擎交由 AJV。 - 更新受影响的运行与开发依赖;Vitest/coverage 同步至4.1.12,Vite7.3.7,移除跨主版本 YAML override。
- 网站 React Router / React Router DOM 从7.15.0更新至7.18.4,保持 Rspress 现有7.x兼容范围,不新增运行库依赖。
- 修复网站首页 hero 基础样式依赖,并保留桌面/移动端布局回归覆盖。
发布验证改进
- 根包与网站拥有独立 lockfile,分别执行 dependency audit。
- CI、Pages和npm发布在网站安装后执行网站 audit;发布工作流不再忽略根完整 audit 失败。
prepublishOnly复用test:all:with-audit,覆盖根运行/开发依赖及网站依赖;阈值为 moderate 或以上。- 新增隔离 npm-script 回归,检查网站 audit 正常通过,以及失败沿根转发、完整验证、预发布入口传播。
- 发布工作流在完整验证后生成一次 tarball,核对摘要后上传同一文件;发布成功记录独立回执,再核验 registry,避免验收重试造成重复发布。
兼容性
无公开 API 或 exports 变更。发布库运行基线保持 Node.js >=18.0.0;完整开发工具链使用 Node.js22.13.0、22.x和24.x,推荐24 LTS。网站工具链使用Node24;Router7.18.4要求Node>=20、React/ReactDOM>=18,与当前网站环境兼容。
CI使用同一构建tarball验证Node18.0.0、18、20、22.13.0、22和24的运行消费;Node24另检查Node18公开类型声明。旧Node运行兼容不等于其上游安全维护仍然有效。
网站为静态Pages;上游公告的SSR/RSC限定条件不能直接推断为本站可利用。依赖更新覆盖已公开修补范围,详见Router安全公告。
升级
无需运行时迁移。可通过 npm install schema-dsl@3.0.5 升级;完整验证、发布与来源证明由对应提交及 v3.0.5 的 GitHub Actions 记录提供。
发布验证
- npm:schema-dsl@3.0.5;Node18/24 registry全新安装、ESM/CJS、11个公开入口、AJV一致性与公开类型验收通过。
- registry摘要与GitHub Actions生成的精确tarball一致,来源证明绑定发布提交0c5d600。
- npm上传成功后registry延迟可见,原工作流后置等待超时;独立finalize与安装验收已完成,等待窗口修复见adf9f23。没有重复上传或移动版本标签。
schema-dsl v3.0.0
schema-dsl v3.0.0
Release date: 2026-07-15
Changed
- Made both root ESM and CommonJS imports side-effect-free: importing
schema-dslno longer installs, replaces, or removes properties onString.prototype. - Retained direct String-chain authoring only through explicit
schema-dsl/compat,schema-dsl/register-string, orinstallStringExtensions()opt-in paths. - Limited package
sideEffectsmetadata to the explicit compatibility installers so bundlers can treat the root and pure entries as side-effect-free. - Stopped transform integrations from warning about the now-safe root entry while preserving the legacy warning option and code as compatibility no-ops.
Public contract
- Object-level JSON Schema
required[]remains the public requiredness contract; v3 does not addisRequired()orisOptional()getters. schema-dsl/pureremains available as a stable side-effect-free subpath and exposes the same canonical core API as the root entry.schema-dsl/string-typesremains a type-only opt-in and does not install runtime prototype methods.
Migration
- Replace implicit direct String chains with builder calls, or explicitly import
schema-dsl/compat/schema-dsl/register-stringbefore using them. - TypeScript consumers retaining String chains must also opt into
schema-dsl/string-types. - See
docs/en/migration-v3.mdanddocs/zh/migration-v3.mdfor bilingual examples and compatibility guidance.
Validation
- Root and pure ESM/CJS descriptor probes verify that every pre-existing
String.prototypedescriptor remains unchanged. - Explicit compat/register probes verify that legacy methods are installed only after opt-in.
- Package tests cover exports, TypeScript opt-in boundaries, transform behavior, examples, interop, audit, website, performance regression, pack contents, and isolated packed consumers.