From 1689fa185f9006dba198c079d848be18dceec38c Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 22 Dec 2020 15:12:26 -0800 Subject: [PATCH] chore(release): 3.0.0 --- CHANGELOG.md | 90 +++++++++++++++++++ docs/install.md | 4 +- e2e/bazel_managed_deps/WORKSPACE | 4 +- e2e/concatjs_devserver/WORKSPACE | 4 +- e2e/coverage/WORKSPACE | 4 +- e2e/fine_grained_symlinks/WORKSPACE | 4 +- e2e/jasmine/WORKSPACE | 4 +- .../WORKSPACE | 4 +- e2e/node_loader_preserve_symlinks/WORKSPACE | 4 +- e2e/nodejs_image/WORKSPACE | 4 +- e2e/packages/WORKSPACE | 4 +- e2e/typescript/WORKSPACE | 4 +- e2e/webapp/WORKSPACE | 4 +- examples/angular/WORKSPACE | 4 +- examples/angular_bazel_architect/WORKSPACE | 4 +- examples/angular_view_engine/WORKSPACE | 4 +- examples/app/WORKSPACE | 4 +- examples/closure/WORKSPACE | 4 +- examples/create-react-app/WORKSPACE | 4 +- examples/cypress/WORKSPACE | 4 +- examples/jest/WORKSPACE | 4 +- examples/kotlin/WORKSPACE | 4 +- examples/nestjs/WORKSPACE | 4 +- examples/parcel/WORKSPACE | 4 +- examples/protocol_buffers/WORKSPACE | 4 +- examples/react_webpack/WORKSPACE | 4 +- examples/vendored_node/WORKSPACE | 4 +- examples/vendored_node_and_yarn/WORKSPACE | 4 +- examples/vue/WORKSPACE | 4 +- examples/web_testing/WORKSPACE | 4 +- examples/webapp/WORKSPACE | 4 +- examples/worker/WORKSPACE | 4 +- package.json | 2 +- packages/create/index.js | 4 +- 34 files changed, 155 insertions(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32fa4958f7..22d0bbd1db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,93 @@ +# [3.0.0](https://github.com/bazelbuild/rules_nodejs/compare/3.0.0-rc.1...3.0.0) (2020-12-22) + + +### Bug Fixes + +* **builtin:** only pass kwargs to the test, not the .update binary ([#2361](https://github.com/bazelbuild/rules_nodejs/issues/2361)) ([afa095b](https://github.com/bazelbuild/rules_nodejs/commit/afa095b)) + + +### Code Refactoring + +* **builtin:** remove node_modules attribute from nodejs_binary, nodejs_test & ts_library ([c2927af](https://github.com/bazelbuild/rules_nodejs/commit/c2927af)) + + +### BREAKING CHANGES + +* **builtin:** We removed the node_modules attribute from `nodejs_binary`, `nodejs_test`, `jasmine_node_test` & `ts_library`. + +If you are using the `node_modules` attribute, you can simply add the target specified there to the `data` or `deps` attribute of the rule instead. + +For example, + +``` +nodejs_test( + name = "test", + data = [ + "test.js", + "@npm//:node_modules", + ], + entry_point = "test.js", +) +``` + +or + +``` +ts_library( + name = "lib", + srcs = glob(["*.ts"]), + tsconfig = ":tsconfig.json", + deps = ["@npm//:node_modules"], +) +``` + +We also dropped support for filegroup based node_modules target and removed `node_modules_filegroup` from `index.bzl`. + +If you are using this feature for user-managed deps, you must now a `js_library` target +with `external_npm_package` set to `True` instead. + +For example, + +``` +js_library( + name = "node_modules", + srcs = glob( + include = [ + "node_modules/**/*.js", + "node_modules/**/*.d.ts", + "node_modules/**/*.json", + "node_modules/.bin/*", + ], + exclude = [ + # Files under test & docs may contain file names that + # are not legal Bazel labels (e.g., + # node_modules/ecstatic/test/public/中文/檔案.html) + "node_modules/**/test/**", + "node_modules/**/docs/**", + # Files with spaces in the name are not legal Bazel labels + "node_modules/**/* */**", + "node_modules/**/* *", + ], + ), + # Provide ExternalNpmPackageInfo which is used by downstream rules + # that use these npm dependencies + external_npm_package = True, +) + +nodejs_test( + name = "test", + data = [ + "test.js", + ":node_modules", + ], + entry_point = "test.js", +) +``` + +See `examples/user_managed_deps` for a working example of user-managed npm dependencies. + + + # [3.0.0-rc.1](https://github.com/bazelbuild/rules_nodejs/compare/3.0.0-rc.0...3.0.0-rc.1) (2020-12-18) diff --git a/docs/install.md b/docs/install.md index 41750df50b..ac8cf48ccd 100644 --- a/docs/install.md +++ b/docs/install.md @@ -31,8 +31,8 @@ containing: load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") diff --git a/e2e/bazel_managed_deps/WORKSPACE b/e2e/bazel_managed_deps/WORKSPACE index 961f103e86..1d403228ec 100644 --- a/e2e/bazel_managed_deps/WORKSPACE +++ b/e2e/bazel_managed_deps/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/concatjs_devserver/WORKSPACE b/e2e/concatjs_devserver/WORKSPACE index b5f5d06116..07256eed15 100644 --- a/e2e/concatjs_devserver/WORKSPACE +++ b/e2e/concatjs_devserver/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/coverage/WORKSPACE b/e2e/coverage/WORKSPACE index 648379974e..6679b79c62 100644 --- a/e2e/coverage/WORKSPACE +++ b/e2e/coverage/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/fine_grained_symlinks/WORKSPACE b/e2e/fine_grained_symlinks/WORKSPACE index 3c2ec7d6b7..ba8619360d 100644 --- a/e2e/fine_grained_symlinks/WORKSPACE +++ b/e2e/fine_grained_symlinks/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") diff --git a/e2e/jasmine/WORKSPACE b/e2e/jasmine/WORKSPACE index ad37eeb002..1025d03216 100644 --- a/e2e/jasmine/WORKSPACE +++ b/e2e/jasmine/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/node_loader_no_preserve_symlinks/WORKSPACE b/e2e/node_loader_no_preserve_symlinks/WORKSPACE index 12971d747e..1bcfefe258 100644 --- a/e2e/node_loader_no_preserve_symlinks/WORKSPACE +++ b/e2e/node_loader_no_preserve_symlinks/WORKSPACE @@ -9,8 +9,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") diff --git a/e2e/node_loader_preserve_symlinks/WORKSPACE b/e2e/node_loader_preserve_symlinks/WORKSPACE index c2fdda2bdf..0af4a0b769 100644 --- a/e2e/node_loader_preserve_symlinks/WORKSPACE +++ b/e2e/node_loader_preserve_symlinks/WORKSPACE @@ -9,8 +9,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/nodejs_image/WORKSPACE b/e2e/nodejs_image/WORKSPACE index f64a23e74d..47420a363d 100644 --- a/e2e/nodejs_image/WORKSPACE +++ b/e2e/nodejs_image/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/packages/WORKSPACE b/e2e/packages/WORKSPACE index 1de6f3b33d..e8ebc8579e 100644 --- a/e2e/packages/WORKSPACE +++ b/e2e/packages/WORKSPACE @@ -4,8 +4,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "check_rules_nodejs_version", "node_repositories", "npm_install", "yarn_install") diff --git a/e2e/typescript/WORKSPACE b/e2e/typescript/WORKSPACE index 4f1350010e..3c0bbba058 100644 --- a/e2e/typescript/WORKSPACE +++ b/e2e/typescript/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/e2e/webapp/WORKSPACE b/e2e/webapp/WORKSPACE index f8c62103f3..8c31a20177 100644 --- a/e2e/webapp/WORKSPACE +++ b/e2e/webapp/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/angular/WORKSPACE b/examples/angular/WORKSPACE index 13785b78fa..49bc60abdd 100644 --- a/examples/angular/WORKSPACE +++ b/examples/angular/WORKSPACE @@ -29,8 +29,8 @@ bazel_skylib_workspace() # Fetch rules_nodejs so we can install our npm dependencies http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) # Fetch sass rules for compiling sass files diff --git a/examples/angular_bazel_architect/WORKSPACE b/examples/angular_bazel_architect/WORKSPACE index 5ad1bd1030..40d1314e2e 100644 --- a/examples/angular_bazel_architect/WORKSPACE +++ b/examples/angular_bazel_architect/WORKSPACE @@ -12,8 +12,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) # The yarn_install rule runs yarn anytime the package.json or yarn.lock file changes. diff --git a/examples/angular_view_engine/WORKSPACE b/examples/angular_view_engine/WORKSPACE index bd4463f7b6..3a97973b60 100644 --- a/examples/angular_view_engine/WORKSPACE +++ b/examples/angular_view_engine/WORKSPACE @@ -16,8 +16,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Fetch rules_nodejs so we can install our npm dependencies http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) # Fetch sass rules for compiling sass files diff --git a/examples/app/WORKSPACE b/examples/app/WORKSPACE index 89a1195ce2..cb0c2826ff 100644 --- a/examples/app/WORKSPACE +++ b/examples/app/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/closure/WORKSPACE b/examples/closure/WORKSPACE index c2c9daba37..53cb46322a 100644 --- a/examples/closure/WORKSPACE +++ b/examples/closure/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/create-react-app/WORKSPACE b/examples/create-react-app/WORKSPACE index d5dbb670f7..d8d89e5d4c 100644 --- a/examples/create-react-app/WORKSPACE +++ b/examples/create-react-app/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) http_archive( diff --git a/examples/cypress/WORKSPACE b/examples/cypress/WORKSPACE index b747853a1f..03363e0176 100644 --- a/examples/cypress/WORKSPACE +++ b/examples/cypress/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/jest/WORKSPACE b/examples/jest/WORKSPACE index 6201cb6c21..34796b4c65 100644 --- a/examples/jest/WORKSPACE +++ b/examples/jest/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/kotlin/WORKSPACE b/examples/kotlin/WORKSPACE index 0ebffc9e71..a076f433ef 100644 --- a/examples/kotlin/WORKSPACE +++ b/examples/kotlin/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) # Install external npm dependencies diff --git a/examples/nestjs/WORKSPACE b/examples/nestjs/WORKSPACE index c5c739faaf..fd1a0dfbf0 100644 --- a/examples/nestjs/WORKSPACE +++ b/examples/nestjs/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/parcel/WORKSPACE b/examples/parcel/WORKSPACE index d18c6cd809..8916c0a94d 100644 --- a/examples/parcel/WORKSPACE +++ b/examples/parcel/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "npm_install") diff --git a/examples/protocol_buffers/WORKSPACE b/examples/protocol_buffers/WORKSPACE index 7518787100..902a122cc0 100644 --- a/examples/protocol_buffers/WORKSPACE +++ b/examples/protocol_buffers/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) http_archive( diff --git a/examples/react_webpack/WORKSPACE b/examples/react_webpack/WORKSPACE index 146a57e0e9..5b89b8a674 100644 --- a/examples/react_webpack/WORKSPACE +++ b/examples/react_webpack/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/vendored_node/WORKSPACE b/examples/vendored_node/WORKSPACE index 7b48398f1c..6fc234c449 100644 --- a/examples/vendored_node/WORKSPACE +++ b/examples/vendored_node/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) http_archive( diff --git a/examples/vendored_node_and_yarn/WORKSPACE b/examples/vendored_node_and_yarn/WORKSPACE index 369127d916..bafc1a09c3 100644 --- a/examples/vendored_node_and_yarn/WORKSPACE +++ b/examples/vendored_node_and_yarn/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) http_archive( diff --git a/examples/vue/WORKSPACE b/examples/vue/WORKSPACE index 193b54be15..850295a80e 100644 --- a/examples/vue/WORKSPACE +++ b/examples/vue/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "npm_install") diff --git a/examples/web_testing/WORKSPACE b/examples/web_testing/WORKSPACE index ed7d8146d4..a566d285f4 100644 --- a/examples/web_testing/WORKSPACE +++ b/examples/web_testing/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/webapp/WORKSPACE b/examples/webapp/WORKSPACE index 119759f4a0..8715c57d94 100644 --- a/examples/webapp/WORKSPACE +++ b/examples/webapp/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/examples/worker/WORKSPACE b/examples/worker/WORKSPACE index 40e58cd9fc..dd01877080 100644 --- a/examples/worker/WORKSPACE +++ b/examples/worker/WORKSPACE @@ -21,8 +21,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/package.json b/package.json index 55f9dd9d75..be56e38e0c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bazel/javascript", "description": "Build JavaScript with Bazel", - "version": "3.0.0-rc.1", + "version": "3.0.0", "keywords": [ "javascript", "bazel" diff --git a/packages/create/index.js b/packages/create/index.js index 13d1937819..9575873f14 100644 --- a/packages/create/index.js +++ b/packages/create/index.js @@ -157,8 +157,8 @@ workspace( load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "84b1d11b1f3bda68c24d992dc6e830bca9db8fa12276f2ca7fcb7761c893976b", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0-rc.1/rules_nodejs-3.0.0-rc.1.tar.gz"], + sha256 = "6142e9586162b179fdd570a55e50d1332e7d9c030efd853453438d607569721d", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], ) ${pkgMgr === 'yarn' ? yarnInstallCmd : npmInstallCmd}`;