jsii 5.9.9-dev.4 → 5.9.9

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/lib/assembler.js CHANGED
@@ -183,7 +183,7 @@ class Assembler {
183
183
  jsiiVersion,
184
184
  bin: this.projectInfo.bin,
185
185
  fingerprint: '<TBD>',
186
- usedFeatures: _assemblyFeatures(this.usedFeatures), // might be appended later
186
+ usedFeatures: this.usedFeatures.size > 0 ? Array.from(this.usedFeatures) : undefined,
187
187
  };
188
188
  if (this.deprecatedRemover) {
189
189
  this._diagnostics.push(...this.deprecatedRemover.removeFrom(assembly));
@@ -203,13 +203,6 @@ class Assembler {
203
203
  }
204
204
  const validator = new validator_1.Validator(this.projectInfo, assembly);
205
205
  const validationResult = validator.emit();
206
- // Inject detected features
207
- if (validationResult.usedFeatures) {
208
- for (const item of validationResult.usedFeatures) {
209
- this.usedFeatures.add(item);
210
- }
211
- assembly.usedFeatures = _assemblyFeatures(this.usedFeatures);
212
- }
213
206
  if (!validationResult.emitSkipped) {
214
207
  const zipped = (0, spec_1.writeAssembly)(this.projectInfo.projectRoot, _fingerprint(assembly), {
215
208
  compress: this.compressAssembly ?? false,
@@ -225,9 +218,6 @@ class Assembler {
225
218
  finally {
226
219
  this._afterEmit();
227
220
  }
228
- function _assemblyFeatures(usedFeatures) {
229
- return usedFeatures.size > 0 ? Array.from(usedFeatures).sort() : undefined;
230
- }
231
221
  function _loadReadme() {
232
222
  // Search for `README.md` in a case-insensitive way
233
223
  const fileName = fs