Skip to content

chore(deps): update dependency nub to v0.11.1 - #81

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/nub-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/nub-0.x

Conversation

@renovate

@renovate renovate Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Type Update Change
nub tools minor 0.9.6 → 0.11.1

Release Notes

nubjs/nub (nub)

v0.11.1: Nub 0.11.1

Compare Source

Nub 0.11.1 provisions Yarn 2+ (Berry) pins without a committed release, refreshes the bundled packageExtensions database, and starts on Node builds that have removed module.register().

[!IMPORTANT]
An exact package-manager pin to a version that was never published now errors. A pin such as pnpm@9.1.0 resolved the newest release in that major (#​1124)

Yarn Berry pins

A packageManager or devEngines.packageManager pin to Yarn 2 or later now downloads and runs like a pnpm, npm or Yarn 1 pin (#​1124, fixes #​1029). It failed with "yarn 2+ (Berry) requires a committed release" unless the project committed one and set yarnPath.

nub pm use yarn@4
Area What changed
Download Berry comes from @yarnpkg/cli-dist on the configured registry, from 2.4.1 on. A committed yarnPath release still takes precedence.
Pin hashes A +sha512 hash is checked against yarn.js, the file Corepack hashes, so a pin either tool wrote verifies in both.
Writing pins nub pm use yarn@4 and nub pm update write Berry pins. Converting another manager's lockfile to Berry's format is refused.
Unpinned projects With no pin and no yarn on PATH, a Berry yarn.lock selects only Yarn releases that write that lockfile format.

Fixes

Area What changed Link
packageExtensions database Refreshed to @nubjs/extensions 1.0.54. nitro no longer gains croner, scule, ufo and unctx, which it now declares, and the object.hasown and string.prototype.codepointat rules are gone. Existing lockfiles do not change. #​1125
Node without module.register() With --no-experimental-require-module on a Node 28 nightly, which removes module.register(), every process crashed at startup with TypeError: module_.register is not a function. Nub now prints one line saying its hooks are off and runs the program on plain Node. #​1127

What's Changed

Full Changelog: nubjs/nub@v0.11.0...v0.11.1

v0.11.0: Nub 0.11.0

Compare Source

Nub 0.11.0 preloads TypeScript 7.1 content mappers, adds nub add --save-types, installs one copy of a package where pnpm does, and removes the canary channel. It also fixes a broad set of correctness bugs in the runtime, the package manager and nub run.

[!IMPORTANT]
Five changes can surface in an existing project:

  • The canary channel is gone. nub upgrade --canary and --stable are unknown flags, and install.sh and install.ps1 no longer accept canary. An existing canary install keeps working, and nub upgrade --stable still moves it to a release (#​1102)
  • A lockfile missing a required entry is broken. nub ci and nub install --frozen-lockfile exit 16 and name the entry, and a plain nub install repairs it. Both exited 0 and left a tree that could not load (#​1105)
  • nub add <pkg>@<tag> saves a prerelease exact, as pnpm does. A stable tag still saves with ^ (#​1096)
  • Some lockfiles change once. A local or URL package keeps its peers on its key, and a tree that held duplicate copies of a package collapses them on its next fresh resolve (#​1093, #​1089)
  • The first install after upgrading relinks once, because the dependency scan's cache was reset (#​1113)

Content mappers

TypeScript 7.1's content mappers type-check other file types, but TypeScript never runs them. Nub now preloads the ./register export of every package the tsconfig lists, with no --import and no nub.jsonc entry (#​1082).

{
  // ...
  "contentMappers": [
    { "package": "motherload", "extensions": [".toml", ".yaml"] }
  ]
}
import config from "./config.yaml"; // loaded by motherload/register

extends and references are followed, the longest extension answers first, and an entry's options reach its register in CONTENT_MAPPER_OPTIONS.

Type packages on add

nub add --save-types <pkg> also saves the DefinitelyTyped package to devDependencies for each registry package whose installed version ships no types, picking the newest @types release on that package's major (#​1110, fixes #​1016).

nub add --save-types express

A package with no @types release, or only a deprecated stub, prints skipped @types/<name>: <reason>. An @types entry the project already lists is kept.

Package manager

Area What changed Link
Duplicate copies A package installs once where pnpm installs it once. The Nuxt starter went from 17 duplicate copies to 0, and workspace members no longer get two module objects for one package. #​1089
Peers of local packages A file:, URL or git package consumed with two sets of peers loads the right peer after a lockfile install. One entry served both consumers, with no error. #​1093
Edges to workspace members A registry package whose peer a workspace member satisfies links to the member, as pnpm writes it. The install succeeded and require failed with Cannot find module. #​1081
Local packages from a pnpm lockfile file: and link: packages read back from nub.lock or pnpm-lock.yaml get the graph a fresh resolve gives. A root peer pinned to a tarball URL no longer fails every resolve after the first with ERR_NUB_BLOCKED_EXOTIC_SUBDEP. #​1072, #​1109, fixes #​1108
Failed adds A failed nub add or nub install <pkg> restores package.json, the lockfiles and the workspace yaml. The new dependency stayed in package.json. #​1111
--fix-lockfile nub install --fix-lockfile rewrites the lockfile, keeping its pinned versions. It repairs a package-lock.json written with the dev-optional flags 0.10.0 fixed. #​1091, refs #​1087
bun.lock local paths A member's file: directory and a hoisted tarball install under nub ci and --frozen-lockfile, and a bun.lock Nub writes spells local packages as bun does, which bun install --frozen-lockfile accepts. #​1112
Filtered installs nub install --prod, --dev and --no-optional download only the dependencies they link. Every package in the graph was downloaded into the store. #​1121, fixes #​1120
pnpm-workspace.yaml A # comment after a pattern or after packages:, and the flow form packages: ['a/*', 'b/*'], are read. Each found no workspace members. #​1113
Repeated .npmrc keys The last script-shell, ignore-scripts or node-mirror:release wins, as in npm. The first won. #​1113
packageManager paths A version that walks out of its package, such as pnpm@../npm/10.9.0, fails to resolve. It installed the other package into the store under the requested name. #​1113
nub pm use nub pm use nub keeps catalog and nohoist from an object-form workspaces, and nub pm use pnpm keeps the other keys under workspaces. #​1113
Dependency scan require('buffer/'), a directory with a main, a template-literal require and import x = require() resolve as Node resolves them, and .d.mts and .d.cts files are not scanned. #​1113

Running files

Area What changed Link
Node's permission model nub --permission --allow-addons app.js starts, --permission in NODE_OPTIONS gets the same --allow-addons message as the flag, and the last of --permission and --no-permission decides, as in Node. The first two failed with ERR_ACCESS_DENIED on Nub's own runtime. #​1113
Flags after the entry nub app.js --permission passes --permission to the program. It was read as Node's own flag. #​1113
.env PASSWORD="foo\$bar" loads foo$bar, and a variable that refers back to itself, such as A=x$A, expands that reference to nothing. #​1113
Node version pins engines.node: "20.11.0 || 22.1.0" matches those exact versions, a v in a range is read as node-semver reads it, and a # comment in .nvmrc or .node-version is read as nvm reads it. #​1113
tsx as a loader --import tsx runs on Node 24.11.1, 25.0 and 25.1. It failed with ERR_METHOD_NOT_IMPLEMENTED. #​1113
Native addon A panic in Nub's addon throws a catchable error. It aborted the process. #​1113
nub node install With Nub's node shim on PATH, it installs only the version asked for. #​1113
Home-folder projects A stray package.json and node_modules in the home folder no longer hang every run under it on macOS. The pre-run dependency scan skips a project rooted at the home folder and gives up after 500 ms. #​1117
Windows scripts Script bodies and lifecycle scripts keep backslashes in environment values, so os.homedir() reads C:\Users\… inside a script and Nub's preload is injected once. #​1107

Runtime

Area What changed Link
Node 27 language changes Intl.Locale#variants is polyfilled and typed in @nubjs/types. Iterator.zip and Iterator.zipKeyed close every input on an early return or a failure. On Node 27, its native versions of these are used. A Test262 subset now runs against the polyfills. #​1097
Polyfill shapes Promise.withResolvers, Iterator.from, URL.parse, the Uint8Array base64 methods and 23 others have no prototype and refuse new, like the builtins. Float16Array and URLPattern are non-enumerable, RegExp.escape escapes lone surrogates, and ErrorEvent before Node 25 reads its fields from prototype getters. #​1113
Replaced built-ins Nub's runtime helpers keep working after application code replaces a global or a prototype method. #​1099
--experimental-web-worker With Node's own Worker global enabled, Nub keeps it and its worker scope instead of installing its polyfill. #​1098
Worker nub --max-old-space-size=4096 app.mjs no longer makes the global Worker throw ERR_WORKER_INVALID_EXEC_ARGV, and a worker that throws null delivers its error event. #​1106, #​1113
A foreign registerHooks On Node 22.15 to 24.11, an --import that calls module.registerHooks, such as amaro/strip, no longer makes every CommonJS file throw ERR_INVALID_RETURN_PROPERTY_VALUE. #​1101

Scripts and config

Area What changed Link
nub exec -r A shell-script bin runs in each member's directory. It ran in the invoking directory. #​1113
--sequential, --parallel A regex run outside any workspace runs that package's scripts, as pnpm 9, 10 and 11 do. #​1113
Flags before the verb --cwd=<dir>, --if-present and --reporter-hide-prefix are accepted there. They failed with node: bad option. #​1113
PATH An entry that is not UTF-8 no longer leaves scripts with an empty PATH. #​1113
nub config set Writes through a symlinked nub.jsonc instead of replacing the link. #​1113
nub init Skips git init in a subfolder of a repository. #​1113
nubx prompt Answering Never beside dlx.consent: "prompt" stays off. #​1113

Install and upgrade

Area What changed Link
Canary channel Removed, with nub upgrade --canary and --stable. nub-version: canary in the setup-node action no longer installs. #​1102
install.sh Detects musl through ldd on systems other than Alpine. #​1113
setup-node action Reads .tool-versions and an absolute package.json as a node-version-file, and .nvmrc and .node-version as nvm reads them. #​1113

Security

Nub's Rust network clients reject the compromised eMudhra certificate chains (#​1019). JavaScript running under Node still relies on Node's own certificate store.

Docs, testing and internals

  • The repository has a CONTRIBUTING.md, a SECURITY.md and a code of conduct (#​1116, #​1115).
  • The test suite runs on Node 26 (#​1020), and the version-tier tests install the Node versions they skipped without (#​1114).
  • The integration tests find the nub binary through Cargo, which keeps test executables in a different directory from Rust 1.100 (#​1113).
  • Seven slower pull-request workflows run on a ci-full label (#​1104).
  • Releases build with the current stable Rust (86c1817).

What's Changed

New Contributors

Full Changelog: nubjs/nub@v0.10.0...v0.11.0

v0.10.0: Nub 0.10.0

Compare Source

Nub 0.10.0 brings dependency build scripts and --filter in line with pnpm 12, writes pnpm lockfiles that pnpm accepts in more layouts, and backfills util.debounce, util.throttle and the JSON.parse options proposal.

[!IMPORTANT]
Five changes can surface in an existing project:

  • An unapproved dependency build script fails the install with ERR_NUB_IGNORED_BUILDS and exit 1. strictDepBuilds=false restores the warning (#​1050)
  • A git dependency with a prepare script builds only when approved, and otherwise fails with ERR_NUB_GIT_DEP_PREPARE_NOT_ALLOWED (#​1045)
  • --filter ./packages selects only a project whose directory is packages. Use ./packages/* or ./packages/** for the projects under it (#​1056)
  • A --filter that selects no project exits 0, and --fail-if-no-match exits 1 (#​1064)
  • nub rebuild <pkg> no longer approves the package it names (#​1050)

Dependency build scripts

An install that meets a build script nobody has approved now fails, as under pnpm 12. It fails last, once node_modules is linked and the approved builds and the project's own scripts have run. Global installs and nubx stay non-strict.

$ nub install
dependencies:
+ core-js@3.40.0

ERR_NUB_IGNORED_BUILDS

  × Ignored build scripts: core-js@3.40.0
  help: Run `nub approve-builds` to pick which dependencies may run their
        build scripts, or set `strictDepBuilds=false` to install without them.
Area What changed Link
Denials nub approve-builds '!pkg' and --allow-build='!pkg' record a denial, and --allow-build=pkg refuses a package the project denies. An explicit false outranks dangerouslyAllowAllBuilds. #​1050
Settings dangerouslyAllowAllBuilds and strictDepBuilds are read from .npmrc, the environment and, in a pnpm project, pnpm-workspace.yaml. #​1050
nub rebuild Reports unapproved packages instead of passing over them. A filtered rebuild works in a shared-lockfile workspace, where it did nothing. #​1050
Member approvals nub rebuild, nub ignored-builds and nub approve-builds read the same approvals as nub install, workspace members' included. #​1050
Git dependency approval Approved by <name>@git+<repository> or the same key with #<commit>. A bare name, name@version or * does not approve one, and a denial installs it unbuilt. #​1045
Git dependency builds A hosted dependency such as rimraf@github:isaacs/rimraf#v6.1.3 is now built. It linked with no dist/. The build no longer needs cp, which stock Windows lacks. #​1045, fixes #​885, #​886
Project lifecycle stages Project scripts follow pnpm 12's stage lists in every project: install adds preprepare and postprepare, remove runs the uninstall stages, and --prod skips the prepare family. #​1052

Workspace filters

Nub now uses pnpm 12's selector grammar and directory globs on every workspace command, including nub run (#​1056).

- nub run --filter ./packages build
+ nub run --filter './packages/*' build
Area What changed Link
Empty selection Does nothing and exits 0. install, remove and update print Scope: 0 of N workspace projects, and nub ci still cleans node_modules first, as pnpm's does. #​1064
Workspace root run, exec, add and test drop the root from a selection that names no project. Other commands keep it. #​1056
Repeated filtered install Reports up to date. It reinstalled and reran lifecycle scripts. #​1055
recursiveInstall Read from pnpm-workspace.yaml in a pnpm project. #​1055
Flags before the verb --filter-prod, -C and --dir work there. #​1064
nub ls in a member Lists that member. #​1064

Lockfile compatibility

Area What changed Link
Per-project pnpm lockfiles Under shared-workspace-lockfile=false, a member's lockfile matches pnpm 10's bytes on the tested workspaces. pnpm's --frozen-lockfile rejected the old form. #​1060
Frozen installs of those trees nub install --frozen-lockfile passes on a tree Nub or pnpm 10 wrote, and a plain install keeps a member's locked versions. It failed on the first and re-resolved on the second. #​1062
Rebuild in those trees nub rebuild finds a member's packages in the root store. It built nothing and exited 0. #​1058
pnpm's env document pnpm-lock.yaml records a pinned pnpm in its leading document, so pnpm 11 and 12 accept Nub's lockfile under --frozen-lockfile, including after nub pm use pnpm. #​1054
Local paths in pnpm-lock.yaml link:./x is written link:x and file:./x is written file:x, and empty packages: and snapshots: are omitted. A package spelled with ./ relinks on its first install after upgrading. #​1079
A file: dependency outside the workspace A member's file: directory above the workspace root installs under nub ci and --frozen-lockfile. It failed with is not a directory. #​1004
package-lock.json An optional dependency of a dev dependency is flagged dev and optional. It was devOptional. #​1088, fixes #​1087
Optional peers Every resolved optional peer is linked next to its package, a plain install repairs an existing nub.lock, and bun.lock records peers as bun writes them. #​1040, fixes #​937
Catalog updates nub update -r raises a ^ or ~ catalog entry to the version it resolved, and a catalog-only lockfile change is written instead of skipped. #​1057
Overrides on catalog: A range-keyed override matches a catalog: dependency by its reference, as under pnpm. #​1039, fixes #​771

Package manager

Area What changed Link
nub pack and nub publish Never pack a file from outside the package. A symlinked or absolute main, or a symlinked README, put that file in the tarball. #​1036
workspace: specs Both commands resolve workspace: and catalog: specs and apply publishConfig. The specs shipped verbatim, which made the package uninstallable. #​1036, fixes #​817
nub update at a workspace root Keeps members' locked versions. It re-resolved every member and bumped packages nobody named. #​1043, fixes #​1001
patchedDependencies Git renames, header-only deletions, empty new files and mode changes apply as under pnpm 11. A patched executable keeps its mode. #​1037, fixes #​844, #​845
nub patch-commit Replaces the patch file with one consolidated patch instead of appending a section per round. nub patch resolves its target through the lockfile. #​1010
Workspace .npmrc A command run in a member reads the root's registry and auth. The member's file layers on top under pnpm 10, Yarn 1 and a Nub project, and is not read under pnpm 11, npm or Bun. #​1051
DNS Hosts resolve through the OS with an in-process cache, so VPN-scoped DNS, /etc/resolver/* and Windows NRPT apply.

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/nub-0.x branch from ee52e5c to f0097d1 Compare November 7, 2026 21:44
@renovate renovate Bot changed the title chore(deps): update dependency nub to v0.9.7 chore(deps): update dependency nub to v0.10.0 Nov 7, 2026
@renovate
renovate Bot force-pushed the renovate/nub-0.x branch from f0097d1 to 410c813 Compare November 14, 2026 01:36
@renovate renovate Bot changed the title chore(deps): update dependency nub to v0.10.0 chore(deps): update dependency nub to v0.11.0 Nov 14, 2026
@renovate
renovate Bot force-pushed the renovate/nub-0.x branch from 410c813 to 9974d11 Compare November 17, 2026 02:27
@renovate renovate Bot changed the title chore(deps): update dependency nub to v0.11.0 chore(deps): update dependency nub to v0.11.1 Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant