|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## 🚀 Release `@addon-core/inject-script` v0.3.0 (2025-10-08) |
| 4 | + |
| 5 | + |
| 6 | +### ✨ Features |
| 7 | + |
| 8 | +* update dependencies and package metadata ([413b15e](https://github.com/addon-stack/inject-script/commit/413b15eec9fb2e72f4d226ecd39388d488806c97)) |
| 9 | + |
| 10 | + - Rename `@adnbn` scope to `@addon-core` |
| 11 | + - Add new dev dependencies including Jest, CommitLint, ReleaseIt, and others |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +### 📝 Documentation |
| 16 | + |
| 17 | +* update README and documentation files for rebranding and improved clarity ([481e1a1](https://github.com/addon-stack/inject-script/commit/481e1a1c286da14ae480e9408f4e9cd0a82fa877)) |
| 18 | + |
| 19 | + - Update scope from `@adnbn` to `@addon-core` across entire README and docs. |
| 20 | + - Add badges for license, CI/CD status, and npm stats to README. |
| 21 | + - Expand usage examples with clear MV2/MV3 distinctions and advanced scenarios. |
| 22 | + - Introduce sections for features, compatibility, and troubleshooting. |
| 23 | + - Revise CONTRIBUTING.md with a detailed branching model, workflow, and quality gates. |
| 24 | + - Add SECURITY.md with vulnerability reporting guidelines and support policy. |
| 25 | + - Include MIT License file with detailed permissions and conditions. |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +### 🤖 CI |
| 30 | + |
| 31 | +* set up robust CI/CD pipelines and automated releases ([756401e](https://github.com/addon-stack/inject-script/commit/756401e0faf950ab6e0c3bdb214399efd15c2583)) |
| 32 | + |
| 33 | + - Add CI workflow for linting, testing, and coverage reporting using GitHub Actions. |
| 34 | + - Introduce matrix builds for OS (Ubuntu, Windows) and Node.js versions (18, 20, 22). |
| 35 | + - Create a release workflow for version bumping, publishing, and main-to-develop sync. |
| 36 | + - Configure release-it for automated changelog generation and semantic releases. |
| 37 | + - Improve contributor tracking with custom `.mailmap` and release-it configuration. |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +### 🧹 Chores |
| 42 | + |
| 43 | +* configure project with Husky, CommitLint, and Biome ([b4234ba](https://github.com/addon-stack/inject-script/commit/b4234ba9c5d294d022307f3e178309f44c0947a4)) |
| 44 | + |
| 45 | + - Add Husky hooks for pre-commit, commit-msg, and pre-push validations. |
| 46 | + - Introduce CommitLint with conventional commit style configuration. |
| 47 | + - Replace Prettier with Biome for formatting and linting, with detailed configuration. |
| 48 | + - Enforce consistent line endings using `.gitattributes`. |
| 49 | + |
| 50 | +* update dependencies and adjust configurations ([7251e7e](https://github.com/addon-stack/inject-script/commit/7251e7ec795dfcf0f60d8f889eecb61ce03192ba)) |
| 51 | + |
| 52 | + - Expand `ExecutionWorld` type to accept string literals for flexibility. |
| 53 | + - Simplify `release` script by removing unused `release:preview` from `package.json`. |
| 54 | + - Add overrides for `glob` and `source-map` packages, ensuring compatibility. |
| 55 | + - Bump esbuild-related dependencies to version 0.25.10 for enhanced features and fixes. |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +### 🛠️ Refactoring |
| 60 | + |
| 61 | +* add robust message handling for `InjectScriptV2` ([246fdeb](https://github.com/addon-stack/inject-script/commit/246fdebec98854f8deac43702815237c4f34674f)) |
| 62 | + |
| 63 | + - Introduce `getBrowser` utility to determine runtime environment (Chrome/Firefox API). |
| 64 | + - Add `sendMessage` helper function for safe and consistent message dispatching. |
| 65 | + - Replace direct `chrome.runtime.sendMessage` calls with `sendMessage` for error resilience. |
| 66 | + - Improve error handling with detailed console logs for runtime and unexpected exceptions. |
| 67 | + |
| 68 | +* improve target resolution and script execution handling ([1e488e5](https://github.com/addon-stack/inject-script/commit/1e488e5b2514452e6d3d5b00cc80bec01d722da2)) |
| 69 | + |
| 70 | + - Simplify `target()` method logic in `InjectScriptV3` for clarity and edge case handling. |
| 71 | + - Refactor `run()` method across `InjectScriptV2` and `InjectScriptV3` for streamlined execution. |
| 72 | + - Adjust imports to use standard and renamed modules from `@addon-core/browser`. |
| 73 | + - Add more robust error-handling in `InjectScriptV2` execution flow. |
| 74 | + - Use TS `type` imports to improve code clarity and type inference. |
| 75 | + |
| 76 | +* simplify `run` method type definition in `InjectScriptContract` ([bcce7fd](https://github.com/addon-stack/inject-script/commit/bcce7fdcffcb0780fba4ace5e58c3a3136176339)) |
| 77 | + |
| 78 | + - Remove redundant type constraint on `R` in `run` method to streamline type definition. |
| 79 | + - Ensure easier maintenance and improved type inference consistency. |
| 80 | + |
| 81 | +* split `tsup` config for ESM and CJS builds ([ccd9725](https://github.com/addon-stack/inject-script/commit/ccd9725049447a2b55d1eb516c174126151ada5a)) |
| 82 | + |
| 83 | + - Extract shared options into a `common` configuration object. |
| 84 | + - Separate ESM and CJS configurations for better customization and clarity. |
| 85 | + - Adjust `dts` and `clean` options for respective build formats. |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +### 🙌 Contributors |
| 91 | + |
| 92 | +- [Addon Bone](addonbonedev@gmail.com) — 12 commits |
0 commit comments