From 03d94e5cd5e9287c0288c994fbe764edeaec42a4 Mon Sep 17 00:00:00 2001 From: devmaxxx Date: Sat, 17 Oct 2026 00:29:47 +0200 Subject: [PATCH 1/4] docs: add a changelog, an upgrade guide and package metadata Lists the 1.0.0 breaking changes and adds an Upgrading from 0.x section to the README. Names the type file for every export condition, ships CHANGELOG.md, and updates the author and copyright years. --- CHANGELOG.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ LICENSE.md | 2 +- README.md | 28 ++++++++++++++++++++++++++++ package.json | 36 +++++++++++++++++++++++++++++------- 4 files changed, 103 insertions(+), 8 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8b3f525 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,45 @@ +# Changelog + +## Unreleased + +- `exports` names the type file for each entry and module format, so TypeScript picks `.d.ts` for `import` and `.d.cts` for `require` without guessing. +- The package ships `CHANGELOG.md`, and `author` names the maintainer. + +## 1.0.0 + +The default entry now sanitizes, and React Native gets its own entry. + +### Breaking changes + +- **React 18 or newer.** The `react` peer range moves from `>=16.8.0` to `>=18.0.0`. The native entry also needs `react-native >=0.71`. +- **`parse` sanitizes by default.** `parse` from `react-html5-parser` runs DOMPurify over the parsed tree. Output that used to render can now be stripped: + - `