Releases: tryggvigy/pseudo-localization
v3.1.1
3.0.1
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
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 astop
method- Remove
PseudoLocalizeDom.stop
method
What's Changed
What's Changed
- Slim down the library by @tryggvigy in #59
Release 2.1.1
- Add bin folder to "files" key in package.json (8a8a9c4)
Release 2.1.0
- 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
v2.0.1
v2.0.0
- 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 fromtoconst pseudoLocalization = require('pseudo-localization');
const pseudoLocalization = require('pseudo-localization').default;
- BREAKING
- Transform to "not dead" browsers through babel #16
- Fixes #8