Skip to content

Commit

Permalink
version bump to v2.1.0
Browse files Browse the repository at this point in the history
also, some additional information in the CHANGELOG and README files.
  • Loading branch information
flavorjones committed Sep 24, 2024
1 parent 04d111c commit 9a18cb9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
25 changes: 8 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# sqlite3-ruby Changelog

## prerelease 2.1.0.rc3 / 2024-09-18

### Improved

- Allow suppression of fork safety warnings. [#566] @flavorjones


## prerelease 2.1.0.rc2 / 2024-09-18

### Improved

- Address a performance regression in 2.1.0.rc1.


## prerelease 2.1.0.rc1 / 2024-09-18
## 2.1.0 / 2024-09-24

### Ruby

Expand All @@ -28,9 +14,9 @@ Sqlite itself is [not fork-safe](https://www.sqlite.org/howtocorrupt.html#_carry
- All open writable database connections carried across a `fork()` will immediately be closed in the child process to mitigate the risk of corrupting the database file.
- These connections will be incompletely closed ("discarded") which will result in a one-time memory leak in the child process.

If it's at all possible, we strongly recommend that you close writable database connections in the parent before forking.
If it's at all possible, we strongly recommend that you close writable database connections in the parent before forking. If absolutely necessary (and you know what you're doing), you may suppress the fork safety warnings by calling `SQLite3::ForkSafety.suppress_warnings!`.

See the README "Fork Safety" section and `adr/2024-09-fork-safety.md` for more information. [#558] @flavorjones
See the README's "Fork Safety" section and `adr/2024-09-fork-safety.md` for more information. [#558, #565, #566] @flavorjones


### Improved
Expand All @@ -39,6 +25,11 @@ See the README "Fork Safety" section and `adr/2024-09-fork-safety.md` for more i
- When setting a Database `busy_handler`, fire the write barrier to prevent potential crashes during the GC mark phase. [#556] @jhawthorn


### Documentation

- The `FAQ.md` has been updated to fix some inaccuracies. [#562] @rickhull


## 2.0.4 / 2024-08-13

### Dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ To help protect users of this gem from accidental corruption due to this lack of
connections in the child will incur a small one-time memory leak per connection, but that's
preferable to potentially corrupting your database.

Whenever possible, close writable connections in the parent before forking.
Whenever possible, close writable connections in the parent before forking. If absolutely necessary (and you know what you're doing), you may suppress the fork safety warnings by calling `SQLite3::ForkSafety.suppress_warnings!`.

See [./adr/2024-09-fork-safety.md](./adr/2024-09-fork-safety.md) for more information and context.

Expand Down
2 changes: 1 addition & 1 deletion lib/sqlite3/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SQLite3
VERSION = "2.1.0.rc3"
VERSION = "2.1.0"
end

0 comments on commit 9a18cb9

Please sign in to comment.