Releases: nalgeon/iuliia-js
Releases · nalgeon/iuliia-js
v0.8.2
Added
- #2
- tree-shakeable ESM build under
./dist/esm
- integration test for the Webpack bundle with tree-shaking
- integration test for the UMD bundle
- integration test for the CommonJS module
- tree-shakeable ESM build under
Changed
Tree-shaking support
To enable tree-shaking in Webpack, the following options should be added to the webpack.config.js:
optimization: {
innerGraph: true,
usedExports: true,
}
Then, if you try to build the following code with Webpack:
import { translate, MOSMETRO, WIKIPEDIA } from 'iuliia';
console.log(translate("Привет, мир!", WIKIPEDIA));
console.log(translate("Привет, мир!", MOSMETRO));
, then your bundle will contain only MOSMETRO
and WIKIPEDIA
schemas because you enabled dead-code elimination optimization.
v0.8.1
Fixed
- #22
iuliia
can again be imported as CommonJS module usingconst iuliia = require('iuliia')
- in TS use
import * as iuliia from 'iuliia';
or named imports likeimport {translate, WIKIPEDIA} from 'iuliia';
- in TS use
- UMD bundles
Changed
- (internal) JSON schema is used as a source for auto-generated interface
TransliterationSchema
v0.8.0
Fixed
- #22
iuliia
can again be imported as CommonJS module usingconst iuliia = require('iuliia')
- in TS use
import * as iuliia from 'iuliia';
or named imports likeimport {translate, WIKIPEDIA} from 'iuliia';
- in TS use
Changed
- (internal) JSON schema is used as a source for auto-generated interface
TransliterationSchema
v0.7.2
Fixed
- npm publish workflow in Github Actions
v0.7.1
Added
- a script for schemas generation, which imports the schemas from the main repository https://github.com/nalgeon/iuliia
- to execute it, run:
npm run generate
- to execute it, run:
Fixed
- gost_779_alt (Cyrillic
е
replaced with Latine
) - yandex_maps (
prev_mapping
added) url
is replaced in all schemas with the correct one