Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 47 additions & 42 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [2.1.0] - 2026-10-28

### Added

- Add `Version::CRuby4_0` to the Rust bindings. `Version::CRuby3_5` remains available but is deprecated in favor of the new name; both select Ruby 4.0 syntax.
- Let embedders set the allocation size for the first block allocated in an arena via `PM_ARENA_INITIAL_SIZE`.
- Let embedders set the minimum initial size for the constant pool via `PM_CONSTANT_POOL_MIN_CAPACITY`.

## [2.0.0] - 2026-10-21

Expand Down Expand Up @@ -841,45 +845,46 @@ Note that for this major version, almost every change listed below is breaking.

- 🎉 Initial release! 🎉

[unreleased]: https://github.com/ruby/prism/compare/v2.0.0...HEAD
[2.0.0]: https://github.com/ruby/prism/compare/v1.9.0...v2.0.0
[1.9.0]: https://github.com/ruby/prism/compare/v1.8.1...v1.9.0
[1.8.1]: https://github.com/ruby/prism/compare/v1.8.0...v1.8.1
[1.8.0]: https://github.com/ruby/prism/compare/v1.7.0...v1.8.0
[1.7.0]: https://github.com/ruby/prism/compare/v1.6.0...v1.7.0
[1.6.0]: https://github.com/ruby/prism/compare/v1.5.2...v1.6.0
[1.5.2]: https://github.com/ruby/prism/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/ruby/prism/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/ruby/prism/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/ruby/prism/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/ruby/prism/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/ruby/prism/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/ruby/prism/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/ruby/prism/compare/v0.30.0...v1.0.0
[0.30.0]: https://github.com/ruby/prism/compare/v0.29.0...v0.30.0
[0.29.0]: https://github.com/ruby/prism/compare/v0.28.0...v0.29.0
[0.28.0]: https://github.com/ruby/prism/compare/v0.27.0...v0.28.0
[0.27.0]: https://github.com/ruby/prism/compare/v0.26.0...v0.27.0
[0.26.0]: https://github.com/ruby/prism/compare/v0.25.0...v0.26.0
[0.25.0]: https://github.com/ruby/prism/compare/v0.24.0...v0.25.0
[0.24.0]: https://github.com/ruby/prism/compare/v0.23.0...v0.24.0
[0.23.0]: https://github.com/ruby/prism/compare/v0.22.0...v0.23.0
[0.22.0]: https://github.com/ruby/prism/compare/v0.21.0...v0.22.0
[0.21.0]: https://github.com/ruby/prism/compare/v0.20.0...v0.21.0
[0.20.0]: https://github.com/ruby/prism/compare/v0.19.0...v0.20.0
[0.19.0]: https://github.com/ruby/prism/compare/v0.18.0...v0.19.0
[0.18.0]: https://github.com/ruby/prism/compare/v0.17.1...v0.18.0
[0.17.1]: https://github.com/ruby/prism/compare/v0.17.0...v0.17.1
[0.17.0]: https://github.com/ruby/prism/compare/v0.16.0...v0.17.0
[0.16.0]: https://github.com/ruby/prism/compare/v0.15.1...v0.16.0
[0.15.1]: https://github.com/ruby/prism/compare/v0.15.0...v0.15.1
[0.15.0]: https://github.com/ruby/prism/compare/v0.14.0...v0.15.0
[0.14.0]: https://github.com/ruby/prism/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/ruby/prism/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/ruby/prism/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/ruby/prism/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/ruby/prism/compare/v0.9.0...v0.10.0
[0.9.0]: https://github.com/ruby/prism/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/ruby/prism/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/ruby/prism/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/ruby/prism/compare/d60531...v0.6.0
[unreleased]: https://github.com/ruby/prism3/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/ruby/prism3/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/ruby/prism3/compare/v1.9.0...v2.0.0
[1.9.0]: https://github.com/ruby/prism3/compare/v1.8.1...v1.9.0
[1.8.1]: https://github.com/ruby/prism3/compare/v1.8.0...v1.8.1
[1.8.0]: https://github.com/ruby/prism3/compare/v1.7.0...v1.8.0
[1.7.0]: https://github.com/ruby/prism3/compare/v1.6.0...v1.7.0
[1.6.0]: https://github.com/ruby/prism3/compare/v1.5.2...v1.6.0
[1.5.2]: https://github.com/ruby/prism3/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/ruby/prism3/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/ruby/prism3/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/ruby/prism3/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/ruby/prism3/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/ruby/prism3/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/ruby/prism3/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/ruby/prism3/compare/v0.30.0...v1.0.0
[0.30.0]: https://github.com/ruby/prism3/compare/v0.29.0...v0.30.0
[0.29.0]: https://github.com/ruby/prism3/compare/v0.28.0...v0.29.0
[0.28.0]: https://github.com/ruby/prism3/compare/v0.27.0...v0.28.0
[0.27.0]: https://github.com/ruby/prism3/compare/v0.26.0...v0.27.0
[0.26.0]: https://github.com/ruby/prism3/compare/v0.25.0...v0.26.0
[0.25.0]: https://github.com/ruby/prism3/compare/v0.24.0...v0.25.0
[0.24.0]: https://github.com/ruby/prism3/compare/v0.23.0...v0.24.0
[0.23.0]: https://github.com/ruby/prism3/compare/v0.22.0...v0.23.0
[0.22.0]: https://github.com/ruby/prism3/compare/v0.21.0...v0.22.0
[0.21.0]: https://github.com/ruby/prism3/compare/v0.20.0...v0.21.0
[0.20.0]: https://github.com/ruby/prism3/compare/v0.19.0...v0.20.0
[0.19.0]: https://github.com/ruby/prism3/compare/v0.18.0...v0.19.0
[0.18.0]: https://github.com/ruby/prism3/compare/v0.17.1...v0.18.0
[0.17.1]: https://github.com/ruby/prism3/compare/v0.17.0...v0.17.1
[0.17.0]: https://github.com/ruby/prism3/compare/v0.16.0...v0.17.0
[0.16.0]: https://github.com/ruby/prism3/compare/v0.15.1...v0.16.0
[0.15.1]: https://github.com/ruby/prism3/compare/v0.15.0...v0.15.1
[0.15.0]: https://github.com/ruby/prism3/compare/v0.14.0...v0.15.0
[0.14.0]: https://github.com/ruby/prism3/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/ruby/prism3/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/ruby/prism3/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/ruby/prism3/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/ruby/prism3/compare/v0.9.0...v0.10.0
[0.9.0]: https://github.com/ruby/prism3/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/ruby/prism3/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/ruby/prism3/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/ruby/prism3/compare/d60531...v0.6.0
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion ext/prism/extension.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef PRISM_EXT_NODE_H
#define PRISM_EXT_NODE_H

