UNPKG

5.01 kBMarkdownView Raw
1# Changelog
2
3## 5.1.0
4
5Added `namespace` function to create a namespaced formatMessage.
6
7## 5.0.0
8
9* **New Feature**
10 * `setup()` returns the current settings
11 * Added localization helpers to public api
12 * `number (value [, style [, locale ]])`
13 * `date (value [, style [, locale ]])`
14 * `time (value [, style [, locale ]])`
15 * `select (value, options)`
16 * `plural (value [, offset ], options [, locale ])`
17 * `selectordinal (value [, offset ], options [, locale ])`
18 * Allow `missingReplacement` to be a function
19 * Added format-message/react module
20* **Breaking Change**
21 * format-message relies on Intl APIs for date an number formatting, if using in an environment without that API, you will need to use the Intl.js polyfill.
22
23## 4.0.0
24
25* **New Feature**
26 * Added id and description by passing an object instead of a string
27* **Breaking Change**
28 * Reworked cli and moved it to format-message-cli
29 * Removed cache option
30
31## 3.2.0
32
33* **New Feature**
34 * Added `formats` option to `setup()`
35* **Bug Fix**
36 * Default `missingTranslation` to `"warning"`
37* **Documentation**
38 * Add `missingTranslation` and `missingReplacement` to README
39
40## 3.1.0
41
42* **New Feature**
43 * Added `--no-instructions` option to suppress instructions in extract output
44 * Added `--yml` option to output extract result as YAML instead of JSON
45* **Bug Fix**
46 * Made `lint` and `extract` tools work with ES6/7 files
47
48## 3.0.1
49
50* **Bug Fix**
51 * Remove some lingering ES6 breaking ES5 environments
52
53## 3.0.0
54
55* **Internal**
56 * Moved core functionality to new repo for better sharing
57 * Move source to ES5 instead of transpiling ES6 source
58
59## 2.5.1
60
61* **Internal**
62 * Update metadata for new github org
63 * Update dependencies
64
65## 2.5.0
66
67* **New Feature**
68 * Added instructions for translators to extracted json.
69 * Sort keys lexically in extracted json.
70 * Added support for missing translation options in runtime.
71* **Internal**
72 * Updated dependencies.
73
74## 2.4.1
75
76* **Bug Fix**
77 * Babel seems to resolve some source map issues. `¯\_(ツ)_/¯`
78* **Internal**
79 * Use babel instead of recast for parsing and traversing.
80
81## 2.4.0
82
83* **New Feature**
84 * `formatMessage.translate` gets the locale-specific pattern.
85
86## 2.3.0
87
88* **New Feature**
89 * `format-message lint` reports errors when required parameters are missing.
90 * `format-meassge inline` added `--missing-translation` and `--missing-replacement`.
91* **Bug Fix**
92 * Ensure `formatMessage` is in scope inside transpiled function declarations.
93* **Polish**
94 * Lots of code cleanup, split linter and extractor out of inliner.
95 * Convert more cases to inline concat instead of a function call.
96* **Documentation**
97 * Added a logo image.
98 * Reformat long paragraphs to single line.
99 * Add more detail to transpilation results.
100* **Internal**
101 * Made test timeouts more forgiving for slow ci environments.
102
103## 2.2.0
104
105* **Spec Compliancy**
106 * Update to CLDR 27 (adds 'as' and 'ce' locales)
107
108## 2.1.1
109
110* **Bug Fix**
111 * Parse error in source code triggers a helpful message and continues instead of dying.
112
113## 2.1.0
114
115* **New Feature**
116 * Auto detect function name based on `require` and `import`.
117* **Internal**
118 * Update dependencies.
119 * Follow [JS Standard Style](https://github.com/feross/standard).
120 * Make test timeouts more lenient because Karma is slow.
121* **Documentation**
122 * Document auto detecting function name.
123 * Update contributing guide to link to JS Standard Style.
124
125## 2.0.0
126
127* **Breaking Change**
128 * Rename package to `format-message`.
129 * Rename bin to `format-message`.
130 * Rename default function-name to `formatMessage`.
131
132## 1.0.4
133
134* **Bug Fix**
135 * Use caret version for glob since they delete old versions breaking npm install.
136* **Internal**
137 * Updated dependencies.
138
139## 1.0.3
140
141* **Polish**
142 * Reduce duplication in replaced calls.
143 * Reduce probability of collisions when inlining multiple files.
144
145## 1.0.2
146
147* **Internal**
148 * Updated dependencies.
149 * Moved built files from `dist` to `lib`.
150 * Added `index.js` for platforms that don't lookup package.json main.
151
152## 1.0.1
153
154* **Documentation**
155 * Removed dragons.
156
157## 1.0.0
158
159* **New Feature**
160 * Added `message-format lint` cli tool.
161 * Added `message-format extract` cli tool.
162 * Added `message-format inline` cli tool.
163* **Breaking Change**
164 * Removed `message-format-inline` cli tool.
165 * Removed `message-format-scrape` cli tool.
166 * Renamed `formatName` option to `functionName` in `Inliner`.
167* **Bug Fix**
168 * Correctly load target locale plural rules when inlining.
169* **Documentation**
170 * Added CLI documentation.
171* **Internal**
172 * Switch from jasmine to mocha.
173 * Add test for inlined format.
174
175## 0.2.0
176
177* **New Feature**
178 * Added `message-format-scrape` script.
179 * Allow `sourceMapName` option in `inline`.
180
181## 0.1.0
182
183* **New Feature**
184 * Added support for `selectordinal`.
185* **Bug Fix**
186 * Format unsupported rbnf types as `number`.
187* **Internal**
188 * Upgrade from `6to5` to `babel`.
189 * Use `eslint` and `jscs` for style checking.