-
-
Notifications
You must be signed in to change notification settings - Fork 173
2.0 RELEASE #1671
Copy link
Copy link
Closed
Labels
tracking issueThis is a tracking issueThis is a tracking issue
Milestone
Metadata
Metadata
Assignees
Labels
tracking issueThis is a tracking issueThis is a tracking issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
rules_js 2.x branch: https://github.com/aspect-build/rules_js/tree/2.x
FEATURES
npm_package_storetransitive_files depset (perf: reduce size of npm_package_store transitive_files depset #1594)RCs ARE OUT
These are ready to try,
https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-rc2
https://github.com/aspect-build/rules_cypress/releases/tag/v0.6.0-rc0
https://github.com/aspect-build/rules_esbuild/releases/tag/v0.21.0-rc1
https://github.com/aspect-build/rules_jasmine/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_jest/releases/tag/v0.22.0-rc0
https://github.com/aspect-build/rules_rollup/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_swc/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_ts/releases/tag/v3.0.0-rc0
https://github.com/aspect-build/rules_webpack/releases/tag/v0.16.0-rc0
BLOCKING TODOS (before 2.0 final)
PUNTED TO POST 2.0 RELEASE (non-breaking follow-ups)
lifecycle_hooksandpatches-like attributes do not contain entries that do not map to any npm packagesDOWNSTREAM RULE SET CHANGES
BREAKING CHANGES
User facing changes
npm_package
include_runfilestoFalseinnpm_package(refactor: default include_runfiles to False in npm_package #1567)npm_translate_lock
pkg(refactor: change default linked target name to 'pkg' #1684)warn_on_unqualified_tarball_urlfromnpm_translate_lock(refactor: remove unused warn_on_unqualified_tarball_url from npm_translate_lock #1568)package_jsonattribute fromnpm_translate_lock(refactor: remote deprecated package_json attribute from npm_translate_lock #1569)update_pnpm_lock_node_toolchain_prefixfromnpm_translate_lock(refactor: remove deprecated update_pnpm_lock_node_toolchain_prefix from npm_translate_lock #1574)pnpm_versionfromnpm_translate_lockbzlmod extension (refactor: remove pnpm_version from npm_translate_lock bzlmod extension #1576)npm_translate_lock(use_starlark_yaml_parser)(refactor: remove npm_translate_lock(use_starlark_yaml_parser) #1658)npm_import
run_lifecycle_hooksfromnpm_import(refactor: remove deprecated run_lifecycle_hooks from npm_import #1572)lifecycle_hooks_no_sandboxfromnpm_import(refactor: remove deprecated lifecycle_hooks_no_sandbox from npm_import #1573)js_filegroup => js_info_files
include_sourcesandinclude_transitive_declarationstojs_filegrouprule and gather_files_from_js_providers + gather_runfiles helpers (refactor: add include_sources and include_transitive_declarations to js_filegroup rules and gather_files_from_js_providers + gather_runfiles helpers #1585)js_filegrouptojs_info_files(refactor: rename js_filegroup to js_info_files #1615)declarations => types
declarationstotypesin JsInfo & throughout rules_js (refactor: rename declarations to types in JsInfo & throughout rules_js #1619)WORKSPACE
rules_js_register_toolchainsWORKSPACE function (refactor: move toolchain registration call to new rules_js_register_toolchains WORKSPACE function #1593)//npm:npm_import.bzl(refactor: removed deprecated //npm:npm_import.bzl #1570)Dependencies
rules_nodejsversion to 6.1.0 (refactor: set minimum rules_nodejs version to 6.1.0 #1579)aspect_bazel_libto 2.7.1 (refactor: set minimum aspect_bazel_lib to 2.6.1 #1580)Drop Bazel 5 support
js_image_layerbazel 5 legacy symlink detection (refactor: remove js_image_layer bazel5 legacy symlink detection #1610)Other
expand_templaterule since we now have a better alternative in bazel-lib (refactor: remove expand_template rule since we now have a better alternative in bazel-lib #1587)update_pnpm_lockdefault value (refactor: remove legacy update_pnpm_lock default value #1624)NpmPackageStoreInfoproviders ingather_files_from_js_info(refactor: don't gather files from NpmPackageStoreInfo providers in gather_files_from_js_info #1663)include_sourcesandinclude_transitive_typesattributes tojs_binary,js_testandjs_run_binaryInternal changes that are BREAKING for downstream rule sets but not for end users
js_binary
unresolved_symlinks_enabledattribute ofjs_binarymandatory (refactor: make internal unresolved_symlinks_enabled attribute of js_binary mandatory #1571)NpmPackageInfo
directoryattribute ofNpmPackageInfotosrc(refactor: rename directory attribute of NpmPackageInfo to src #1575)NpmPackageStoreInfo
src_directoryfromNpmPackageStoreInfo(refactor: remove unused src_directory from NpmPackageStoreInfo #1566)JsInfo
JsInfonpm_package_store_depstonpm_package_store_infos(refactor: rename JsInfo npm_package_store_deps to npm_package_store_infos #1620)include_npm_linked_packagestoinclude_npm_sources&& JsInfonpm_linked_packagestonpm_sources(refactor: rename include_npm_linked_packages to include_npm_sources && JsInfo npm_linked_packages to npm_sources #1623)declarationstotypesin JsInfo & throughout rules_js (refactor: rename declarations to types in JsInfo & throughout rules_js #1619)JsInfofor readability (refactor: re-order fields in JsInfo for readability #1648)Other
gather_files_from_js_providerstogather_files_from_js_info(refactor: renamed gather_files_from_js_providers to gather_files_from_js_info #1617)gather_files_from_js_infotogather_files_from_js_infos(refactor: rename gather_files_from_js_info to gather_files_from_js_infos #1665)utils.home_directoryand useget_home_directoryfrom Aspect bazel-lib utils instead (refactor: remove utils.home_directory and use get_home_directory from Aspect bazel-lib utils instead #1606)//js:enable_runfilesand use@aspect_bazel_lib//lib:enable_runfilesinstead (refactor: remove //js:enable_runfiles and use @aspect_bazel_lib//lib:enable_runfiles instead #1605).shextension fromjs_binary,mergerandjs_image_layerlaunchers (fix: drop .sh extension from js_binary, merger and js_image_layer launchers #1586)NpmLinkedPackageInfoprovider and corresponding unusednpm_linked_packagesfrom JsInfo; rename load bearingnpm_linked_package_filestonpm_linked_packages(refactor: remove unused NpmLinkedPackageInfo provider and corresponding unused npm_linked_packages from JsInfo; rename load bearing npm_linked_package_files to npm_linked_packages #1588)//js/private:enable_runfilesand//js/private:experimental_allow_unresolved_symlinks(refactor: remove deprecated //js/private:enable_runfiles and //js/private:experimental_allow_unresolved_symlinks #1577)JS_LIBRARY_DATA_ATTRandDOWNSTREAM_LINKED_NPM_DEPS_DOCSTRINGfrom js_helpersPlaces to update when release is out