Skip to content

Commit

Permalink
Bump version to 5.84.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Aug 29, 2024
1 parent 5c0e37b commit 75ac94c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=== master
=== 5.84.0 (2024-09-01)

* Support creating VIRTUAL tables on SQLite via the create_table :using option (jeremyevans)

Expand Down
33 changes: 33 additions & 0 deletions doc/release_notes/5.84.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= New Features

* The pg_json_ops extension now supports the json_exists, json_value,
and json_query functions added in PostgreSQL 17:

Sequel.extension :pg_json_ops
j = Sequel.pg_json_op(:jsonb_column)
j.exists('$.foo') # json_exists(jsonb_column, '$.foo')
j.value('$.foo') # json_value(jsonb_column, '$.foo')
j.query('$.foo') # json_query(jsonb_column, '$.foo')

j.exists('$.foo', passing: {a: 1}) # json_exists(jsonb_column, '$.foo' PASSING 1 AS a)
j.value('$.foo', returning: Time) # json_value(jsonb_column, '$.foo' RETURNING timestamp)
j.query('$.foo', wrapper: true) # json_query(jsonb_column, '$.foo' WITH WRAPPER)

All clauses supported by PostgreSQL 17 are supported via options
(supported options differ per method):

* :on_error : ON ERROR
* :on_empty : ON EMPTY
* :passing : PASSING
* :returning : RETURNING
* :wrapper : WITH WRAPPER | OMIT QUOTES

* On SQLite, Database#create_table now supports a :using option to
create a virtual table:

DB.create_table(:t, using: 'fts5(email)')
# CREATE VIRTUAL TABLE t USING fts5(email)

= Other Improvements

* The gem size has been reduced 25% by removing documentation.
4 changes: 2 additions & 2 deletions lib/sequel/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ module Sequel

# The minor version of Sequel. Bumped for every non-patch level
# release, generally around once a month.
MINOR = 83
MINOR = 84

# The tiny version of Sequel. Usually 0, only bumped for bugfix
# releases that fix regressions from previous versions.
TINY = 1
TINY = 0

# The version of Sequel you are using, as a string (e.g. "2.11.0")
VERSION = [MAJOR, MINOR, TINY].join('.').freeze
Expand Down

0 comments on commit 75ac94c

Please sign in to comment.