Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lingui/macro

Package Overview
Dependencies
Maintainers
0
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/macro - npm Package Versions

1
13

4.1.1

Diff

Changelog

Source

4.1.1 (2023-05-17)

Bug Fixes

  • message-utils: workaround package.json exports field for older runtimes (#1657) (e3ff138)
andrii.bodnar
published 4.1.0 •

Changelog

Source

4.1.0 (2023-05-15)

Bug Fixes

  • format should follow locale order (#1619) (4d53b7b)
  • just use require to import services (#1647) (388c77b)
  • message-utils: workaround package.json exports field (#1650) (3bee00c)
  • react macro types (#1620) (8a48b9f)
  • vue-extractor: don't crash when there is no <template> in an SFC (#1623) (9e6ea70)
  • vue-extractor: fix default export burden with /api/extractors/babel (#1626) (045eb21)

Features

andrii.bodnar
published 4.0.0 •

Changelog

Source

4.0.0 (2023-04-xx)

Features

  • Hash-based message ID + Context (#1440)
  • Custom Formatters
  • Custom Extractors
  • Message Extraction guide, experimental dependency tree crawling
  • Vue.js Extractor
  • macro: support JSX macro inside conditional expressions (#1436)
  • macro: support renamed identifiers in macro (#1463)
  • extractor: (Experimental): Deps extractor (#1469)
  • core (Experimental): add new core API for Node/JS usage without macros (#1564)
  • core: support extracting from all forms of i18n._ / i18n.t calls (#1586)
  • extractor: add new package with vue extractor (#1578)
  • extractor: support TS experimental decorators (#1517)
  • webpack-loader: support JSON catalogs (#1525)
  • formats: extract formats into separate packages (#1536)
  • macro: support tagged templates in defineMessage + short alias (#1495)
  • conf: clarify the order by messageId and support order by message (#1515)
  • extractor: allow i18._(foo.bar) without warning (#1492)
  • core: add i18n.setCatalogAndActivate for easier nextjs integration (#1541)
  • macro: allow passing any expression as custom i18n instance (#1475)
  • extractor: respect sourcemaps (#1459)
  • examples: update examples (nextjs-babel, nextjs-swc, js, create-react-app) (#1550)
  • examples: add vite-react-babel example (#1558)

Fixes and refactoring

  • always honor process.env.LINGUI_CONFIG (#1447)
  • core: use Intl.PluralRules instead of i18n.loadLocaleData (#1486)
  • core: do not ignore empty plural values (#1504)
  • macro: expression only choices / select options (#1523)
  • macro: mark other as required for ChoiceOptions (#1527)
  • react: remove deprecated defaultProps from Trans component (#1494)
  • cli: exclude pseudo locale during sync (#1455)
  • react: do not remount children of I18nProvider (#1501)
  • react: support array of react components in values (#1593)
  • build: migrate to unbuild (#1545)

Breaking Changes

  • extractor/babel: non-fragile babel extractor options (#1367)
  • extractor: don't use intermediate catalogs (#1358)
  • macro: Trans inside Plural has leading whitespace (#1437)
  • react: remove withI18n (#1503)
  • macro: remove arg macro (#1581)
  • delete Snowpack plugin (#1532)

Links

andrii.bodnar
published 4.0.0-next.8 •

andrii.bodnar
published 4.0.0-next.7 •

andrii.bodnar
published 4.0.0-next.6 •

andrii.bodnar
published 4.0.0-next.5 •

andrii.bodnar
published 4.0.0-next.4 •

andrii.bodnar
published 4.0.0-next.3 •

andrii.bodnar
published 4.0.0-next.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc