Skip to content

build(deps): update quickjs requirement from ~> 0.18.0 to ~> 0.19.0#31

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/quickjs-tw-0.19.0
Open

build(deps): update quickjs requirement from ~> 0.18.0 to ~> 0.19.0#31
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/quickjs-tw-0.19.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 29, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on quickjs to permit the latest version.

Release notes

Sourced from quickjs's releases.

v0.19.0

Highlights

This release makes polyfills extensible and slims the default gem by ~2 MB: the bundled Intl polyfill is gone, replaced by an opt-in companion gem registered through a new public API.

Quickjs.register_polyfill: Pluggable polyfill registration

A new public API for registering polyfills that consumers can enable via features:. This lets companion gems ship JavaScript polyfills without baking them into quickjs.rb itself.

Quickjs.register_polyfill(name, source:, init: nil)
  • name (Symbol) — the feature symbol consumers list in features:
  • source: (String or Proc returning String) — JS source for the polyfill. The Proc form defers the read so companion gems can register at require time without paying for files no consumer enables.
  • init: (String, optional) — JS that runs before the bundle, eval'd as part of the same compilation unit (e.g. globalThis.Intl ||= {};).
# In a companion gem:
Quickjs.register_polyfill(
  :polyfill_intl_collator,
  source: -> { File.read(File.expand_path('intl-collator-en.min.js', __dir__)) },
  init:   'globalThis.Intl ||= {};'
)
Downstream:
require 'quickjs-polyfill-intl/collator'
vm = Quickjs::VM.new(features: [:polyfill_intl_collator])

First VM with a given polyfill pays the parse cost; subsequent VMs reuse the cached bytecode.

Contributed by @​ursm in #52.

Breaking changes

Bundled Intl polyfill removed

The ~2 MB FormatJS Intl polyfill is no longer bundled. Quickjs::POLYFILL_INTL is removed with no deprecation shim — features: [Quickjs::POLYFILL_INTL] now raises NameError.

Intl APIs now live in the quickjs-polyfill-intl companion gem with granular per-API symbols (Collator, DateTimeFormat, NumberFormat, PluralRules, Locale, …), registered through Quickjs.register_polyfill. To migrate:

# Gemfile
gem 'quickjs-polyfill-intl'
require 'quickjs-polyfill-intl/collator'
vm = Quickjs::VM.new(features: [:polyfill_intl_collator])
</tr></table> 

... (truncated)

Commits
  • 18e053b prepare v0.19.0
  • 5d318dc prepare v0.19.0.rc1
  • c830ad5 Document Proc form for register_polyfill source:
  • cc4aed8 Bump required_ruby_version to >= 3.2.0
  • 9b6d269 prepare v0.19.0.pre2
  • b5de5f4 Fix missing blank-line separator in benchmark output
  • f7a2c6a Merge pull request #55 from ursm/remove-intl-polyfill
  • 950021e Remove bundled Intl polyfill; move to quickjs-polyfill-intl companion gem
  • 61f5b3d prepare v0.19.0.pre1
  • 3a10a50 Merge pull request #52 from ursm/register-polyfill
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [quickjs](https://github.com/hmsk/quickjs.rb) to permit the latest version.
- [Release notes](https://github.com/hmsk/quickjs.rb/releases)
- [Changelog](https://github.com/hmsk/quickjs.rb/blob/main/CHANGELOG.md)
- [Commits](hmsk/quickjs.rb@v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: quickjs
  dependency-version: 0.19.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants