closure-rs 0.0.1-alpha.0 → 0.0.1-alpha.2

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.
@@ -13,8 +13,10 @@ Generated by `python3 scripts/third_party_licenses.py` from `Cargo.lock`; do not
13
13
  | hashbrown | 0.17.1 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT` |
14
14
  | indexmap | 2.14.0 | Apache-2.0 OR MIT | `LICENSE-APACHE`, `LICENSE-MIT` |
15
15
  | itoa | 1.0.18 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT` |
16
+ | libmimalloc-sys | 0.1.49 | MIT | `LICENSE.txt`, `c_src/mimalloc/v2/LICENSE` |
16
17
  | libz-sys | 1.1.29 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT`, `src/zlib/LICENSE` |
17
18
  | memchr | 2.8.3 | Unlicense OR MIT | `COPYING`, `LICENSE-MIT`, `UNLICENSE` |
19
+ | mimalloc | 0.1.52 | MIT | `LICENSE.txt` |
18
20
  | num-bigint | 0.4.8 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT` |
19
21
  | num-integer | 0.1.47 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT` |
20
22
  | num-traits | 0.2.19 | MIT OR Apache-2.0 | `LICENSE-APACHE`, `LICENSE-MIT` |
@@ -981,6 +983,67 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
981
983
  DEALINGS IN THE SOFTWARE.
982
984
  ```
983
985
 
986
+ ## libmimalloc-sys 0.1.49
987
+
988
+ License: MIT.
989
+ Source: <https://crates.io/crates/libmimalloc-sys/0.1.49>.
990
+
991
+ ### `LICENSE.txt`
992
+
993
+ ```text
994
+ Copyright 2019 Octavian Oncescu
995
+
996
+ Permission is hereby granted, free of charge, to any
997
+ person obtaining a copy of this software and associated
998
+ documentation files (the "Software"), to deal in the
999
+ Software without restriction, including without
1000
+ limitation the rights to use, copy, modify, merge,
1001
+ publish, distribute, sublicense, and/or sell copies of
1002
+ the Software, and to permit persons to whom the Software
1003
+ is furnished to do so, subject to the following
1004
+ conditions:
1005
+
1006
+ The above copyright notice and this permission notice
1007
+ shall be included in all copies or substantial portions
1008
+ of the Software.
1009
+
1010
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1011
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
1012
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
1013
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
1014
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1015
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1016
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1017
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1018
+ DEALINGS IN THE SOFTWARE.
1019
+ ```
1020
+
1021
+ ### `c_src/mimalloc/v2/LICENSE`: mimalloc (bundled C sources, Microsoft Corporation)
1022
+
1023
+ ```text
1024
+ MIT License
1025
+
1026
+ Copyright (c) 2018-2025 Microsoft Corporation, Daan Leijen
1027
+
1028
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1029
+ of this software and associated documentation files (the "Software"), to deal
1030
+ in the Software without restriction, including without limitation the rights
1031
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1032
+ copies of the Software, and to permit persons to whom the Software is
1033
+ furnished to do so, subject to the following conditions:
1034
+
1035
+ The above copyright notice and this permission notice shall be included in all
1036
+ copies or substantial portions of the Software.
1037
+
1038
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1039
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1040
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1041
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1042
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1043
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1044
+ SOFTWARE.
1045
+ ```
1046
+
984
1047
  ## libz-sys 1.1.29
985
1048
 
986
1049
  License: MIT OR Apache-2.0.
@@ -1065,6 +1128,15 @@ Identical to `LICENSE-MIT` of aho-corasick 1.1.5 above.
1065
1128
 
1066
1129
  Identical to `UNLICENSE` of aho-corasick 1.1.5 above.
1067
1130
 
1131
+ ## mimalloc 0.1.52
1132
+
1133
+ License: MIT.
1134
+ Source: <https://crates.io/crates/mimalloc/0.1.52>.
1135
+
1136
+ ### `LICENSE.txt`
1137
+
1138
+ Identical to `LICENSE.txt` of libmimalloc-sys 0.1.49 above.
1139
+
1068
1140
  ## num-bigint 0.4.8
1069
1141
 
1070
1142
  License: MIT OR Apache-2.0.
@@ -37,6 +37,7 @@ crates/cli/tests/command_line_runner_test.rs 59c1e91738bdc9a4 Apache-2.0 closure
37
37
  crates/cli/tests/common/mod.rs 322fc2ba37b98b96 Apache-2.0 -
