Skip to content

Latest commit

 

History

History
700 lines (312 loc) · 30.3 KB

CHANGELOG.md

File metadata and controls

700 lines (312 loc) · 30.3 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

6.5.0 (2020-01-20)

Features

6.4.1 (2019-12-02)

Bug Fixes

  • routing: Restore handling of route argument in getRouteBaseName (3685abb), closes #539

6.4.0 (2019-11-18)

Features

  • parser: parse typescript 3.7 shipped proposals (a69a8fb)

6.3.1 (2019-11-11)

Bug Fixes

  • default locale catch-all route overrides locale-specific one (196bf9c), closes #152
  • Direct navigation to URL in SPA with vue-router in hash mode (0a9c4c8), closes #490
  • make switchLocalePath work from Nuxt plugin or middleware (8a1c052), closes #480
  • set sameSite=Lax option for detected-language cookie (8d84986), closes #516

6.3.0 (2019-09-26)

Bug Fixes

  • types: add missing seo: false type for component options (0fae937)
  • all routes removed when locales are absent (1c5e42c), closes #444
  • types: specify arguments for onLanguageSwitched and beforeLanguageSwitch (da6a523)
  • Don't inject to store if store is not defined (e547639)
  • Locale prefixes missing for child routes with custom paths (10c1d9d), closes #359
  • NO_PREFIX - localePath with path returns route with prefix (4d4186c), closes #457
  • Route name missing for routes that have children (bd23683), closes #356

Features

  • Inject $i18n into Vuex Store as this.$i18n (bb31cb0)

6.2.1 (2019-09-13)

Bug Fixes

  • types: use correct module name for nuxt augmentation (46f67ea)

6.2.0 (2019-09-13)

Bug Fixes

  • crash on no_prefix + invalid/tempered locale cookie (4b56d84)
  • Don't try to process routes with no component (a53e32a)
  • failure to change locale on initial try with nuxt generate (9b4b6f6), closes #378

Features

  • support 'path' parameter in localePath(...) (bbaa266), closes #215

6.1.3 (2019-09-04)

Bug Fixes

  • make parsePages compatible with typescript decorators (5a3db3b), closes #408 #76

6.1.2 (2019-09-04)

Bug Fixes

  • issue with locale not being updated when cookie not stored (999ac4b)
  • multiple redirects on switching to another locale (14ceeb3)
  • types: add type for Nuxt's context.app.i18n (d5afd8b)
  • types: add types for in-component options (e2e3bca)
  • types: export NuxtVueI18n namespace to allow to annotate configuration (906a776)
  • types: fixed various types for NuxtI18n configuration (6f6c235)
  • types: move getLocaleCookie/setLocaleCookie/SetLocale to proper interface (7d3eceb)
  • types: remove null result from getLocaleCookie to simplify types (df5ac8a)
  • types: update NuxtI18nSeo interface to use VueMeta types (3a4ada6)

Notes

  • app.$t API was removed (ca198e5) - This is not a breaking change since this API has never worked according to my understanding.
  • getLocaleCookie will no longer return null value in case cookie is missing. Instead it will consistently return undefined. This is unlikely to affect anyone unless one was checking for null specifically which would not be a correct thing to do even before.

6.1.1 (2019-08-28)

Bug Fixes

  • fix loading fallback locale with lazy loading (d8db5b1)
  • locale not set with differentDomains enabled (634690a)
  • redirects to wrong route after SPA navigation (8bf61d9)

6.1.0 (2019-08-27)

