@minecraft/core-build-tasks 4.0.0 → 4.1.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.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@minecraft/core-build-tasks",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 13 Mar 2025 18:35:11 GMT",
5
+ "date": "Mon, 14 Apr 2025 21:55:49 GMT",
6
+ "version": "4.1.0",
7
+ "tag": "@minecraft/core-build-tasks_v4.1.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "mike.demone@skyboxlabs.com",
12
+ "package": "@minecraft/core-build-tasks",
13
+ "commit": "7531dce176aacb5148e560e23fc24e133ea243a9",
14
+ "comment": "Bundle tasks parameters can now take in dropLabels to strip out certain labelled statements."
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 13 Mar 2025 18:35:25 GMT",
6
21
  "version": "4.0.0",
7
22
  "tag": "@minecraft/core-build-tasks_v4.0.0",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @minecraft/core-build-tasks
2
2
 
3
- <!-- This log was last generated on Thu, 13 Mar 2025 18:35:11 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Mon, 14 Apr 2025 21:55:49 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 4.1.0
8
+
9
+ Mon, 14 Apr 2025 21:55:49 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Bundle tasks parameters can now take in dropLabels to strip out certain labelled statements. (mike.demone@skyboxlabs.com)
14
+
7
15
  ## 4.0.0
8
16
 
9
- Thu, 13 Mar 2025 18:35:11 GMT
17
+ Thu, 13 Mar 2025 18:35:25 GMT
10
18
 
11
19
  ### Major changes
12
20
 
package/lib/index.js CHANGED
@@ -36706,7 +36706,8 @@ function bundleTask(options) {
36706
36706
  outfile: options.outfile,
36707
36707
  sourcemap: isRequiredToLinkJs ? "external" : options.sourcemap,
36708
36708
  external: options.external,
36709
- write: !isRequiredToMakeChanges
36709
+ write: !isRequiredToMakeChanges,
36710
+ dropLabels: options.dropLabels
36710
36711
  });
36711
36712
  if (buildResult.errors.length === 0) {
36712
36713
  if (isRequiredToMakeChanges) {
@@ -13,6 +13,8 @@ export type BundleTaskParameters = {
13
13
  sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
14
14
  /** The output path for the source map file. Ignored if sourcemap is false or 'inline'. */
15
15
  outputSourcemapPath?: string;
16
+ /** Strip out statements with these labels. Documentation: https://esbuild.github.io/api/#drop-labels */
17
+ dropLabels?: string[];
16
18
  };
17
19
  export type PostProcessOutputFilesResult = {
18
20
  sourceMapDirectory: string;
package/lib-cjs/index.js CHANGED
@@ -36733,7 +36733,8 @@ function bundleTask(options) {
36733
36733
  outfile: options.outfile,
36734
36734
  sourcemap: isRequiredToLinkJs ? "external" : options.sourcemap,
36735
36735
  external: options.external,
36736
- write: !isRequiredToMakeChanges
36736
+ write: !isRequiredToMakeChanges,
36737
+ dropLabels: options.dropLabels
36737
36738
  });
36738
36739
  if (buildResult.errors.length === 0) {
36739
36740
  if (isRequiredToMakeChanges) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/core-build-tasks",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Common build tasks used for minecraft-scripting-libraries",
5
5
  "exports": {
6
6
  "import": "./lib/index.js",