Skip to content

Releases: nalgeon/iuliia-js

v0.8.2

26 Jan 18:06
Compare
Choose a tag to compare

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

Changed

  • #25, #2 re-organize dist folder. node renamed to cjs, browser is removed, esm is added

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

24 Jan 14:50
Compare
Choose a tag to compare

Fixed

  • #22 iuliia can again be imported as CommonJS module using const iuliia = require('iuliia')
    • in TS use import * as iuliia from 'iuliia'; or named imports like import {translate, WIKIPEDIA} from 'iuliia';
  • UMD bundles

Changed

  • (internal) JSON schema is used as a source for auto-generated interface TransliterationSchema

v0.8.0

24 Jan 11:06
Compare
Choose a tag to compare

Fixed

  • #22 iuliia can again be imported as CommonJS module using const iuliia = require('iuliia')
    • in TS use import * as iuliia from 'iuliia'; or named imports like import {translate, WIKIPEDIA} from 'iuliia';

Changed

  • (internal) JSON schema is used as a source for auto-generated interface TransliterationSchema

v0.7.2

23 Jan 18:09
Compare
Choose a tag to compare

Fixed

  • npm publish workflow in Github Actions

v0.7.1

23 Jan 11:46
Compare
Choose a tag to compare

Added

Fixed

  • gost_779_alt (Cyrillic е replaced with Latin e)
  • yandex_maps (prev_mapping added)
  • url is replaced in all schemas with the correct one