UNPKG

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