38
38
  crates/cli/tests/compiler_define_test.rs bb58833d12a9d166 Apache-2.0 closure:test/com/google/javascript/jscomp/CompilerTest.java
39
39
  crates/cli/tests/exception_golden_test.rs 322fc2ba37b98b96 Apache-2.0 -
40
+ crates/cli/tests/fuzz_regression_test.rs 322fc2ba37b98b96 Apache-2.0 -
40
41
  crates/cli/tests/glob_golden_test.rs 322fc2ba37b98b96 Apache-2.0 -
41
42
  crates/cli/tests/java_io_test.rs 322fc2ba37b98b96 Apache-2.0 -
42
43
  crates/cli/tests/json_golden_test.rs 322fc2ba37b98b96 Apache-2.0 -
@@ -395,6 +396,7 @@ crates/jscomp/src/optimize_parameters.rs 4575f11beb0adf22 Apache-2.0 closure:src
395
396
  crates/jscomp/src/optimize_returns.rs 51d2a3fa86a63927 Apache-2.0 closure:src/com/google/javascript/jscomp/OptimizeReturns.java
396
397
  crates/jscomp/src/optional_chain_rewriter.rs 19e677711b634916 Apache-2.0 closure:src/com/google/javascript/jscomp/OptionalChainRewriter.java
397
398
  crates/jscomp/src/output_charset_encoder.rs 2cf4802589415210 Apache-2.0 closure:src/com/google/javascript/jscomp/OutputCharsetEncoder.java
399
+ crates/jscomp/src/parallel_parse.rs c5f08a5e884df992 Apache-2.0 closure:src/com/google/javascript/jscomp/CompilerInput.java
398
400
  crates/jscomp/src/pass_config.rs d4e9698248acdcf5 Apache-2.0 closure:src/com/google/javascript/jscomp/PassConfig.java
399
401
  crates/jscomp/src/pass_factory.rs c734b7b421cfd73a Apache-2.0 closure:src/com/google/javascript/jscomp/PassFactory.java
400
402
  crates/jscomp/src/pass_list_builder.rs ed79775ec8fbfefb Apache-2.0 closure:src/com/google/javascript/jscomp/PassListBuilder.java
@@ -523,7 +525,7 @@ crates/jscomp/src/strip_code.rs b13d32f76191c4dd Apache-2.0 closure:src/com/goog
523
525
  crates/jscomp/src/substitute_es6_syntax.rs e6f3900b9db88de1 Apache-2.0 closure:src/com/google/javascript/jscomp/SubstituteEs6Syntax.java; closure:src/com/google/javascript/jscomp/NodeTraversal.java
524
526
  crates/jscomp/src/suppress_doc_warnings_guard.rs d842324effb2c7ef Apache-2.0 closure:src/com/google/javascript/jscomp/SuppressDocWarningsGuard.java
525
527
  crates/jscomp/src/symbol_table.rs 322fc2ba37b98b96 Apache-2.0 -
526
- crates/jscomp/src/syntactic_scope_creator.rs 0d1b796cc0f69852 Apache-2.0 closure:src/com/google/javascript/jscomp/SyntacticScopeCreator.java
528
+ crates/jscomp/src/syntactic_scope_creator.rs ac9d7c96a58d0802 Apache-2.0 closure:src/com/google/javascript/jscomp/SyntacticScopeCreator.java; closure:src/com/google/javascript/jscomp/AbstractCompiler.java
527
529
  crates/jscomp/src/synthesize_explicit_constructors.rs debb201b121a4407 Apache-2.0 closure:src/com/google/javascript/jscomp/SynthesizeExplicitConstructors.java
528
530
  crates/jscomp/src/template_ast_matcher.rs d7ca1ae3c4e2c149 Apache-2.0 closure:src/com/google/javascript/jscomp/TemplateAstMatcher.java
529
531
  crates/jscomp/src/testing/code_sub_tree.rs 0ed289cc0ad870b8 Apache-2.0 closure:src/com/google/javascript/jscomp/testing/CodeSubTree.java
