@forge/cli-shared 5.5.0-next.8-experimental-c7a7d36 → 5.5.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,27 +1,113 @@
1
1
  # @forge/cli-shared
2
2
 
3
- ## 5.5.0-next.8-experimental-c7a7d36
3
+ ## 5.5.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 7e506ec: Interpolate string resources in modules
7
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
8
+ - ac1a61b: Bundle files on disk instead of memory
9
+ - 60a4b5b: Include i18n resource utility functions to support Forge i18n in the CLI and bundler
10
+ - be67acb: Interpolate string resources in modules
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [10f4545]
15
+ - Updated dependencies [bf34881]
16
+ - Updated dependencies [c341349]
17
+ - Updated dependencies [c113f86]
18
+ - Updated dependencies [c74ca63]
19
+ - Updated dependencies [be67acb]
20
+ - Updated dependencies [c74ca63]
21
+ - Updated dependencies [9a546fd]
22
+ - Updated dependencies [c6377ba]
23
+ - Updated dependencies [d51b7be]
24
+ - Updated dependencies [13fb92c]
25
+ - Updated dependencies [23f6675]
26
+ - Updated dependencies [c81fa57]
27
+ - Updated dependencies [27249cd]
28
+ - Updated dependencies [99b6dd4]
29
+ - Updated dependencies [b0ad6d7]
30
+ - Updated dependencies [ce41b8c]
31
+ - Updated dependencies [7160171]
32
+ - Updated dependencies [b90e809]
33
+ - Updated dependencies [5f82d22]
34
+ - Updated dependencies [f40d3b5]
35
+ - Updated dependencies [26f8528]
36
+ - Updated dependencies [313b8e1]
37
+ - Updated dependencies [bf0fab6]
38
+ - Updated dependencies [fdaaeab]
39
+ - @forge/manifest@7.7.0
40
+ - @forge/i18n@0.0.1
41
+
42
+ ## 5.5.0-next.16
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [99b6dd4]
47
+ - @forge/manifest@7.7.0-next.15
48
+
49
+ ## 5.5.0-next.15
50
+
51
+ ### Minor Changes
52
+
53
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
54
+
55
+ ## 5.5.0-next.14
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [d51b7be]
60
+ - @forge/i18n@0.0.1-next.13
61
+ - @forge/manifest@7.7.0-next.14
62
+
63
+ ## 5.5.0-next.13
64
+
65
+ ### Minor Changes
66
+
67
+ - ac1a61b: Bundle files on disk instead of memory
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [23f6675]
72
+ - Updated dependencies [27249cd]
73
+ - Updated dependencies [5f82d22]
74
+ - @forge/i18n@0.0.1-next.12
75
+ - @forge/manifest@7.7.0-next.13
76
+
77
+ ## 5.5.0-next.12
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [ce41b8c]
82
+ - @forge/manifest@7.7.0-next.12
83
+ - @forge/i18n@0.0.1-next.11
84
+
85
+ ## 5.5.0-next.11
86
+
87
+ ### Minor Changes
88
+
89
+ - 60a4b5b: Include i18n resource utility functions to support Forge i18n in the CLI and bundler
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [bf34881]
94
+ - Updated dependencies [c81fa57]
95
+ - @forge/manifest@7.7.0-next.11
96
+ - @forge/i18n@0.0.1-next.10
97
+
98
+ ## 5.5.0-next.10
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [26f8528]
103
+ - @forge/manifest@7.7.0-next.10
104
+
105
+ ## 5.5.0-next.9
8
106
 
9
107
  ### Patch Changes
10
108
 
11
- - Updated dependencies [7e506ec]
12
- - Updated dependencies [7e506ec]
13
- - Updated dependencies [7e506ec]
14
- - Updated dependencies [7e506ec]
15
- - Updated dependencies [7e506ec]
16
- - Updated dependencies [7e506ec]
17
- - Updated dependencies [7e506ec]
18
- - Updated dependencies [7e506ec]
19
- - Updated dependencies [7e506ec]
20
- - Updated dependencies [7e506ec]
21
- - Updated dependencies [7e506ec]
22
- - Updated dependencies [7e506ec]
23
- - Updated dependencies [7e506ec]
24
- - @forge/manifest@7.7.0-next.8-experimental-c7a7d36
109
+ - Updated dependencies [13fb92c]
110
+ - @forge/manifest@7.7.0-next.9
25
111
 
26
112
  ## 5.5.0-next.8
27
113
 
@@ -45,7 +45,7 @@ class ZipTemplateExtractor {
45
45
  this.zipAccessor = zipAccessor;
46
46
  }
47
47
  async extract(zipFile, destDirectory) {
48
- const extractDirectory = tmp_1.default.dirSync({ prefix: 'template' }).name;
48
+ const extractDirectory = tmp_1.default.dirSync({ prefix: 'template', unsafeCleanup: true }).name;
49
49
  try {
50
50
  await this.zipAccessor.extract(zipFile, extractDirectory);
51
51
  await this.moveArchiveFilesToDirectory(extractDirectory, destDirectory);
@@ -114,7 +114,7 @@ class ConfigFile {
114
114
  }
115
115
  getHostedResourceModules(modules) {
116
116
  const modulesArray = (0, shared_1.flat)(Object.values(modules));
117
- return modulesArray.filter((module) => (0, config_1.isHostedResourceModule)(module));
117
+ return modulesArray.filter(config_1.isHostedResourceModule);
118
118
  }
119
119
  assertNoMissingResources(modules, resources) {
120
120
  const missingResources = modules.filter(({ resource }) => !resources.some(({ key }) => resource === key));
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAuE,CAAC;AAExG,eAAO,MAAM,iBAAiB,sDAAuD,CAAC;AACtF,oBAAY,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,oBAAY,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,UAAU;CAC9C,CAAC;AAEF,oBAAY,qBAAqB,GAAG,UAAU,GAAG;I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EAAE,qBAAqB;CACzD,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,aAAc,GAAG,0BAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,GAAG,oCAGjD,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isHostedResourceModule = exports.validateResource = exports.ModuleEntryPoints = exports.dependencyFileNames = exports.manifestFileName = void 0;
4
4
  exports.manifestFileName = 'manifest.yml';
5
- exports.dependencyFileNames = [exports.manifestFileName, 'package.json', 'package-lock.json', 'yarn.lock'];
5
+ exports.dependencyFileNames = ['package.json', 'package-lock.json', 'yarn.lock'];
6
6
  exports.ModuleEntryPoints = ['view', 'edit', 'create', 'contextConfig'];
7
7
  const validateResource = (resource) => {
8
8
  const { key, path } = resource;