Features

  • Add no_prefix strategy + setLocale API function (#409) (998011e)

6.0.2 (2019-08-20)

Bug Fixes

  • warning in nuxt 2.9.x / vue-meta 2.x (3605632)

6.0.1 (2019-08-13)

Bug Fixes

  • deps: update all non-major dependencies (#375) (9efbbf0)
  • deps: update dependency acorn to v7 (#392) (9fc564f)
  • deps: update dependency acorn-walk to v7 (#393) (06ddf3e)

6.0.0 (2019-07-20)

Bug Fixes

  • routing: resolve localePath with fullPath instead of href (b827681)
  • Disable seo by default (741ae12), closes #346
  • update link to SEO metadata generation logic (#352) (10a5ff2)

Code Refactoring

  • Disable setLocale & setMessages mutations by default (76c9978)
  • Rename and flatten vuex options (8897ac6)

Features

  • Dynamic route parameters translation (#345) (2d1d729), closes #79
  • Use default locale's custom path if not defined for a locale (#354) (d30e5f0)

Performance Improvements

  • Register global mixins from plugins (2ceb8e4)

BREAKING CHANGES

5.x to 6.x migration path

  • Store module's options have been flattened and renamed
  • The mutations responsible for syncing nuxt-i18n's store module with vue-i18n's locale and messages are now disabled by default, you'll need to manually re-enable them in the module's configuration
  • preserveState is now set automatically when registering the store module and cannot be set via the configuration anymore
  • Global seo option is now disabled by default. To preserve the previous behaviour, set seo: true in the module's options. Doc: https://nuxt-community.github.io/nuxt-i18n/seo.html

6.0.0-0 (2019-07-01)

Features

  • Dynamic route parameters translation (04373ef), closes #79

BREAKING CHANGES

  • preserveState is now set automatically when registering the store module and cannot be set via the configuration anymore

5.12.8 (2019-07-01)

NOTE: Version bump only, all fixes were released in v5.12.7 already

Bug Fixes

  • Move SEO types out of Vue module declaration (be085d5)
  • Move SEO types out of Vue module declaration (#335) (0cc0ba0)
  • Only require is-https dependency on the server (fixes #329) (8a728ef)
  • revert using cookies package to fix cookie headers handling (#332) (9cd034d), closes #330

5.12.7 (2019-06-22)

Bug Fixes

  • Move SEO types out of Vue module declaration (#335) (0cc0ba0)
  • Only require is-https dependency on the server (fixes #329) (8a728ef)
  • Revert using cookies package to fix cookie headers handling (#332) (9cd034d), closes #330

5.12.6 (2019-06-21)

Bug Fixes

  • do not discard already present set-cookie header (#327) (ec08be8)

5.12.5 (2019-06-20)

Bug Fixes

  • better server side protocol detection (fixes #123) (8cb3eb6)

5.12.4 (2019-06-02)

Bug Fixes

  • deps: update dependency cookie to ^0.4.0 (4223f6a)
  • add types for nuxtI18nSeo (5811bbe)
  • Unexpected token when using dynamic imports (#320) (7dd1dbc), closes #134 #301

5.12.3 (2019-05-13)

Bug Fixes

  • remove explicit dependency on vue-template-compiler (fixes #297) (576382e)
  • remove explicit dependency on vue-template-compiler (fixes #297) (#305) (2eff158)

5.12.2 (2019-05-09)

Bug Fixes

  • add missing vue-template-compiler dependency (fixes #297) (#298) (196b4e0)

5.12.1 (2019-05-09)

Bug Fixes

  • Fix duplicate child routes with PREFIX_AND_DEFAULT strategy (fixes #292) (#294) (76d5948)
  • Fix exception when using multiple domains option (fixes #293) (#295) (17f1e07)

5.12.0 (2019-05-06)

Features

  • Load fallback locale when needed if lazy-loading is enabled (#291) (0148546), closes #34

5.11.0 (2019-05-05)

Features

  • add global options (fe6d114)
  • Always redirect to language that was saved in cookie (#283) (dc66895)

5.10.0 (2019-04-27)

Bug Fixes

  • Prevent redirect failure when accessing a dynamic route with detectBrowserLanguage enabled (#266) (b7adba0)

Features

5.9.0 (2019-04-25)

Features

  • pass nuxt context to loadLanguageAsync (3834899)

5.8.5 (2019-03-01)

Bug Fixes

  • Prevent error "Cannot read property 'iso' of undefined" on 404 pages (#233) (6cb2fa1)

5.8.4 (2019-02-22)

Bug Fixes

  • Prevent duplicated route names issue with prefix_and_default strategy (318850c), closes #140

5.8.3 (2019-02-17)

Bug Fixes

5.8.2 (2019-02-15)

Bug Fixes

  • Set new locale into vuex store module when switching languages (#222) (77cc393), closes #221

5.8.1 (2019-02-10)

Bug Fixes

5.8.0 (2019-01-27)

Bug Fixes

  • Rename option encodeURI to encodePaths (776c2dd)

Features

  • Add encodeURI option to allow skipping encodeURI for custom paths (#199) (00c89f1), closes #191

5.7.0 (2019-01-23)

Bug Fixes

  • Fix broken condition in middleware & prevent cookie from being set twice (#164) (7c83922)

Features

  • Upgrade vue-i18n (v8.2.1 -> v8.7.0) (feac945)

5.6.0 (2019-01-20)

Bug Fixes

  • Create correct baseroute for switchlocalepath (#193) (909062f)
  • Preserve route params in base route (13b2e73)

Features

  • Add canonical link to PREFIX_AND_DEFAULT duplicated pages (#194) (dcd1f79)

5.5.0 (2019-01-14)

Bug Fixes

Features

  • Allow i18n component to load json (#174) (21d4305)
  • expose head SEO function to use in layout (#154) (ce373c4)
  • make t() method available server-side through app.$t() (#168) (90bcd80)
  • rework browser detection and save lang to cookie (#148) (d1bbc84)

5.4.4 (2018-10-23)

Bug Fixes

5.4.3 (2018-10-12)

Bug Fixes

5.4.2 (2018-10-12)

Bug Fixes

  • Revert "feat: i18n.locale property changes when route changed" (9e04b00)

5.4.1 (2018-10-11)

Bug Fixes

  • Include Types in NPM bundle (when published) (fc67f4e)

5.4.0 (2018-10-07)

Features

  • add TypeScript types (#133) (817c58e)
  • i18n.locale property changes when route changed (2f2f284)

5.3.0 (2018-09-11)

Features

5.2.1 (2018-08-26)

5.2.0 (2018-08-24)

Features

  • Ability to define locale domains at runtime via Vuex store (0226b07)

5.1.1 (2018-08-14)

5.1.0 (2018-08-11)

Features

  • Add option to automatically add vue-i18n-loader to Webpack config (d997b81), closes #58

5.0.3 (2018-08-10)

Bug Fixes

  • middleware: Return after root redirect (c2ce741), closes #104

5.0.2 (2018-08-09)

Bug Fixes

  • Fix TypeError: Cannot read property 'pages' of undefined in extendRoutes (10ba9ed), closes #113

5.0.1 (2018-08-09)

Bug Fixes

  • Prevent error when using extendRoutes (1509a71), closes #52

5.0.0 (2018-08-08)

Bug Fixes

  • making hreflang href full-qualified (5dd4231)

Chores

  • Upgrade vue-i18n to v8.0.0 (6b1a982)

Features

  • strategy: add PREFIX_AND_DEFAULT strategy (a7ea4df)

BREAKING CHANGES

4.x to 5.x migration path

4.1.0 (2018-06-27)

Features

  • browser language detection: Add support for mode SPA (12bbef6), closes #103

4.0.2 (2018-06-27)

Bug Fixes

  • support locales with names that match other locales (en and en-us) (eeda1c5)

4.0.1 (2018-06-22)

Bug Fixes

4.0.0 (2018-06-07)

Bug Fixes

  • Rename in-component options key from i18n to nuxtI18n (5ff618d), closes #94 #67

BREAKING CHANGES

3.x to 4.x migration path

  • Pages using i18n key need to be updated to use nuxtI18n key instead

3.3.1 (2018-06-06)

Bug Fixes

  • Fix routes generation with nuxt generate (#95) (ff127a5), closes #82

3.3.0 (2018-05-30)

Features

  • loadLanguageAsync: Support promises return in lang files. (9b220c3)
  • Add support for X-Forwarded-Host (#92) (514ad63)

3.2.4 (2018-05-27)

3.2.3 (2018-05-10)

Bug Fixes

  • Fix 'logger is not defined' error (b79b570)

3.2.2 (2018-05-10)

Bug Fixes

  • Fix an issue where the module would attempt to generate og:locale tags without required ISO code (5dd97d5), closes #80

3.2.1 (2018-05-10)

Bug Fixes

  • Lock esm to 3.0.28 to prevent error at build time (e909837), closes #85

3.2.0 (2018-05-09)

Features

  • Add parsePages & pages options (b2980cf)

3.1.0 (2018-05-01)

Features

  • Add og:locale support & fix i18n.seo component option (8c1588e)