Skip to content

Commit 65e49fa

Browse files
authored
Bump the versions of all aspect Bazel dependencies (#8508)
* bump all aspect dependency versions to latest * add workspace file to test bazel repo
1 parent 50be3cf commit 65e49fa

File tree

10 files changed

+50
-41
lines changed

10 files changed

+50
-41
lines changed

.bazelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ common:windows --enable_runfiles
1111
# Swift is not required on Windows
1212
common:windows --deleted_packages=swift
1313
# Ignore warnings in external dependencies
14-
build --per_file_copt=external/.*@-Wno-everything --host_per_file_copt=external/.*@-Wno-everything
14+
build --per_file_copt=external/.*@-Wno-everything --host_per_file_copt=external/.*@-Wno-everything
15+
# Honor the setting of `skipLibCheck` in the tsconfig.json file.
16+
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
17+
# Use "tsc" as the transpiler when ts_project has no `transpiler` set.
18+
common --@aspect_rules_ts//ts:default_to_tsc_transpiler

MODULE.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ module(
77

88
bazel_dep(
99
name = "aspect_bazel_lib",
10-
version = "1.40.0",
10+
version = "2.11.0",
1111
)
1212
bazel_dep(
1313
name = "aspect_rules_esbuild",
14-
version = "0.15.0",
14+
version = "0.21.0",
1515
)
1616
bazel_dep(
1717
name = "aspect_rules_js",
18-
version = "1.34.1",
18+
version = "2.1.3",
1919
)
2020
bazel_dep(
2121
name = "aspect_rules_ts",
22-
version = "1.4.5",
22+
version = "3.4.0",
2323
)
2424
bazel_dep(
2525
name = "grpc",
@@ -41,7 +41,7 @@ bazel_dep(
4141
)
4242
bazel_dep(
4343
name = "rules_nodejs",
44-
version = "5.8.3",
44+
version = "6.3.3",
4545
)
4646
bazel_dep(
4747
name = "rules_swift",

WORKSPACE

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,24 @@ grpc_extra_deps()
129129

130130
http_archive(
131131
name = "aspect_rules_js",
132-
sha256 = "76a04ef2120ee00231d85d1ff012ede23963733339ad8db81f590791a031f643",
133-
strip_prefix = "rules_js-1.34.1",
134-
url = "https://github.com/aspect-build/rules_js/releases/download/v1.34.1/rules_js-v1.34.1.tar.gz",
132+
sha256 = "875b8d01af629dbf626eddc5cf239c9f0da20330f4d99ad956afc961096448dd",
133+
strip_prefix = "rules_js-2.1.3",
134+
url = "https://github.com/aspect-build/rules_js/releases/download/v2.1.3/rules_js-v2.1.3.tar.gz",
135135
)
136136

137137
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
138138

139139
rules_js_dependencies()
140140

141-
load("@aspect_rules_js//npm:npm_import.bzl", "pnpm_repository")
141+
load("@aspect_rules_js//npm:repositories.bzl", "pnpm_repository")
142142

143143
pnpm_repository(name = "pnpm")
144144

145145
http_archive(
146146
name = "aspect_rules_ts",
147-
sha256 = "4c3f34fff9f96ffc9c26635d8235a32a23a6797324486c7d23c1dfa477e8b451",
148-
strip_prefix = "rules_ts-1.4.5",
149-
url = "https://github.com/aspect-build/rules_ts/releases/download/v1.4.5/rules_ts-v1.4.5.tar.gz",
147+
sha256 = "013a10b2b457add73b081780e604778eb50a141709f9194298f97761acdcc169",
148+
strip_prefix = "rules_ts-3.4.0",
149+
url = "https://github.com/aspect-build/rules_ts/releases/download/v3.4.0/rules_ts-v3.4.0.tar.gz",
150150
)
151151

152152
load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
@@ -159,12 +159,9 @@ rules_ts_dependencies(
159159
ts_version_from = "//:package.json",
160160
)
161161

162-
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
162+
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
163163

164-
nodejs_register_toolchains(
165-
name = "nodejs",
166-
node_version = DEFAULT_NODE_VERSION,
167-
)
164+
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
168165

169166
load("@com_github_google_flatbuffers//ts:repositories.bzl", "flatbuffers_npm")
170167

@@ -178,9 +175,9 @@ npm_repositories()
178175

179176
http_archive(
180177
name = "aspect_rules_esbuild",
181-
sha256 = "098e38e5ee868c14a6484ba263b79e57d48afacfc361ba30137c757a9c4716d6",
182-
strip_prefix = "rules_esbuild-0.15.0",
183-
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.15.0/rules_esbuild-v0.15.0.tar.gz",
178+
sha256 = "550e33ddeb86a564b22b2c5d3f84748c6639b1b2b71fae66bf362c33392cbed8",
179+
strip_prefix = "rules_esbuild-0.21.0",
180+
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.21.0/rules_esbuild-v0.21.0.tar.gz",
184181
)
185182

186183
# Register a toolchain containing esbuild npm package and native bindings
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is needed during the transition to Bzlmod
2+
# Remove this file if we only support Bazel 8+ which
3+
# defaults to --enable_workspace=false.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
build --symlink_prefix=/
2+
# Honor the setting of `skipLibCheck` in the tsconfig.json file.
3+
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
4+
# Use "tsc" as the transpiler when ts_project has no `transpiler` set.
5+
common --@aspect_rules_ts//ts:default_to_tsc_transpiler

tests/ts/bazel_repository_test_dir/MODULE.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ local_path_override(
88

99
bazel_dep(
1010
name = "aspect_rules_esbuild",
11-
version = "0.15.0",
11+
version = "0.21.0",
1212
)
1313
bazel_dep(
1414
name = "aspect_rules_js",
15-
version = "1.34.1",
15+
version = "2.1.3",
1616
)
1717
bazel_dep(
1818
name = "aspect_rules_ts",
19-
version = "1.4.5",
19+
version = "3.4.0",
2020
)
2121
bazel_dep(
2222
name = "rules_nodejs",
23-
version = "5.8.3",
23+
version = "6.3.3",
2424
)
2525

2626
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")

tests/ts/bazel_repository_test_dir/WORKSPACE

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ local_repository(
99

1010
http_archive(
1111
name = "aspect_rules_js",
12-
sha256 = "76a04ef2120ee00231d85d1ff012ede23963733339ad8db81f590791a031f643",
13-
strip_prefix = "rules_js-1.34.1",
14-
url = "https://github.com/aspect-build/rules_js/releases/download/v1.34.1/rules_js-v1.34.1.tar.gz",
12+
sha256 = "875b8d01af629dbf626eddc5cf239c9f0da20330f4d99ad956afc961096448dd",
13+
strip_prefix = "rules_js-2.1.3",
14+
url = "https://github.com/aspect-build/rules_js/releases/download/v2.1.3/rules_js-v2.1.3.tar.gz",
1515
)
1616

1717
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
1818

1919
rules_js_dependencies()
2020

21-
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository")
21+
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock", "pnpm_repository")
2222

2323
pnpm_repository(name = "pnpm")
2424

2525
http_archive(
2626
name = "aspect_rules_ts",
27-
sha256 = "4c3f34fff9f96ffc9c26635d8235a32a23a6797324486c7d23c1dfa477e8b451",
28-
strip_prefix = "rules_ts-1.4.5",
29-
url = "https://github.com/aspect-build/rules_ts/releases/download/v1.4.5/rules_ts-v1.4.5.tar.gz",
27+
sha256 = "013a10b2b457add73b081780e604778eb50a141709f9194298f97761acdcc169",
28+
strip_prefix = "rules_ts-3.4.0",
29+
url = "https://github.com/aspect-build/rules_ts/releases/download/v3.4.0/rules_ts-v3.4.0.tar.gz",
3030
)
3131

3232
load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
@@ -37,12 +37,9 @@ rules_ts_dependencies(
3737
ts_version = "5.3.3",
3838
)
3939

40-
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
40+
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
4141

42-
nodejs_register_toolchains(
43-
name = "nodejs",
44-
node_version = DEFAULT_NODE_VERSION,
45-
)
42+
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
4643

4744
npm_translate_lock(
4845
name = "npm",
@@ -61,9 +58,9 @@ npm_repositories()
6158

6259
http_archive(
6360
name = "aspect_rules_esbuild",
64-
sha256 = "098e38e5ee868c14a6484ba263b79e57d48afacfc361ba30137c757a9c4716d6",
65-
strip_prefix = "rules_esbuild-0.15.0",
66-
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.15.0/rules_esbuild-v0.15.0.tar.gz",
61+
sha256 = "550e33ddeb86a564b22b2c5d3f84748c6639b1b2b71fae66bf362c33392cbed8",
62+
strip_prefix = "rules_esbuild-0.21.0",
63+
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.21.0/rules_esbuild-v0.21.0.tar.gz",
6764
)
6865

6966
# Register a toolchain containing esbuild npm package and native bindings
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is needed during the transition to Bzlmod
2+
# Remove this file if we only support Bazel 8+ which
3+
# defaults to --enable_workspace=false.

ts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../package.json

ts/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""WORKSPACE macro to load flatbuffers's npm package list."""
22

3-
load("@aspect_rules_js//npm:npm_import.bzl", _npm_translate_lock = "npm_translate_lock")
3+
load("@aspect_rules_js//npm:repositories.bzl", _npm_translate_lock = "npm_translate_lock")
44

55
def flatbuffers_npm(name):
66
_npm_translate_lock(

0 commit comments

Comments
 (0)