Skip to content

Commit e337ad6

Browse files
committed
Bump version to 7.0.0, update CHANGELOG
1 parent 59b4121 commit e337ad6

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [7.0.0] - 2025-03-03
7+
### Added
8+
- Messages now show the file and line number that the message originated from. (Thanks @apiology)
9+
- Sord will now recognise `Class<T, E>` as an equivalent of `Class<T>, Class<E>`, similar to the
10+
existing behaviour for `Array`. (Thanks @tomoasleep)
11+
12+
### Changed
13+
- **Breaking change**: Now uses Commander 5.0 to support Ruby 3.3. This increases the minimum
14+
required Ruby version to 3.0.
15+
- **Breaking change**: Parlour version has been bumped significantly, from 5.0 to 9.1. This may be
16+
relevant if you're using other Parlour plugins alongside Sord.
17+
18+
### Fixed
19+
- Sord now generates correct RBI when heredoc strings are used in constants. (Thanks @apiology)
20+
- Fixed error when using as a Parlour plugin, but without any custom tags defined. (Thanks
21+
@dsisnero)
22+
- Fixed incorrect precedence when union types were nested inside hashes. (Thanks @apiology)
23+
- Sord now adds `::` when required, to disambiguate nested namespaces from top-level ones. (Thanks
24+
@sinsoku)
25+
626
## [6.0.0] - 2023-05-02
727
### Changed
828
- **Breaking change**: Now targets RBS 3.0

lib/sord/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# typed: strong
22
module Sord
3-
VERSION = '6.0.0'
3+
VERSION = '7.0.0'
44
end

rbi/sord.rbi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# typed: strong
22
# typed: strong
33
module Sord
4-
VERSION = T.let('5.0.0', T.untyped)
4+
VERSION = T.let('7.0.0', T.untyped)
55

66
# Handles writing logs to stdout and any other classes which request them.
77
module Logging
@@ -178,12 +178,12 @@ module Sord
178178
sig { params(hash: T.untyped).returns(T.untyped) }
179179
def self.load_gem_objects(hash); end
180180

181-
# sord omit - no YARD type given for "all_decls", using untyped
181+
# sord omit - no YARD type given for "env", using untyped
182182
# sord omit - no YARD type given for "names_to_paths", using untyped
183183
# sord omit - no YARD type given for "path", using untyped
184184
# sord omit - no YARD return type given, using untyped
185-
sig { params(all_decls: T.untyped, names_to_paths: T.untyped, path: T.untyped).returns(T.untyped) }
186-
def self.add_rbs_objects_to_paths(all_decls, names_to_paths, path = []); end
185+
sig { params(env: T.untyped, names_to_paths: T.untyped, path: T.untyped).returns(T.untyped) }
186+
def self.add_rbs_objects_to_paths(env, names_to_paths, path = []); end
187187

188188
# sord omit - no YARD type given for "nodes", using untyped
189189
# sord omit - no YARD type given for "names_to_paths", using untyped
@@ -253,6 +253,7 @@ module Sord
253253
def add_constants(item); end
254254

255255
# sord warn - YARD::CodeObjects::NamespaceObject wasn't able to be resolved to a constant in this project
256+
# sord warn - Parlour::TypedObject wasn't able to be resolved to a constant in this project
256257
# Adds comments to an object based on a docstring.
257258
#
258259
# _@param_ `item`
@@ -415,6 +416,7 @@ module Sord
415416
def self.split_type_parameters(params); end
416417

417418
# sord warn - YARD::CodeObjects::Base wasn't able to be resolved to a constant in this project
419+
# sord warn - Parlour::Types::Type wasn't able to be resolved to a constant in this project
418420
# Converts a YARD type into a Parlour type.
419421
#
420422
# _@param_ `yard` — The YARD type.
@@ -425,7 +427,9 @@ module Sord
425427
sig { params(yard: T.any(T::Boolean, T::Array[T.untyped], String), item: YARD::CodeObjects::Base, config: Configuration).returns(Parlour::Types::Type) }
426428
def self.yard_to_parlour(yard, item, config); end
427429

430+
# sord warn - Parlour::Types::Type wasn't able to be resolved to a constant in this project
428431
# sord warn - YARD::CodeObjects::Base wasn't able to be resolved to a constant in this project
432+
# sord warn - Parlour::Types::Type wasn't able to be resolved to a constant in this project
429433
# Handles SORD_ERRORs.
430434
#
431435
# _@param_ `name`
@@ -445,6 +449,7 @@ module Sord
445449
end
446450
def self.handle_sord_error(name, log_warning, item, replace_errors_with_untyped); end
447451

452+
# sord warn - Parlour::Types::Type wasn't able to be resolved to a constant in this project
448453
# Given a YARD duck type string, attempts to convert it to one of a list of pre-defined RBS
449454
# built-in interfaces.
450455
#

0 commit comments

Comments
 (0)