Skip to content

Latest commit

 

History

History
114 lines (61 loc) · 6.27 KB

CHANGELOG.md

File metadata and controls

114 lines (61 loc) · 6.27 KB

3.5.3 (April 18, 2019)

  • Update typescript definition for onMissingTranslationFunction function

3.5.2 (January 24, 2019)

  • Update typescript definition for localizeReducer function

3.5.1 (November 9, 2018)

  • ensure that store from props is initialized with initialize from props. #136

3.5.0 (October 17, 2018)

  • adds to withLocalize HOC automatic hoisting to non react statics using hoist-non-react-statics #130

3.4.1 (September 28, 2018)

  • Remove remaining references to redux in source #129

3.4.0 (September 12, 2018)

  • Add initialize prop to LocaizeProvider to support SSR #127

3.3.2 (August 22, 2018)

  • Fix too eager templater reg exp #118

3.3.1 (August 16, 2018)

  • Handle falsy values in data. #117

3.3.0 (July 25, 2018)

  • Add getState prop to LocalizeProvider to allow for ImmutableJS support #112

3.2.4 (July 19, 2018)

  • Fix issue where bad getOptions selector was causing unnecessary re-renders #111

3.2.3 (July 13, 2018)

  • Fix issue with onMissingTranslation not handling defaultTranslation properly #110

3.2.2 (July 11, 2018)

  • Fix bad import in TypeScript definition #106

3.2.1 (July 9, 2018)

  • Fix issue where onMissingTranslation would through error when defaultLanguage is not set #101

3.2.0 (June 24, 2018)

  • Allow React components as dynamic data arguments #100
  • Ensure that addDefaultTranslation gets called #99

3.1.2 (June 22, 2018)

  • Update the TypeScript definition for withLocalize #98

3.1.1 (June 17, 2018)

  • Make performance imporvements to getTranslationsForLanguage and getSingleToMultilanguageTranslation method. #92

3.1.0 (June 14, 2018)

  • Add ignoreTranslateChildren to initialize options. #91
  • Fix issue where Warning: Cannot update during an existing state transition message was appearing #88

3.0.2 (June 11, 2018)

  • remove console.log in LocalizeProvider

3.0.1 (June 4, 2018)

  • Update package.json peerDependencies react version to 16.3.0 as the Translate component requires getDerivedStateFromProps.

3.0.0 (June 3, 2018)

Breaking Changes

  • The Redux action creators initialize, addTranslation, addTranslationForLanguage, and setActiveLanguage have been removed. Instead they are now methods available on LocalizeContext, and can be added to your component's as props using the withLocalize higher-order component.

  • The translationTransform option is no longer available as an initialize option. Instead addTranslation now takes an options object, which accepts the translationTransform function.

    • This made more sense as this allows for adding transformations specific to a single translation instead of globally setting a transformation that you'd be stuck using for all translations.
  • initialize now takes a single options argument instead of multiple arguments.

  • Translate render props API now takes a single options object as an argument instead of multiple arguments.

  • renderInnerHtml option now set to false by default instead of true.

    • This is to mirror React's functionality where by default any children will be escaped by defualt.
  • Remove showMissingTranslationMsg, missingTranslationMsg, missingTranslationCallback initialize options. THe new onMissingTranslation option now covers all these scenarios.

  • Remove setTranslations action - instead pass languages to initialize.

  • Remove localize higher-order component - use new withLoclize higher-order component instead. Or if you only require access to translate function use <Translate> component instead.

  • If using Redux, all state related to localize will be added under the localize key instead of locale.

  • If using Redux, localeReducer is now named localizeReducer.

  • Fix typos in ADD_TRANSLATION_FOR_LANGUAGE action (Issue #65)