更新日志
查看项目的发布说明和更新。
最后更新:2026/10/02 01:52:14
0.1.0
Bug Fixes
- publish:
exportspointed at a non-existentdist/index.js, sorequire()threwMODULE_NOT_FOUND;bin.jsusedrequire()inside a"type": "module"package, socbpandbatch-publishcrashed on every run. - utils-pkg:
exportswas inverted, mappingrequireto the ESM build andimportto the CJS build. - package:
readJsonFiledouble-encoded its input, sofindLernaConfigalways resolvedpackagestoundefined. - package: glob filtering matched against absolute paths, making the
./dirsyntax dead; it now matches workspace-relative paths. - classnames:
prefix()usedincludesinstead ofstartsWith, soprefix('p-')('px-2')dropped the prefix. - color-picker:
hexToHsbreturnedNaNfor unparseable input, renderinghsl(NaN, 100%, 50%). - babel-plugin-jsx-source-location:
filename.replace(cwd, '')was a substring operation that truncated any path containingcwdmid-string. - calendar: the Chinese month header rendered a full date instead of year + month.
- publish: the workflow ran on every push to
main, attempting a publish per commit. It is now gated on av*tag or a manual dispatch. - docs: GitHub Pages export set no
basePath, so every asset and route was written to the site root and 404'd. - docs:
installation.mdxreferenced undefinedFeatureCard/BodyTextcomponents and shippedpnpm add xxxplaceholders. - docs:
previewfrontmatter was commented out for two components, so their cards fell back to the site logo. - docs: the favicon, component screenshots and preview iframes were root-absolute paths, which
basePathdoes not rewrite — all 404'd on GitHub Pages. - docs:
--lines-pagereferencedlines-b.png/lines-w.png, which were never committed, so the landing hero had no background. - docs:
metadataBasewas hard-coded tolocalhost, so everyog:imageand share link pointed athttp://localhost:3460.
Features
- task: reimplemented as a documented fluent task runner; the previous source was a demo script referencing undefined identifiers.
- verify-peers: new check that fails on phantom dependencies and on React declared as a dependency instead of a peer.
- verify-publishable: new check for duplicate package names,
filesgaps and unversioned workspace dependencies. - publish-ci: publishes in topological order, verifies entry points exist and skips versions already on the registry.
- ci: added a workflow that runs on pull requests.
- docs: serves from the custom domain
hammer.chaosmic.cn, set throughSITE_URL. - Fixed three workflows whose
github.repository == '@chaos-design/hammer'guard could never match.
Performance
- Externalised
dependencies/peerDependenciesfrom the Vite library builds. Bundling React shipped a second copy to every consumer: calendar 383 KB → 120 KB, color-picker 209 KB → 25 KB, month-datepicker 118 KB → 8 KB.
Breaking Changes
- tsconfig: the base config no longer sets
noEmit,allowImportingTsExtensions,noUnusedLocalsornoUnusedParameters. A shared base must not forcenoEmiton consumers, and unused-code checks belong to the linter. - toolchain: pinned to
pnpm@10.28.1. pnpm 12 cannot be installed on Vercel — its engine self-install fails withthe installed pnpm wrapper is missing— and pnpm 12 renamedonlyBuiltDependenciestoallowBuilds, which pnpm 10 ignores. pnpm 10 matches thelockfileVersion: 9already in the repository. - calendar, color-picker, month-datepicker: dropped
node-linker=hoisted, which had been masking phantom dependencies. Aligned four copies oflucide-reactand two ofdate-fnsto one each.
0.0.22
Bug Fixes
- deploy docs build (cfd2a2a)
- deploy docs build (be6b6e2)
- deploy docs build (30477a2)
- deploy docs build (e83559a)
Features
- add app/docs; (b93c7d3)
- add shadcn-ui(calendar, month-detepicker, color-picker, kits); add app/docs; refactor build output; update actions config; build changelog (9b6a6bd)
- babel plugin, refactor (b3f4109)
- classnames (4ca5828)
- classnames (4ecdb7c)
- classnames (0f6ccbb)
- classnames readme (bb7ef3a)
- doc (ea7fb25)
- doc (2c6de4b)
- doc (9ec881d)
- lastModified (651fd67)
- lastModified utc-8 (2000ef8)
- publish: babel-plugin (fc7846d)
- publish: babel-plugin (093feed)
- publish: shadcn-ui (b9465af)
- publish: shadcn-ui (680a69a)
- publish: shadcn-ui (6119eed)
- publish: shadcn-ui; (7096b99)
0.0.19-beta.11
Features
- utils-pkg tsconfig error; (a0b67f3)
0.0.15
Bug Fixes
- prepublishOnly (2b1e1f2)
0.0.14
Bug Fixes
- lock error (a4c4ea6)
0.0.10
Features
- upgrade eslint-config (3187b84)
0.0.9
Features
- optimize tsconfig, eslint basic (13a9d3c)
0.0.8
Features
- eslint config version (2abe59b)
0.0.2
Features
- optimize the eslint config (62ace9c)