HammerHammer

更新日志

查看项目的发布说明和更新。

最后更新:2026/10/02 01:52:14

0.1.0

Bug Fixes

  • publish: exports pointed at a non-existent dist/index.js, so require() threw MODULE_NOT_FOUND; bin.js used require() inside a "type": "module" package, so cbp and batch-publish crashed on every run.
  • utils-pkg: exports was inverted, mapping require to the ESM build and import to the CJS build.
  • package: readJsonFile double-encoded its input, so findLernaConfig always resolved packages to undefined.
  • package: glob filtering matched against absolute paths, making the ./dir syntax dead; it now matches workspace-relative paths.
  • classnames: prefix() used includes instead of startsWith, so prefix('p-')('px-2') dropped the prefix.
  • color-picker: hexToHsb returned NaN for unparseable input, rendering hsl(NaN, 100%, 50%).
  • babel-plugin-jsx-source-location: filename.replace(cwd, '') was a substring operation that truncated any path containing cwd mid-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 a v* 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.mdx referenced undefined FeatureCard / BodyText components and shipped pnpm add xxx placeholders.
  • docs: preview frontmatter 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 basePath does not rewrite — all 404'd on GitHub Pages.
  • docs: --lines-page referenced lines-b.png / lines-w.png, which were never committed, so the landing hero had no background.
  • docs: metadataBase was hard-coded to localhost, so every og:image and share link pointed at http://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, files gaps 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 through SITE_URL.
  • Fixed three workflows whose github.repository == '@chaos-design/hammer' guard could never match.

Performance

  • Externalised dependencies / peerDependencies from 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, noUnusedLocals or noUnusedParameters. A shared base must not force noEmit on 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 with the installed pnpm wrapper is missing — and pnpm 12 renamed onlyBuiltDependencies to allowBuilds, which pnpm 10 ignores. pnpm 10 matches the lockfileVersion: 9 already in the repository.
  • calendar, color-picker, month-datepicker: dropped node-linker=hoisted, which had been masking phantom dependencies. Aligned four copies of lucide-react and two of date-fns to one each.
0.0.22

Bug Fixes

Features

0.0.24

Features

0.0.23

Bug Fixes

Features

0.0.22

Features

  • 修复发包问题 (7875a15)
  • 修复发包问题 (ef7a3fe)
  • 修复发包问题 (3fa7bb1)
  • 修复发包问题 (5cd2c36)
  • 修复发包问题 config (a0be5a7)
  • 增加发布包能力; eslint, tsconfig配置优化; 删除changelog; 增加生成包列表的能力; 文档更新; (70efb52)
  • 更新tsconfig配置 (3280b85)
  • 更新包的内容 (fcef143)
  • 更新包的内容 (2ebbac2)
0.0.19-beta.11

Features

  • utils-pkg tsconfig error; (a0b67f3)
0.0.16

Features

0.0.15

Bug Fixes

0.0.14

Bug Fixes

0.0.13

Features

  • eslint config; eslint plugin (8eff847)
  • update bumpp changed tag name (c1c5418)
  • upgrade basic eslint config (2504a43)
0.0.10

Features

0.0.9

Features

  • optimize tsconfig, eslint basic (13a9d3c)
0.0.8

Features

0.0.2

Features

  • optimize the eslint config (62ace9c)
0.0.4

Features

  • extends eslint config with custom (7df35bb)
  • github workflows (7f15dc0)
0.0.3

Features

On this page