Skip to content

Releases: tryggvigy/pseudo-localization

v3.1.1

24 Feb 10:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.1.1

3.0.1

24 Feb 09:52
Compare
Choose a tag to compare

What's Changed

  • Use TS for src, compile .d.ts files, strip types with node by @tryggvigy in #60

Full Changelog: v3.0.3...v3.0.1

3.0.4

23 Feb 21:37
01deeb7
Compare
Choose a tag to compare

Breaking changes!

All this library does is transform a string into another string. As such, it should be dead simple and light weight. In the spirit of that, I'm slimming down this library as much as I possibly can.

Remove unnecessary dependencies

pseduo-localization now only has yargs as a runtime dependency (I might remove it too to get to zero deps, a string transformation library really shouldn't smuggle any runtime dependencies into your bundle!). Remove babel, jest, and others.

Remove nice-to-have features that can be achived with other tools

  • This includes removing support for passing in json files and .js files as input to the CLI
  • Remove support for pipe input (|)

Remove bundling

The src code ESM is shipped as is. CJS support is removed. TS types are handled via types-in-JSDoc comments

Split the library up

The main feature lives in import { pseudoLocalizeString } from 'pseudo-localiztion';. This is the core of the library and afaik, it is used vastly more than the DOM mutation-observer wrapper.

The DOM api lives in import { PseudoLocalizeDom } from 'pseudo-localiztion/dom';. The DOM api has been streamlined as well:

  • remove PseudoLocalizeDom.isEnabled method
  • PseudoLocalizeDom.start method now returns a stop method
  • Remove PseudoLocalizeDom.stop method

What's Changed

What's Changed

Release 2.1.1

26 Jul 14:19
Compare
Choose a tag to compare
  • Add bin folder to "files" key in package.json (8a8a9c4)

Release 2.1.0

25 Jul 19:31
Compare
Choose a tag to compare
  • 2.1.0 (#25) (dbf2f3c)
  • Merge pull request #26 from tryggvigy/add-eslint (fe214a4)
  • Add eslint (4657e00)
  • Merge pull request #21 from tryggvigy/dependabot/npm_and_yarn/handlebars-4.1.2 (c2549ca)
  • Merge pull request #22 from tryggvigy/dependabot/npm_and_yarn/js-yaml-3.13.1 (aef3c48)
  • Merge pull request #23 from tryggvigy/dependabot/npm_and_yarn/lodash-4.17.14 (4bb4945)
  • Bump lodash from 4.17.11 to 4.17.14 (c147cc3)
  • Bump js-yaml from 3.12.1 to 3.13.1 (16d62ea)
  • Bump handlebars from 4.1.0 to 4.1.2 (697cb6f)
  • Add prettier, travis, jest (#20) (4457cb9)
  • Add codesandbox link (42d3c97)

v2.0.2

20 Feb 03:06
Compare
Choose a tag to compare
  • Fix a bug where blacklisted nodes would get pseudo-localized when mutated in the DOM e7d86d9

v2.0.1

20 Feb 02:29
Compare
Choose a tag to compare
  • Mention in package.json description that pseudo-localization works with nodejs.

v2.0.0

20 Feb 02:04
Compare
Choose a tag to compare
  • Safeguard childlist mutations and empty strings #12
  • Fix a bug where DOM mutation localizations did not respect the strategy specified #16
  • Refactor internals to use import/export ES modules #16
    • BREAKING require usage will have to change from
         const pseudoLocalization = require('pseudo-localization');
      to
        const pseudoLocalization = require('pseudo-localization').default;
  • Transform to "not dead" browsers through babel #16
    • Fixes #8

v1.3.0

20 Nov 22:08
5692950
Compare
Choose a tag to compare
  • Allow blacklisting nodes (#9)