Updating to v2
Most users can upgrade to v2 without making any changes.
- The Jira ticket component has been removed.
- The UMD bundle is no longer provided — only ESM and CJS builds are available.
- The legacy bundle has been dropped.
🚀 Features
- Added Hashtag and Mention components.
- Improved Unicode support in regex matches.
- Introduced a new, smaller URL matching regex for URLs.
- Removed Jira ticket support.
🐛 Fixes
- Fixed URL matching when params are provided directly to the domain (fixes #53).
- Updated Twitter component to use x.com instead of twitter.com.
- Fixed
urlRegexby removing an unnecessary escape character.
🛠️ Refactoring
- Split code into separate files for better maintainability.
📚 Documentation
- Improved examples and updated README.
- Added comprehensive JSDocs for all exports.
- Removed outdated or unnecessary documentation.
- Fixed funding links in README.
🧪 Tests
- Added more tests and split existing ones.
- Migrated test runner from Jest to Vitest.
🏗️ Build & CI
- Migrated build system from Rollup to tsdown.
- Cleaned up configs, removed old/unused settings.
- Updated CI workflows: provenance in npm publish, coverage reports, and latest GitHub Actions.
🎨 Style & Chores
- Updated dependencies and CI configs.
- General repo housekeeping (funding, configs, GitHub workflows).
All commits:
- build: add --no-publish to release script 3b57f12
- Merge pull request #55 from anantoghosh/v2 623c322
- ci: fix npm publish permission c60752e
- build: change publish content dir e12c972
- ci: use provenance in npm publish 262dff3
- docs: remove unneeded doc e6a5a50
- docs: minor description fix ea722d4
- feat: remove jira ticket support 8d22af2
- feat: improve unicode support in regex matches 449f0f8
- tests: split tests, add more tests f3edd04
- docs: update some examples a3c2267
- feat: add Hashtag and Mention Components 4d33504
- build: move build script to tsdown 5c70d7e
- style: run prettier 8ebe322
- docs: minor package description change 9b560ad
- build: migrate to tsdown, remove rollup df71557
- docs: update package description 0d7683b
- docs: remove unnecessary text 0c23f60
- docs: update readme f8194f9
- fix: update twitter component to use x.com b112f3a
- refactor: split everything to separate files 9c27ae4
- build: use pnpm in scripts 05509fb
- docs: add better/missing jsdocs for all exports 5c411a9
- ci: fix codecov env not accessible ee92c48
- build(ci): add bundle size analysis with codecov 6865259
- ci: add npm provenance attestation 4a302e6
- ci: update actions, upload to codecov for coverage report 5fb6b6c
- tests: add empty test e622eb1
- fix(urlRegex): remove unnecessary escape character 504d3c9
- build(np): remove old config key ca564df
- feat: new smaller url matching regex, fixes: #53 feb87e1
- build: add eslint script, remove configImportAttributesKey f18b3fa
- chore: format files fbea4a9
- build: ignore unnecessary files for coverage report 84935e5
- build: get eslint running again 8b59b57
- build: update to latest everything, migrate from jest to vitest 227df16
- Update readme.md ffe5baf
- docs(readme.md): fix funding links fc6318a
- Update FUNDING.yml 9c51f89
- Update node.js.yml install latest corepack 535a9dc
- Merge pull request #42 from anantoghosh/renovate/actions-checkout-4.x c034e3b
- chore(deps): update actions/checkout action to v4 ca30fca
- Merge pull request #43 from anantoghosh/renovate/actions-setup-node-4.x f4d91d2
- Merge pull request #46 from anantoghosh/renovate/actions-cache-4.x 4de0999
Full Changelog: v1.0.8...v2.0.0