Skip to content

v0.2.6

Choose a tag to compare

@addon-owner addon-owner released this 12 Aug 21:11
· 334 commits to main since this release

πŸš€ adnbn v0.2.6 Hotfix

Compare: v0.2.5...v0.2.6


πŸ› οΈ Hotfix Summary

This is a maintenance release focused on stability, test reliability, and small build/tooling adjustments. No breaking changes.


βœ… Fixes

  • 🌐 Locale plugin: add safeguard when the language set is empty to prevent runtime/config resolution errors.
  • πŸ“¦ Module resolution: switch to createRequire in ImportResolver and AbstractFinder to resolve modules correctly in ESM contexts and mixed Node environments.
  • 🧹 Minor formatting/consistency fixes across imports and object literals (quotes, trailing commas, newline consistency) to reduce diff-noise and avoid linter warnings.

♻️ Refactors & Internals

  • 🚚 Import paths and export organization: consolidated transport-related types and re-routed imports to a single src/transport/index.ts for clearer boundaries.
  • 🧾 Typings alignment: updated RunAt reference (Chrome API namespace changes) to keep types up-to-date.

πŸ§ͺ Tests & Tooling

  • 🧩 Resolver tests: added lightweight mocks (TsResolverMock, ImportResolverMock) to isolate tests and simplify setup in ExpressionFile.test.ts and OptionFile.test.ts.
  • 🧱 Jest ESM handling: configured extensionsToTreatAsEsm for .ts/.tsx to improve ESM test compatibility.
  • 🚫 Build hygiene: excluded test artefacts (tests folders, *.test.ts, *.spec.ts) from production builds via tsup.config.ts.

πŸ“¦ Dependencies

  • General dependency updates for stability, including bundler and type packages (e.g., Rspack family and @types/chrome). No breaking changes expected from these bumps within our supported ranges.

πŸ”’ Breaking Changes

  • None.

🧭 Migration Notes

  • No action required. If you rely on custom module resolution in plugins or resolvers, note the internal move to createRequire, but the public API remains unchanged.

🧰 Misc

  • Version bump to 0.2.6 and minor housekeeping.