@intlify/bundle-utils 2.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,40 @@
1
1
 
2
+ ## @intlify/bundle-utils@3.0.0 (2022-04-05)
3
+
4
+ #### :star: Features
5
+ * [#101](https://github.com/intlify/bundle-tools/pull/101) feat(bundle-utils): pinned intlify related module next version ([@kazupon](https://github.com/kazupon))
6
+
7
+ #### Committers: 1
8
+ - kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
9
+
10
+
11
+ ## @intlify/bundle-utils@2.2.2 (2022-04-05)
12
+
13
+ #### :zap: Improvement Features
14
+ * [#100](https://github.com/intlify/bundle-tools/pull/100) fix(bundle-utils): pinned latest stable version ([@kazupon](https://github.com/kazupon))
15
+
16
+ #### Committers: 1
17
+ - kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
18
+
19
+
20
+ ## @intlify/bundle-utils@2.2.1 (2022-03-22)
21
+
22
+ #### :bug: Bug Fixes
23
+ * [#98](https://github.com/intlify/bundle-tools/pull/98) fix(bundle-utils): fix nested array code generation ([@kazupon](https://github.com/kazupon))
24
+
25
+ #### Committers: 1
26
+ - kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
27
+
28
+
29
+ ## @intlify/bundle-utils@2.2.1 (2022-03-22)
30
+
31
+ #### :bug: Bug Fixes
32
+ * [#98](https://github.com/intlify/bundle-tools/pull/98) fix(bundle-utils): fix nested array code generation ([@kazupon](https://github.com/kazupon))
33
+
34
+ #### Committers: 1
35
+ - kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
36
+
37
+
2
38
  ## @intlify/bundle-utils@2.2.0 (2021-12-16)
3
39
 
4
40
  #### :zap: Improvement Features
package/lib/json.js CHANGED
@@ -201,12 +201,20 @@ function generateNode(generator, node, options, injector) {
201
201
  }
202
202
  generator.deindent();
203
203
  generator.push(`]`);
204
+ if (parent.type === 'JSONArrayExpression') {
205
+ if (itemsCountStack[itemsCountStack.length - 1] !== 0) {
206
+ generator.pushline(`,`);
207
+ }
208
+ }
204
209
  break;
205
210
  case 'JSONLiteral':
206
211
  if (parent.type === 'JSONArrayExpression') {
207
212
  if (itemsCountStack[itemsCountStack.length - 1] !== 0) {
208
213
  generator.pushline(`,`);
209
214
  }
215
+ else {
216
+ generator.pushline(`,`);
217
+ }
210
218
  }
211
219
  break;
212
220
  default:
package/lib/yaml.js CHANGED
@@ -192,12 +192,20 @@ function generateNode(generator, node, options, injector) {
192
192
  }
193
193
  generator.deindent();
194
194
  generator.push(`]`);
195
+ if (parent.type === 'YAMLSequence') {
196
+ if (itemsCountStack[itemsCountStack.length - 1] !== 0) {
197
+ generator.pushline(`,`);
198
+ }
199
+ }
195
200
  break;
196
201
  case 'YAMLScalar':
197
202
  if (parent.type === 'YAMLSequence') {
198
203
  if (itemsCountStack[itemsCountStack.length - 1] !== 0) {
199
204
  generator.pushline(`,`);
200
205
  }
206
+ else {
207
+ generator.pushline(`,`);
208
+ }
201
209
  }
202
210
  break;
203
211
  default:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intlify/bundle-utils",
3
3
  "description": "Bundle utilities for Intlify project",
4
- "version": "2.2.0",
4
+ "version": "3.0.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@intlify/message-compiler": "beta",
23
- "@intlify/shared": "beta",
22
+ "@intlify/message-compiler": "next",
23
+ "@intlify/shared": "next",
24
24
  "jsonc-eslint-parser": "^1.0.1",
25
25
  "source-map": "^0.6.1",
26
26
  "yaml-eslint-parser": "^0.3.2"