@@ -556,7 +558,7 @@ crates/jscomp/src/typed_scope_creator_rhino.rs 2aa3d360a6fac3fc (MPL-1.1 OR GPL-
556
558
  crates/jscomp/src/typed_var.rs c0541b2c775dfc02 Apache-2.0 closure:src/com/google/javascript/jscomp/TypedVar.java; closure:src/com/google/javascript/jscomp/AbstractVar.java
557
559
  crates/jscomp/src/unique_id_supplier.rs 0dcb0d260ddb8fcb Apache-2.0 closure:src/com/google/javascript/jscomp/UniqueIdSupplier.java
558
560
  crates/jscomp/src/validity_check.rs 8e44fbc8216a6956 Apache-2.0 closure:src/com/google/javascript/jscomp/ValidityCheck.java; closure:src/com/google/javascript/jscomp/NodeTraversal.java
559
- crates/jscomp/src/var.rs a7afbfeaea54475e Apache-2.0 closure:src/com/google/javascript/jscomp/Var.java
561
+ crates/jscomp/src/var.rs 2fd277b5bda75704 Apache-2.0 closure:src/com/google/javascript/jscomp/Var.java; closure:src/com/google/javascript/jscomp/AbstractVar.java
560
562
  crates/jscomp/src/var_cfg_hash.rs 322fc2ba37b98b96 Apache-2.0 -
561
563
  crates/jscomp/src/var_check.rs 8da65700d58d8f60 Apache-2.0 closure:src/com/google/javascript/jscomp/VarCheck.java
562
564
  crates/jscomp/src/variable_map.rs 5a0c09eb9ed501ee Apache-2.0 closure:src/com/google/javascript/jscomp/VariableMap.java; guava:com/google/common/collect/JdkBackedImmutableBiMap.java; guava:com/google/common/collect/ImmutableMap.java; guava:com/google/common/collect/JdkBackedImmutableMap.java; guava:com/google/common/collect/Hashing.java
@@ -1040,6 +1042,7 @@ crates/rhino/src/dtoa/d_to_a.rs e331338809f00695 (MPL-1.1 OR GPL-2.0-or-later) A
1040
1042
  crates/rhino/src/dtoa/d_to_a_jdk.rs aa0a707523412583 GPL-2.0-only WITH Classpath-exception-2.0 jdk:java.base/java/math/BigInteger.java
1041
1043
  crates/rhino/src/dtoa/mod.rs 322fc2ba37b98b96 Apache-2.0 -
1042
1044
  crates/rhino/src/error_reporter.rs 9d522993a6e78909 (MPL-1.1 OR GPL-2.0-or-later) closure:src/com/google/javascript/rhino/ErrorReporter.java
1045
+ crates/rhino/src/fast_hash.rs 322fc2ba37b98b96 Apache-2.0 -
1043
1046
  crates/rhino/src/hamt_pmap.rs 2fe9597ced053a03 (MPL-1.1 OR GPL-2.0-or-later) closure:src/com/google/javascript/rhino/HamtPMap.java; closure:src/com/google/javascript/rhino/PMap.java
1044
1047
  crates/rhino/src/input_id.rs 673fc8fb81a7e90b (MPL-1.1 OR GPL-2.0-or-later) closure:src/com/google/javascript/rhino/InputId.java
1045
1048
  crates/rhino/src/ir.rs 74438a7684c072b8 (MPL-1.1 OR GPL-2.0-or-later) closure:src/com/google/javascript/rhino/IR.java
@@ -1309,7 +1312,7 @@ crates/testing/src/unit_recorder.rs a5264e7469d2cb8d Apache-2.0 own:UnitRecorder
1309
1312
  crates/testing/src/unit_test_utils.rs a72f34ee1aa52ac8 Apache-2.0 closure:src/com/google/javascript/jscomp/testing/TestExternsBuilder.java; closure:test/com/google/javascript/jscomp/UnitTestUtils.java
1310
1313
  crates/testing/src/value.rs 322fc2ba37b98b96 Apache-2.0 -
1311
1314
  crates/testing/tests/access_controls_records.rs afb9e4e6a8c42f31 Apache-2.0 own:oracle/replay/src/com/google/javascript/jscomp/ReplayMain.java; closure:test/com/google/javascript/jscomp/CheckAccessControlsTest.java; closure:test/com/google/javascript/jscomp/CheckAccessControlsOldSyntaxTest.java; closure:test/com/google/javascript/jscomp/ImplicitNullabilityCheckTest.java; closure:test/com/google/javascript/jscomp/lint/CheckNestedNamesTest.java; closure:test/com/google/javascript/jscomp/lint/CheckArrayWithGoogObjectTest.java
1312
- crates/testing/tests/alpha_integration_records.rs 205944c4d803c7aa Apache-2.0 own:oracle/replay/src/com/google/javascript/jscomp/ReplayMain.java; closure:test/com/google/javascript/jscomp/ClosureUnawarePhaseOptimizerTest.java; closure:test/com/google/javascript/jscomp/ProcessClosureProvidesAndRequiresTest.java; closure:test/com/google/javascript/jscomp/integration/ClosurePrimitivesIntegrationTest.java; closure:test/com/google/javascript/jscomp/MultiPassTest.java; closure:test/com/google/javascript/jscomp/integration/IntegrationTest.java; closure:test/com/google/javascript/jscomp/integration/CommonJSIntegrationTest.java
1315
+ crates/testing/tests/alpha_integration_records.rs d6f209fe12d47b30 Apache-2.0 own:oracle/replay/src/com/google/javascript/jscomp/ReplayMain.java; closure:test/com/google/javascript/jscomp/integration/IntegrationTest.java; closure:test/com/google/javascript/jscomp/integration/AdvancedOptimizationsIntegrationTest.java; closure:test/com/google/javascript/jscomp/integration/ClosureIntegrationTest.java; closure:test/com/google/javascript/jscomp/integration/GetterAndSetterIntegrationTest.java; closure:test/com/google/javascript/jscomp/integration/ClosurePrimitivesIntegrationTest.java; closure:test/com/google/javascript/jscomp/MultiPassTest.java; closure:test/com/google/javascript/jscomp/TranspileAndOptimizeClosureUnawareTest.java; closure:test/com/google/javascript/jscomp/integration/ClosureUnawareCodeIntegrationTest.java; closure:test/com/google/javascript/jscomp/ClosureUnawarePhaseOptimizerTest.java; closure:test/com/google/javascript/jscomp/ProcessClosureProvidesAndRequiresTest.java; closure:test/com/google/javascript/jscomp/integration/CommonJSIntegrationTest.java
1313
1316
  crates/testing/tests/check_goog_js_import_test.rs 71079790fbb43f4e Apache-2.0 closure:test/com/google/javascript/jscomp/CheckGoogJsImportTest.java; own:oracle/replay/src/com/google/javascript/jscomp/ReplayDsl.java
1314
1317
  crates/testing/tests/closure_optimizations_records.rs 243e5cf4a7ef5dd1 Apache-2.0 own:oracle/replay/src/com/google/javascript/jscomp/ReplayMain.java; closure:test/com/google/javascript/jscomp/ReplaceTogglesTest.java; closure:test/com/google/javascript/jscomp/ClosureOptimizePrimitivesTest.java; closure:test/com/google/javascript/jscomp/AngularPassTest.java; closure:test/com/google/javascript/jscomp/GenerateExportsTest.java; closure:test/com/google/javascript/jscomp/ReplaceIdGeneratorsTest.java; closure:test/com/google/javascript/jscomp/ClosureCodeRemovalTest.java; closure:test/com/google/javascript/jscomp/ReplaceCssNamesTest.java; closure:test/com/google/javascript/jscomp/ProcessDefinesTest.java
1315
1318
  crates/testing/tests/closure_rewrite_module_records.rs 8a7b69628265810e Apache-2.0 own:oracle/replay/src/com/google/javascript/jscomp/ReplayMain.java; closure:test/com/google/javascript/jscomp/CheckGoogJsImportTest.java; closure:test/com/google/javascript/jscomp/RewriteGoogJsImportsTest.java; closure:test/com/google/javascript/jscomp/MissingProvideTest.java; closure:test/com/google/javascript/jscomp/CheckMissingRequiresTest.java; closure:test/com/google/javascript/jscomp/ClosureRewriteModuleTest.java
package/NOTICE CHANGED
@@ -216,7 +216,9 @@ Binary distributions
216
216
 
217
217
  The closure-rs executable also contains Rust crates from crates.io (Cargo.lock) and the Rust
218
218
  standard library, each under its own license (MIT, Apache-2.0, Unlicense, Zlib), which the
219
- binary distribution reproduces with the files above: LICENSES/THIRD_PARTY_RUST.md
220
- (THIRD_PARTY_RUST.md in the npm platform packages) lists every linked crate with its version,
219
+ binary distribution reproduces with the files above: LICENSES/THIRD_PARTY_RUST.md (also in
220
+ the npm package) lists every linked crate with its version,
221
221
  license and full license texts, including zlib's for the copy libz-sys builds from source when
222
- no system zlib is used. scripts/third_party_licenses.py writes it from Cargo.lock.
222
+ no system zlib is used, and the MIT notice of Microsoft's mimalloc allocator, whose C sources
223
+ libmimalloc-sys compiles into the binary. scripts/third_party_licenses.py writes it from
224
+ Cargo.lock.
package/README.md CHANGED
@@ -5,8 +5,8 @@ A Rust port of the [Closure Compiler](https://github.com/google/closure-compiler
5
5
  [`google-closure-compiler`](https://www.npmjs.com/package/google-closure-compiler) package
6
6
  (matched against version 20261005.0.0). Not affiliated with or published by Google.
7
7
 
8
- The compiler is a native binary. npm installs the one for your system from an optional
9
- dependency (`closure-rs-linux-x64` or `closure-rs-win32-x64` for now); no Java is needed.
8
+ The compiler is a native binary. The package carries one per supported system (Linux x64 and
9
+ Windows x64 for now, under `bin/<platform>-<arch>/`) and runs the one for yours; no Java is needed.
10
10
 
11
11
  ## Switching from google-closure-compiler
12
12
 
@@ -14,7 +14,7 @@ Change only `package.json`:
14
14
 
15
15
  ```json
16
16
  "devDependencies": {
17
- "google-closure-compiler": "npm:closure-rs@0.0.1-alpha.0"
17
+ "google-closure-compiler": "npm:closure-rs@alpha"
18
18
  }
19
19
  ```
20
20
 
@@ -89,8 +89,9 @@ The wrapper runs, in this order:
89
89
 
90
90
  1. the file named by the environment variable `CLOSURE_RS_BINARY`, if set (for testing a local
91
91
  build);
92
- 2. `bin/closure-rs` from the optional package `closure-rs-<platform>-<arch>`;
93
- 3. `closure-rs` on `PATH`.
92
+ 2. the binary bundled in this package, `bin/<platform>-<arch>/closure-rs[.exe]`;
93
+ 3. `bin/closure-rs` from a separate package `closure-rs-<platform>-<arch>`, if installed;
94
+ 4. `closure-rs` on `PATH`.
94
95
 
95
96
  ### Java-only parts
96
97
 
Binary file
Binary file
package/index.d.cts CHANGED
@@ -390,14 +390,14 @@ export interface CompilerFlags {
390
390
  * File where the encoded parameters created by Production Instrumentation are mapped to their pre-encoded values. The %outname% placeholder will expand to the name of the output file that the source map corresponds to. Must be used in tandem with --instrument_for_coverage_option=PRODUCTION
391
391
  *
392
392
  * `--instrument_mapping_report`.
393
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
393
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
394
394
  */
395
395
  instrument_mapping_report?: string;
396
396
  /**
397
397
  * File where the encoded parameters created by Production Instrumentation are mapped to their pre-encoded values. The %outname% placeholder will expand to the name of the output file that the source map corresponds to. Must be used in tandem with --instrument_for_coverage_option=PRODUCTION
398
398
  *
399
399
  * `--instrument_mapping_report`.
400
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
400
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
401
401
  * Same flag as `instrument_mapping_report`.
402
402
  */
403
403
  instrumentMappingReport?: string;
@@ -786,14 +786,14 @@ export interface CompilerFlags {
786
786
  * Sets file to output in-progress typedAST format. DO NOT USE!
787
787
  *
788
788
  * `--typed_ast_output_file`. Hidden in --help.
789
- * Outside the closure-rs port scope (PORT_SPEC §2: usage says "DO NOT USE").
789
+ * Outside the closure-rs port scope (docs/PORTING.md §2: usage says "DO NOT USE").
790
790
  */
791
791
  typed_ast_output_file?: string;
792
792
  /**
793
793
  * Sets file to output in-progress typedAST format. DO NOT USE!
794
794
  *
795
795
  * `--typed_ast_output_file`. Hidden in --help.
796
- * Outside the closure-rs port scope (PORT_SPEC §2: usage says "DO NOT USE").
796
+ * Outside the closure-rs port scope (docs/PORTING.md §2: usage says "DO NOT USE").
797
797
  * Same flag as `typed_ast_output_file`.
798
798
  */
799
799
  typedAstOutputFile?: string;
@@ -888,14 +888,14 @@ export interface CompilerFlags {
888
888
  * Which version of Polymer is being used (1 or 2).
889
889
  *
890
890
  * `--polymer_version`. Category: Library and Framework Specific.
891
- * Outside the closure-rs port scope (PORT_SPEC §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
891
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
892
892
  */
893
893
  polymer_version?: IntFlag;
894
894
  /**
895
895
  * Which version of Polymer is being used (1 or 2).
896
896
  *
897
897
  * `--polymer_version`. Category: Library and Framework Specific.
898
- * Outside the closure-rs port scope (PORT_SPEC §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
898
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
899
899
  * Same flag as `polymer_version`.
900
900
  */
901
901
  polymerVersion?: IntFlag;
@@ -903,14 +903,14 @@ export interface CompilerFlags {
903
903
  * Enable Chrome-specific options for handling cr.* functions.
904
904
  *
905
905
  * `--chrome_pass`. Default: `false`. Hidden in --help.
906
- * Outside the closure-rs port scope (PORT_SPEC §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
906
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
907
907
  */
908
908
  chrome_pass?: BooleanFlag;
909
909
  /**
910
910
  * Enable Chrome-specific options for handling cr.* functions.
911
911
  *
912
912
  * `--chrome_pass`. Default: `false`. Hidden in --help.
913
- * Outside the closure-rs port scope (PORT_SPEC §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
913
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
914
914
  * Same flag as `chrome_pass`.
915
915
  */
916
916
  chromePass?: BooleanFlag;
@@ -918,14 +918,14 @@ export interface CompilerFlags {
918
918
  * Rewrite J2CL output to be compiler-friendly if enabled (ON or AUTO). Options:OFF, ON, AUTO(default)
919
919
  *
920
920
  * `--j2cl_pass`. Default: `AUTO`. Hidden in --help.
921
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
921
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
922
922
  */
923
923
  j2cl_pass?: string;
924
924
  /**
925
925
  * Rewrite J2CL output to be compiler-friendly if enabled (ON or AUTO). Options:OFF, ON, AUTO(default)
926
926
  *
927
927
  * `--j2cl_pass`. Default: `AUTO`. Hidden in --help.
928
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
928
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
929
929
  * Same flag as `j2cl_pass`.
930
930
  */
931
931
  j2clPass?: string;
@@ -934,7 +934,7 @@ export interface CompilerFlags {
934
934
  *
935
935
  * `--remove_j2cl_asserts`. Default: `true`. Hidden in --help.
936
936
  * Takes no value: pass null to emit the bare flag.
937
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
937
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
938
938
  */
939
939
  remove_j2cl_asserts?: null;
940
940
  /**
@@ -942,7 +942,7 @@ export interface CompilerFlags {
942
942
  *
943
943
  * `--remove_j2cl_asserts`. Default: `true`. Hidden in --help.
944
944
  * Takes no value: pass null to emit the bare flag.
945
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
945
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
946
946
  * Same flag as `remove_j2cl_asserts`.
947
947
  */
948
948
  removeJ2clAsserts?: null;
@@ -1350,14 +1350,14 @@ export interface CompilerFlags {
1350
1350
  * Enable code instrumentation to perform code coverage analysis. Options are: 1. NONE (default) 2. LINE - Instrument code by line. 3. BRANCH - Instrument code by branch. 4. PRODUCTION - Function Instrumentation on compiled JS code.
1351
1351
  *
1352
1352
  * `--instrument_for_coverage_option`. Default: `NONE`.
1353
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1353
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1354
1354
  */
1355
1355
  instrument_for_coverage_option?: string;
1356
1356
  /**
1357
1357
  * Enable code instrumentation to perform code coverage analysis. Options are: 1. NONE (default) 2. LINE - Instrument code by line. 3. BRANCH - Instrument code by branch. 4. PRODUCTION - Function Instrumentation on compiled JS code.
1358
1358
  *
1359
1359
  * `--instrument_for_coverage_option`. Default: `NONE`.
1360
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1360
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1361
1361
  * Same flag as `instrument_for_coverage_option`.
1362
1362
  */
1363
1363
  instrumentForCoverageOption?: string;
@@ -1365,14 +1365,14 @@ export interface CompilerFlags {
1365
1365
  * Name of the global array used by production instrumentation. The array name should be declared as an extern so it is not renamed by the compiler. A function that parses the global array should also be included. This flag is to be used in tandem with --instrument_code=PRODUCTION
1366
1366
  *
1367
1367
  * `--production_instrumentation_array_name`.
1368
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1368
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1369
1369
  */
1370
1370
  production_instrumentation_array_name?: string;
1371
1371
  /**
1372
1372
  * Name of the global array used by production instrumentation. The array name should be declared as an extern so it is not renamed by the compiler. A function that parses the global array should also be included. This flag is to be used in tandem with --instrument_code=PRODUCTION
1373
1373
  *
1374
1374
  * `--production_instrumentation_array_name`.
1375
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1375
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1376
1376
  * Same flag as `production_instrumentation_array_name`.
1377
1377
  */
1378
1378
  productionInstrumentationArrayName?: string;
package/index.d.ts CHANGED
@@ -390,14 +390,14 @@ export interface CompilerFlags {
390
390
  * File where the encoded parameters created by Production Instrumentation are mapped to their pre-encoded values. The %outname% placeholder will expand to the name of the output file that the source map corresponds to. Must be used in tandem with --instrument_for_coverage_option=PRODUCTION
391
391
  *
392
392
  * `--instrument_mapping_report`.
393
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
393
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
394
394
  */
395
395
  instrument_mapping_report?: string;
396
396
  /**
397
397
  * File where the encoded parameters created by Production Instrumentation are mapped to their pre-encoded values. The %outname% placeholder will expand to the name of the output file that the source map corresponds to. Must be used in tandem with --instrument_for_coverage_option=PRODUCTION
398
398
  *
399
399
  * `--instrument_mapping_report`.
400
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
400
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
401
401
  * Same flag as `instrument_mapping_report`.
402
402
  */
403
403
  instrumentMappingReport?: string;
@@ -786,14 +786,14 @@ export interface CompilerFlags {
786
786
  * Sets file to output in-progress typedAST format. DO NOT USE!
787
787
  *
788
788
  * `--typed_ast_output_file`. Hidden in --help.
789
- * Outside the closure-rs port scope (PORT_SPEC §2: usage says "DO NOT USE").
789
+ * Outside the closure-rs port scope (docs/PORTING.md §2: usage says "DO NOT USE").
790
790
  */
791
791
  typed_ast_output_file?: string;
792
792
  /**
793
793
  * Sets file to output in-progress typedAST format. DO NOT USE!
794
794
  *
795
795
  * `--typed_ast_output_file`. Hidden in --help.
796
- * Outside the closure-rs port scope (PORT_SPEC §2: usage says "DO NOT USE").
796
+ * Outside the closure-rs port scope (docs/PORTING.md §2: usage says "DO NOT USE").
797
797
  * Same flag as `typed_ast_output_file`.
798
798
  */
799
799
  typedAstOutputFile?: string;
@@ -888,14 +888,14 @@ export interface CompilerFlags {
888
888
  * Which version of Polymer is being used (1 or 2).
889
889
  *
890
890
  * `--polymer_version`. Category: Library and Framework Specific.
891
- * Outside the closure-rs port scope (PORT_SPEC §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
891
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
892
892
  */
893
893
  polymer_version?: IntFlag;
894
894
  /**
895
895
  * Which version of Polymer is being used (1 or 2).
896
896
  *
897
897
  * `--polymer_version`. Category: Library and Framework Specific.
898
- * Outside the closure-rs port scope (PORT_SPEC §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
898
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Polymer area; configures the Polymer passes (PolymerPass and friends)).
899
899
  * Same flag as `polymer_version`.
900
900
  */
901
901
  polymerVersion?: IntFlag;
@@ -903,14 +903,14 @@ export interface CompilerFlags {
903
903
  * Enable Chrome-specific options for handling cr.* functions.
904
904
  *
905
905
  * `--chrome_pass`. Default: `false`. Hidden in --help.
906
- * Outside the closure-rs port scope (PORT_SPEC §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
906
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
907
907
  */
908
908
  chrome_pass?: BooleanFlag;
909
909
  /**
910
910
  * Enable Chrome-specific options for handling cr.* functions.
911
911
  *
912
912
  * `--chrome_pass`. Default: `false`. Hidden in --help.
913
- * Outside the closure-rs port scope (PORT_SPEC §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
913
+ * Outside the closure-rs port scope (docs/PORTING.md §2: Chrome area; configures the Chrome-specific passes (ChromePass)).
914
914
  * Same flag as `chrome_pass`.
915
915
  */
916
916
  chromePass?: BooleanFlag;
@@ -918,14 +918,14 @@ export interface CompilerFlags {
918
918
  * Rewrite J2CL output to be compiler-friendly if enabled (ON or AUTO). Options:OFF, ON, AUTO(default)
919
919
  *
920
920
  * `--j2cl_pass`. Default: `AUTO`. Hidden in --help.
921
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
921
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
922
922
  */
923
923
  j2cl_pass?: string;
924
924
  /**
925
925
  * Rewrite J2CL output to be compiler-friendly if enabled (ON or AUTO). Options:OFF, ON, AUTO(default)
926
926
  *
927
927
  * `--j2cl_pass`. Default: `AUTO`. Hidden in --help.
928
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
928
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
929
929
  * Same flag as `j2cl_pass`.
930
930
  */
931
931
  j2clPass?: string;
@@ -934,7 +934,7 @@ export interface CompilerFlags {
934
934
  *
935
935
  * `--remove_j2cl_asserts`. Default: `true`. Hidden in --help.
936
936
  * Takes no value: pass null to emit the bare flag.
937
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
937
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
938
938
  */
939
939
  remove_j2cl_asserts?: null;
940
940
  /**
@@ -942,7 +942,7 @@ export interface CompilerFlags {
942
942
  *
943
943
  * `--remove_j2cl_asserts`. Default: `true`. Hidden in --help.
944
944
  * Takes no value: pass null to emit the bare flag.
945
- * Outside the closure-rs port scope (PORT_SPEC §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
945
+ * Outside the closure-rs port scope (docs/PORTING.md §2: J2CL area; configures the J2CL passes (J2clPass, J2clAssertRemovalPass, ...)).
946
946
  * Same flag as `remove_j2cl_asserts`.
947
947
  */
948
948
  removeJ2clAsserts?: null;
@@ -1350,14 +1350,14 @@ export interface CompilerFlags {
1350
1350
  * Enable code instrumentation to perform code coverage analysis. Options are: 1. NONE (default) 2. LINE - Instrument code by line. 3. BRANCH - Instrument code by branch. 4. PRODUCTION - Function Instrumentation on compiled JS code.
1351
1351
  *
1352
1352
  * `--instrument_for_coverage_option`. Default: `NONE`.
1353
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1353
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1354
1354
  */
1355
1355
  instrument_for_coverage_option?: string;
1356
1356
  /**
1357
1357
  * Enable code instrumentation to perform code coverage analysis. Options are: 1. NONE (default) 2. LINE - Instrument code by line. 3. BRANCH - Instrument code by branch. 4. PRODUCTION - Function Instrumentation on compiled JS code.
1358
1358
  *
1359
1359
  * `--instrument_for_coverage_option`. Default: `NONE`.
1360
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1360
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1361
1361
  * Same flag as `instrument_for_coverage_option`.
1362
1362
  */
1363
1363
  instrumentForCoverageOption?: string;
@@ -1365,14 +1365,14 @@ export interface CompilerFlags {
1365
1365
  * Name of the global array used by production instrumentation. The array name should be declared as an extern so it is not renamed by the compiler. A function that parses the global array should also be included. This flag is to be used in tandem with --instrument_code=PRODUCTION
1366
1366
  *
1367
1367
  * `--production_instrumentation_array_name`.
1368
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1368
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1369
1369
  */
1370
1370
  production_instrumentation_array_name?: string;
1371
1371
  /**
1372
1372
  * Name of the global array used by production instrumentation. The array name should be declared as an extern so it is not renamed by the compiler. A function that parses the global array should also be included. This flag is to be used in tandem with --instrument_code=PRODUCTION
1373
1373
  *
1374
1374
  * `--production_instrumentation_array_name`.
1375
- * Outside the closure-rs port scope (PORT_SPEC §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1375
+ * Outside the closure-rs port scope (docs/PORTING.md §2: instrumentation area; configures code instrumentation (jscomp/instrumentation/: CoverageInstrumentationPass, ProductionCoverageInstrumentationCallback)).
1376
1376
  * Same flag as `production_instrumentation_array_name`.
1377
1377
  */
1378
1378
  productionInstrumentationArrayName?: string;
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "closure-rs",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "Rust port of the Closure Compiler CLI. Not affiliated with or published by Google.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Smrtnyk/closure-rs.git",
8
+ "directory": "npm/closure-rs"
9
+ },
10
+ "homepage": "https://github.com/Smrtnyk/closure-rs#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/Smrtnyk/closure-rs#bugs-and-issues"
13
+ },
5
14
  "license": "Apache-2.0 AND (MPL-1.1 OR GPL-2.0-or-later) AND GPL-2.0-only WITH Classpath-exception-2.0 AND BSD-3-Clause AND MIT AND Unicode-DFS-2016 AND dtoa",
6
15
  "type": "module",
7
16
  "main": "index.js",