gapic-generator-typescript
gapic-generator-typescript copied to clipboard
chore(deps): update dependency aspect_rules_ts to v2
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| aspect_rules_ts | http_archive | major | v1.4.5 -> v2.0.0 |
Release Notes
aspect-build/rules_ts (aspect_rules_ts)
v2.0.0
Welcome to the first major release of rules_ts since 1.0.0. We'll update these release notes periodically as we get feedback from users.
New Features
We now support Protocol Buffers and gRPC. See https://github.com/aspect-build/rules_ts/blob/main/docs/proto.md
We no longer default to a Persistent Worker mode to make the developer round-trip fast, as this was buggy and we don't have the resources to maintain a custom TypeScript compiler wrapper. Instead, we recommend using a faster transpiler. The upgrade flow will print some error messages on the first run to help you migrate.
We now check for rules_ts updates as part of running rules_ts_dependencies, see https://github.com/aspect-build/rules_ts/blob/main/docs/repositories.md#rules_ts_dependencies-check_for_updates. You can opt-out of the data collection by setting this attribute to False.
Breaking Changes
- We now support only Bazel 6.0 or greater, since we rely on validation actions
- We require that you select a value for the
skipLibCheckflag, as there is no good default - you can either be fast or correct. Instructions are printed to the terminal on the first build. - We require that you select a value for the
transpilerattribute. Again, there is no good default since the choices are to be fast or compatible. Documentation is at https://github.com/aspect-build/rules_ts/blob/main/docs/transpiler.md - "Persistent Worker" mode is no longer enabled by default. It requires a custom
tsccompiler program, and we don't have the resources or funding to deal with the bugs this brings. We think that choosing a faster transpiler is a better solution. If your organization would like support for worker mode, you can fund the maintenance work. Or, if you'd like to take over the persistent worker Node.js program, we are open to relocating the code to a separate repository. - The
supports_workersattribute onts_projectis now a tri-state[-1, 0, 1]rather than a boolean. --define=VERBOSE_LOGSno longer has an effect, use the--@​aspect_rules_ts//ts:verbose=trueflag instead- Replace usage of
load("@​aspect_rules_ts//ts:repositories.bzl", "LATEST_VERSION")withLATEST_TYPESCRIPT_VERSION - The
ts_projectmacro now produces ats_projectrule. Any bazel query expressions, aspect implementations, or other "leaky abstractions" that keyed on the kind of the underlying rule being "ts_project_rule" will need to be updated to the new name "ts_project". - json inputs that are not sources and do not have an input / output collision are now declared
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_ts", version = "2.0.0")
rules_ts_ext = use_extension(
"@​aspect_rules_ts//ts:extensions.bzl",
"ext",
dev_dependency = True,
)
rules_ts_ext.deps()
use_repo(rules_ts_ext, "npm_typescript")
Using WORKSPACE
Paste this snippet into your WORKSPACE file:
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_ts",
sha256 = "8aabb2055629a7becae2e77ae828950d3581d7fc3602fe0276e6e039b65092cb",
strip_prefix = "rules_ts-2.0.0",
url = "https://github.com/aspect-build/rules_ts/releases/download/v2.0.0/rules_ts-v2.0.0.tar.gz",
)
##################
### rules_ts setup #
##################
### Fetches the rules_ts dependencies.
### If you want to have a different version of some dependency,
### you should fetch it *before* calling this.
### Alternatively, you can skip calling this function, so long as you've
### already fetched all the dependencies.
load("@​aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
rules_ts_dependencies(
### This keeps the TypeScript version in-sync with the editor, which is typically best.
ts_version_from = "//:package.json",
### Alternatively, you could pick a specific version, or use
### load("@​aspect_rules_ts//ts:repositories.bzl", "LATEST_TYPESCRIPT_VERSION")
### ts_version = LATEST_TYPESCRIPT_VERSION
)
load("@​aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@​bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
### Fetch and register node, if you haven't already
load("@​rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
### Register aspect_bazel_lib toolchains;
### If you use npm_translate_lock or npm_import from aspect_rules_js you can omit this block.
load("@​aspect_bazel_lib//lib:repositories.bzl", "register_copy_directory_toolchains", "register_copy_to_directory_toolchains")
register_copy_directory_toolchains()
register_copy_to_directory_toolchains()
What's Changed
- chore: fix docstring indents by @gregmagolan in https://github.com/aspect-build/rules_ts/pull/343
- feat: introduce skip_lib_check attribute by @thesayyn in https://github.com/aspect-build/rules_ts/pull/345
- Revert "feat: introduce skip_lib_check attribute" by @alexeagle in https://github.com/aspect-build/rules_ts/pull/347
- feat: skipLibCheck take 2 by @alexeagle in https://github.com/aspect-build/rules_ts/pull/350
- examples: add tsconfig types example by @jbedard in https://github.com/aspect-build/rules_ts/pull/351
- feat: implement custom flags for verbosity and workers by @thesayyn in https://github.com/aspect-build/rules_ts/pull/294
- feat: configure ts_project progress_message based on transpile/declaration config by @jbedard in https://github.com/aspect-build/rules_ts/pull/355
- fix: dictionary tsconfig extends with bzlmod by @jbedard in https://github.com/aspect-build/rules_ts/pull/358
- Updated typescript versions by @UebelAndre in https://github.com/aspect-build/rules_ts/pull/353
- docs: add troubleshooting docs about undeclared dependencies by @jbedard in https://github.com/aspect-build/rules_ts/pull/359
- refactor: consider json a js source (if resolve_json_module) by @gzm0 in https://github.com/aspect-build/rules_ts/pull/322
- chore: drop support for Bazel 5 by @alexeagle in https://github.com/aspect-build/rules_ts/pull/372
- fix: ts_project macro creates same-named rule by @alexeagle in https://github.com/aspect-build/rules_ts/pull/370
- feat: ask users about skipLibCheck when upgrading to 2.0 by @alexeagle in https://github.com/aspect-build/rules_ts/pull/371
- Move TS config validation to validation output group by @dzbarsky in https://github.com/aspect-build/rules_ts/pull/138
- chore: green up 2.x branch by @alexeagle in https://github.com/aspect-build/rules_ts/pull/396
- chore: readme updates for 2.0 by @alexeagle in https://github.com/aspect-build/rules_ts/pull/395
- feat(2.0): force users to choose a transpiler by @alexeagle in https://github.com/aspect-build/rules_ts/pull/397
- chore(2.0): remove LATEST_VERSION by @alexeagle in https://github.com/aspect-build/rules_ts/pull/403
- chore(2.0): remove VERBOSE_LOGS env var by @alexeagle in https://github.com/aspect-build/rules_ts/pull/402
- chore: flip supports_workers to default False by @alexeagle in https://github.com/aspect-build/rules_ts/pull/401
- chore(docs): move transpiler migration instructions to markdown by @alexeagle in https://github.com/aspect-build/rules_ts/pull/404
- fix: instructions for bazelrc should vary on common by @alexeagle in https://github.com/aspect-build/rules_ts/pull/406
- fix(transpiler): move the check for default_to_tsc_transpiler by @alexeagle in https://github.com/aspect-build/rules_ts/pull/405
- chore: upgrade to bazel 6.3 by @alexeagle in https://github.com/aspect-build/rules_ts/pull/407
- fix(transpiler): allow explicit 'opt-in' to tsc by @alexeagle in https://github.com/aspect-build/rules_ts/pull/408
- chore: run gazelle by @alexeagle in https://github.com/aspect-build/rules_ts/pull/413
- chore: remove maybe helper by @alexeagle in https://github.com/aspect-build/rules_ts/pull/414
- chore: bump rules_js version by @alexeagle in https://github.com/aspect-build/rules_ts/pull/419
- feat: read typescript version from resolved.json by @alexeagle in https://github.com/aspect-build/rules_ts/pull/418
- docs: put debug sections about worker mode together by @alexeagle in https://github.com/aspect-build/rules_ts/pull/422
- chore: switch rbe to buildbuddy by @alexeagle in https://github.com/aspect-build/rules_ts/pull/430
- fix: don't recommend bazelrc common verb by @alexeagle in https://github.com/aspect-build/rules_ts/pull/431
- chore: update to Aspect Workflows 5.7.1 by @gregmagolan in https://github.com/aspect-build/rules_ts/pull/435
- fix: add missing data dep by @alexeagle in https://github.com/aspect-build/rules_ts/pull/437
- chore: update to Aspect Workflows 5.7.2 by @gregmagolan in https://github.com/aspect-build/rules_ts/pull/438
- chore: update to Aspect Workflows 5.7.3 by @gregmagolan in https://github.com/aspect-build/rules_ts/pull/440
- feat: stamp our version into release by @alexeagle in https://github.com/aspect-build/rules_ts/pull/441
- feat: add check_for_update by @alexeagle in https://github.com/aspect-build/rules_ts/pull/439
New Contributors
- @UebelAndre made their first contribution in https://github.com/aspect-build/rules_ts/pull/353
- @dzbarsky made their first contribution in https://github.com/aspect-build/rules_ts/pull/138
Full Changelog: https://github.com/aspect-build/rules_ts/compare/v1.3.3...v2.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.
Requires bazel 6.
Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.