#define EXPECTED_PRISM_VERSION "2.0.0"
#define EXPECTED_PRISM_VERSION "2.1.0"

#include <ruby.h>
#include <ruby/encoding.h>
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/2.7/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/3.0/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/3.1/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/3.2/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/3.3/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/3.4/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/4.0/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.3)
onigmo (0.1.0)
parser (3.3.12.0)
parser (3.3.13.0)
ast (~> 2.4.1)
racc
power_assert (3.1.0)
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/4.1/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (2.0.0)
prism (2.1.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions include/prism/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern "C" {
/**
* The minor version of the Prism library as an int.
*/
#define PRISM_VERSION_MINOR 0
#define PRISM_VERSION_MINOR 1

/**
* The patch version of the Prism library as an int.
Expand All @@ -30,7 +30,7 @@ extern "C" {
/**
* The version of the Prism library as a constant string.
*/
#define PRISM_VERSION "2.0.0"
#define PRISM_VERSION "2.1.0"

/**
* The prism version and the serialization format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void testMBCIdentifier() {
@Test
public void testVersion() {
try (Prism prism = new Prism()) {
assertEquals("2.0.0", prism.version());
assertEquals("2.1.0", prism.version());
}
}
}
2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/prism",
"version": "2.0.0",
"version": "2.1.0",
"description": "Prism Ruby parser",
"type": "module",
"main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion prism.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "prism"
spec.version = "2.0.0"
spec.version = "2.1.0"
spec.authors = ["Ruby developers"]
spec.email = ["ruby-core@ruby-lang.org"]

Expand Down
4 changes: 2 additions & 2 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/ruby-prism-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruby-prism-sys"
version = "2.0.0"
version = "2.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/ruby/prism"
Expand Down
2 changes: 1 addition & 1 deletion rust/ruby-prism-sys/src/bindings.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/ruby-prism-sys/tests/utils_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ fn version_test() {
CStr::from_ptr(version)
};

assert_eq!(&cstring.to_string_lossy(), "2.0.0");
assert_eq!(&cstring.to_string_lossy(), "2.1.0");
}
4 changes: 2 additions & 2 deletions rust/ruby-prism/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruby-prism"
version = "2.0.0"
version = "2.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/ruby/prism"
Expand All @@ -26,7 +26,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

[dependencies]
ruby-prism-sys = { version = "2.0.0", path = "../ruby-prism-sys" }
ruby-prism-sys = { version = "2.1.0", path = "../ruby-prism-sys" }

[features]
default = ["vendored"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class Loader {
expect((byte) 'M', "incorrect prism header");

expect((byte) 2, "prism major version does not match");
expect((byte) 0, "prism minor version does not match");
expect((byte) 1, "prism minor version does not match");
expect((byte) 0, "prism patch version does not match");

expect((byte) 1, "Loader.java requires no location fields in the serialized output");
Expand Down
2 changes: 1 addition & 1 deletion templates/javascript/src/deserialize.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Location } from "./location.js";
import { Source } from "./source.js";

const MAJOR_VERSION = 2;
const MINOR_VERSION = 0;
const MINOR_VERSION = 1;
const PATCH_VERSION = 0;

/* The DataView getFloat64 function takes an optional second argument that
Expand Down
2 changes: 1 addition & 1 deletion templates/lib/prism/serialize.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Prism

# The minor version of prism that we are expecting to find in the serialized
# strings.
MINOR_VERSION = 0
MINOR_VERSION = 1

# The patch version of prism that we are expecting to find in the serialized
# strings.
Expand Down
Loading