Skip to content

Commit

Permalink
Bump to v0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 10, 2024
1 parent 59fc15b commit 1f49ca9
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 25 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [0.29.0] - 2024-05-10

### Added

- Added `Prism::CallNode#full_message_loc`, which gives the location including the `=` if there is one.
- A warning for when `# shareable_constant_value` is not used on its own line.
- An error for invalid implicit local variable writes.
- Implicit hash patterns in array patterns are disallowed.
- We now validate that Unicode escape sequences are not surrogates.

### Changed

- All fields named `operator` have been renamed to `binary_operator` for `*OperatorWriteNode` nodes. This is to make it easier to provide C++ support. In the Ruby API, the old fields are aliased to the new fields with a deprecation warning.
- Many updated error messages to more closely match CRuby.
- We ensure keyword parameters do not end in `!` or `?`.
- Fixed some escaping in string literals with control sequences and hex escapes.
- Fix a bug with RBS types when used outside the `ruby/prism` codebase.

## [0.28.0] - 2024-05-03

### Added
Expand Down Expand Up @@ -500,7 +518,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

- 🎉 Initial release! 🎉

[unreleased]: https://github.com/ruby/prism/compare/v0.28.0...HEAD
[unreleased]: https://github.com/ruby/prism/compare/v0.29.0...HEAD
[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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
prism (0.28.0)
prism (0.29.0)

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

#define EXPECTED_PRISM_VERSION "0.28.0"
#define EXPECTED_PRISM_VERSION "0.29.0"

#include <ruby.h>
#include <ruby/encoding.h>
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/2.7/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/3.0/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/3.1/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/3.2/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/3.3/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/3.4/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/jruby/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/truffleruby/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/typecheck/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
prism (0.28.0)
prism (0.29.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions include/prism/version.h
Expand Up @@ -14,7 +14,7 @@
/**
* The minor version of the Prism library as an int.
*/
#define PRISM_VERSION_MINOR 28
#define PRISM_VERSION_MINOR 29

/**
* The patch version of the Prism library as an int.
Expand All @@ -24,6 +24,6 @@
/**
* The version of the Prism library as a constant string.
*/
#define PRISM_VERSION "0.28.0"
#define PRISM_VERSION "0.29.0"

#endif
2 changes: 1 addition & 1 deletion javascript/package.json
@@ -1,6 +1,6 @@
{
"name": "@ruby/prism",
"version": "0.28.0",
"version": "0.29.0",
"description": "Prism Ruby parser",
"type": "module",
"main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion prism.gemspec
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "prism"
spec.version = "0.28.0"
spec.version = "0.29.0"
spec.authors = ["Shopify"]
spec.email = ["ruby@shopify.com"]

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
@@ -1,6 +1,6 @@
[package]
name = "ruby-prism-sys"
version = "0.28.0"
version = "0.29.0"
edition = "2021"
license-file = "../../LICENSE.md"
repository = "https://github.com/ruby/prism"
Expand Down
2 changes: 1 addition & 1 deletion rust/ruby-prism-sys/tests/utils_tests.rs
Expand Up @@ -12,7 +12,7 @@ fn version_test() {
CStr::from_ptr(version)
};

assert_eq!(&cstring.to_string_lossy(), "0.28.0");
assert_eq!(&cstring.to_string_lossy(), "0.29.0");
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions rust/ruby-prism/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ruby-prism"
version = "0.28.0"
version = "0.29.0"
edition = "2021"
license-file = "../../LICENSE.md"
repository = "https://github.com/ruby/prism"
Expand All @@ -26,7 +26,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"

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

[features]
default = ["vendored"]
Expand Down
2 changes: 1 addition & 1 deletion templates/java/org/prism/Loader.java.erb
Expand Up @@ -101,7 +101,7 @@ public class Loader {
expect((byte) 'M', "incorrect prism header");

expect((byte) 0, "prism major version does not match");
expect((byte) 28, "prism minor version does not match");
expect((byte) 29, "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
@@ -1,7 +1,7 @@
import * as nodes from "./nodes.js";

const MAJOR_VERSION = 0;
const MINOR_VERSION = 28;
const MINOR_VERSION = 29;
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
Expand Up @@ -10,7 +10,7 @@ module Prism

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

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

0 comments on commit 1f49ca9

Please sign in to comment.