Skip to content

v0.2.0

Compare
Choose a tag to compare
@guansss guansss released this 07 Sep 10:24
· 25 commits to main since this release

Below are all the changes since v0.1.2:

v0.2.0

  • The option require no longer accpets a string or a function, now it only accepts an object.
  • Added option require.exportsFromUnnamed to suppress warning/error when using exports from an unnamed external module.
  • Changed TypeScript's compile target from es2017 to es2020, which has been supported on Node.js>=14

v0.2.0-beta.3

  • fixed UMD externals being incorrectly loaded in client script

v0.2.0-beta.2

None

v0.2.0-beta.1

  • merged monkey() option filter into ignore
  • prioritized meta.js over meta.ts when both exist
  • added Meta as an alias of UserscriptMeta
  • added colorette and terser-webpack-plugin as optional peer dependencies (already installed by webpack)
  • removed the use of ES modules in released code
    • now builds client code into CommonJS
    • removed conditional exports from package.json
  • removed unnecessary exports, only export the core parts: monkey(), MonkeyPlugin, MonkeyMinimizer
  • removed unused dependencies: lodash-es, tsc-alias, vite(I don't know why it was there)
  • removed the requirement of having a Prettier config to automatically enable output formatting
  • fixed @require not getting the correct version from external dependencies' package.json