Repository navigation
refactor: Bump jazzy from 0.15.4 to 0.15.5 and sqlite3 from 1.7.3 to 2.10.2 - #1946
Conversation
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Update the jazzy version Gemfile |
The pinned jazzy version changes from 0.15.4 to 0.15.5. |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Suggested reviewers: parseplatformorg
Merge Risk: 
Minimal · up to 4c053
-
The dependency updates are consistent with the stated documentation-tooling purpose and are mergeable.
Caution
Pre-merge checks failed
Please resolve all errors before merging. Addressing warnings is optional.
- Ignore

Passed checks: 5 passed
-
Full details: Security Check
-
Explanation
No security vulnerability pattern is introduced. The authoritative diff changes only
GemfileandGemfile.lock:jazzymoves from 0.15.4 to 0.15.5, andsqlite3moves from 1.7.3 to 2.10.2 with matching checksums.Scripts/jazzy.shuses the gem only for documentation generation, and workflows invoke it in docs jobs. No application source or security-sensitive logic changes. The update removes the older vulnerable dependency rather than adding one.
-
Full details: Description check
-
Explanation
The description is thorough and covers the change. It explains the jazzy 0.15.4 to 0.15.5 pin change in the Gemfile and the sqlite3 1.7.3 to 2.10.2 update in Gemfile.lock. It gives the reason for choosing 2.10.2 over 2.9.6 (GHSA-4fqr-96q8-xrfx), a security table, a Ruby and Bundler compatibility note, a changelog review, a breaking-changes section, a code-changes section, and a verification section. It does not follow the Parse Platform template. The checklist items (vulnerability disclosure and issue reference) are absent. The 'Issue Description' section with 'Closes:' is absent. The 'Approach' section is folded into other headings. The TODO checkboxes for tests and documentation are absent. The author does not state whether tests were added. Since no code behavior changes, the missing test and documentation items may not apply, but the author should say so explicitly.
Resolution
Add the template's required parts. (1) Complete the checklist. Check the vulnerability-disclosure box, which applies because the PR addresses public Dependabot alerts, and state the reason in the description. Check the issue-reference box. If no tracking issue exists, create one or link the Dependabot alerts as the reference. (2) Replace the 'Closes: FILL_THIS_OUT' line. Name the issue, or state that no issue closes. (3) Add an 'Approach' section, or rename the existing security and verification text under that heading. (4) Under 'TODOs before merging', state whether tests are needed. Mark 'Add tests' and 'Add changes to documentation' as done, or state why they do not apply, since this change is a dependency bump with no code change. Delete any TODO that does not apply.
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1946 +/- ##
===========================================
+ Coverage 64.24% 85.73% +21.49%
===========================================
Files 201 282 +81
Lines 23233 31241 +8008
===========================================
+ Hits 14926 26786 +11860
+ Misses 8307 4455 -3852 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🎉 This change has been released in version 7.1.0 |
Development-only security update of the docs toolchain. It addresses Dependabot alerts that have no Dependabot PR.
sqlite3is a dependency ofjazzy, whichScripts/jazzy.shuses to generate the API docs; neither is part of the SDK.jazzy0.15.4 requiressqlite3 ~> 1.3, so every patchedsqlite3(2.9.5 or later) needsjazzy0.15.5, the latest release, which widens the requirement to>= 1.3, < 3.0. This PR:jazzy0.15.4 → 0.15.5 in theGemfile(still an exact pin)sqlite31.7.3 → 2.10.2 inGemfile.lockWhy sqlite3 2.10.2 and not 2.9.6
The first patched version is 2.9.6 for alert 140 and 2.9.5 for alert 121. This PR goes to 2.10.2 because 2.9.6 is still affected by GHSA-4fqr-96q8-xrfx (medium, CVSS 4.8). sqlite3-ruby cast string lengths to
int, so on 64-bit platforms a string of 4 GiB or more was truncated: the SQL of a query, a String or Blob bound to a statement, or one returned from a custom function. A truncated query could lose its trailing clauses. The advisory affects<= 2.10.1and is fixed in 2.10.2. That makes 2.10.2 the lowest version that fixes every known sqlite3-ruby advisory. It is also the latest release.GHSA-4fqr-96q8-xrfx is a repository advisory that sqlite3-ruby published on 2026-10-26. It is not yet in GitHub's global advisory database, so there is no Dependabot alert for it here yet.
Security
>= 1.4.0, <= 2.9.5<= 2.9.4<= 2.10.1These are the only open alerts for
Gemfile.lock. The other 23 are fixed, and this change brings none of them back. The two other sqlite3-ruby advisories, GHSA-j7fr-3v8c-3qc3 (>= 2.1.0, <= 2.9.4) and GHSA-mgvv-5mxp-xq67 (= 1.5.0), affect neither 1.7.3 nor 2.10.2.Ruby and Bundler
sqlite32.10.2 requires Ruby >= 3.2, and its precompiledarm64-darwingem requires >= 3.2, < 4.1.dev. The workflows that install gems useruby/setup-rubywithoutruby-version, so they run Ruby 4.0.0 from.ruby-version. No Ruby change is needed.jazzy0.15.5 still requires Ruby >= 2.6.3.The lock keeps
BUNDLED WITH 4.0.10, itsPLATFORMS(arm64-darwin-25,ruby) and theCHECKSUMSsection. The release workflows therefore see the same lock format as onmaster. This includes the extra Bundler 2.4.22 install inrelease-automated.yml.sqlite32.10.2 has two lock entries, the same wayffialready does:rubyplatform, which still depends onmini_portile2 ~> 2.8.0(2.8.9, unchanged)arm64-darwingem1.7.3 had only a source gem entry, because its precompiled gems require Ruby < 3.4.
Changes
jazzy0.15.4 → 0.15.5 (changelog, diff):--objc).mustache1.1.3: the theme's template path is passed tomustacheas a String. The lock keepsmustache1.1.2.sqlite3requirement widens from~> 1.3to>= 1.3, < 3.0. The other runtime requirements are unchanged.search_builder.rbadds a workaround foractivesupport< 8 withjson3. jazzy redefinesJSON.parseandJSON.generateso that they drop a:quirks_modeoption before calling the original methods. The redefined methods accept options only as keywords. The lock keepsjson2.19.9 andactivesupport7.2.3.1.~> 4.0. It is not installed here.print_option_helpinlib/jazzy/config.rbusesgrep(String)instead ofselect { |opt| opt.is_a?(String) }. The result is the same, and it only affects--helpoutput.Scripts/jazzy.shstill apply.sqlite31.7.3 → 2.10.2 (changelog):Database#busy_handler_timeout=SUPER_JOURNALflagStatement#stat,#memused,#sqland#expanded_sqlSQLite3.statusResultSethashesbusy_handlerResultSetinstance variable removedSQLite3::Exceptionor a subclassDatabase#columnsreturns frozen stringsDatabase#transactionreturns the block's resultDatabase#execute_batchreturns the last statement's resultSQLite3::Translatorand type translationtypesandfieldson result rowsDatabase#execute,#execute_batchand#querySQLite3::VersionProxyFunctionProxy#countand#set_errorArgumentErrorwhenexecute,execute_batchorqueryget several bind parameters that are not in an Array.execute_batchwith some non-ASCII strings;preparenow encodes the remainder as UTF-8.Database#quoteallocates fewer strings.fork()are closed in the child.sqlite3_close_v2) instead of raisingBusyException.busy_handler.Database#prepare.SQLITE_DBPAGEandDBSTATextensions are enabled.Database#optimizeandSQLite3::VERSION_INFO.Database#encoding=for UTF-16BE.pkg-config.Database#load_extensionaccepts objects that respond to#to_path;Database.newacceptsextensions:.ForkSafetywarnings.Statement#named_params; docstring improvements.traceandauthorizer=open_v2andopen16replacing a live connectiondefine_functiondefine_functionblock leaving the connection's mutex heldDatabase.newraisesArgumentErrorfor a filename or VFS name that contains a NUL byte.ALTER TABLErejects the column namesROWID,_ROWID_andOID; the authorizer runs for functions inDEFAULTclauses; Windows XP is no longer supported.ResultSet#eachand#each_hashreturn anEnumeratorwithout a block;Database#serializeand#deserialize.Database#statement_timeout=interrupted statements almost immediately.Statement#typesallocates fewer strings.ResultSet#eachand#each_hashwith a block return the result set, soDatabase#executeand#execute2with a block return the closedResultSetinstead ofnil.Statement#columnsand#typesreturn frozen arrays.Statement#column_decltypeand#typesreturn UTF-8 strings.Database#define_aggregatorno longer creates an anonymous class per function.RangeErrorfor strings longer thanINT_MAXbytes.finalizereturns a value that can't be convertedDatabase#collationshash is changedtrace,busy_handleror authorizer callback raises, or when an interrupt arrives while an aggregate handler is being createdthrowin a custom functionexecute_batch2raises the custom function's exception.Statement#reset!andDatabase#closeare discarded.Thread.current[:__sqlite3_callback_frames__], so a query on a frozenThreadraisesFrozenError.SQLite3::MemoryExceptionis raised instead of aborting when an aggregate context can't be allocated.Statement#stepallocates less;ObjectSpace.dumpreports theDatabaseandStatementtype names.How jazzy uses sqlite3
On every run, jazzy builds the search index of the Dash docset (
docs/api/docsets/Parse.docset/Contents/Resources/docSet.dsidx) inDocsetBuilder#create_index, with three calls:SQLite3::Database.new(path) { |db| ... }db.executewithCREATE TABLEandCREATE UNIQUE INDEXdb.execute('INSERT OR IGNORE ...', [name, type, path]), with the bind parameters in an ArrayNone of the removed or changed APIs above affects these calls:
executewith a block returns the result set, andStatement#columnsand#typesreturn frozen arrays. jazzy passes no block and doesn't call either method.INT_MAXlimit.tar.Breaking Changes
None affecting this repository.
sqlite32.0.0 is a major release that removes long-deprecated APIs and drops Ruby 2.7. Later 2.x releases drop Ruby 3.0 and 3.1. See the Changes and How jazzy uses sqlite3 sections above.Code Changes Required
None. Only the
Gemfile(thejazzypin) andGemfile.lockchange. In the lock, the changes are:jazzyentry and itssqlite3requirementsqlite3entriesjazzyline inDEPENDENCIESCHECKSUMSlinesNo other gem changes.
Verification
The project uses Ruby 4.0.0, which is not available locally, so neither Bundler nor jazzy was run locally. The lock entries were edited by hand from the rubygems.org compact index. A script then checked the lock against the index:
CHECKSUMSentry matches the index. The SHA-256 of the downloaded gems (jazzy0.15.5 and bothsqlite32.10.2 gems) matches too, as does the gemspec metadata inside them.DEPENDENCIESmatches theGemfilepins, and onlyjazzyandsqlite3change in the lock.The real validation is CI. Every CI job installs the gems with
bundle installthroughruby/setup-rubywithbundler-cache, from the frozen lock, and Bundler checks the downloaded gems againstCHECKSUMS. Thedocsjob also runsScripts/jazzy.sh, which builds the docset search index withsqlite32.10.2.Summary by CodeRabbit