Upgrade: dependency updates across phases 1-3 #8027
Open
dalibor31 wants to merge 4 commits into
Open
Conversation
Phase 1 - Security: - lodash 4.17.21 -> 4.18.1 (CVE fix) - dompurify 3.3.1 -> 3.4.10 (XSS fixes) - passport 0.4.1 -> 0.7.0 (security fixes) - remove deprecated request/request-promise, use native fetch instead - update semver, simple-git, winston, nodemailer Phase 2 - Light upgrades: - sass 1.27.0 -> 1.101.0 - chokidar 3.5.3 -> 4.0.3 - mysql2 3.16.0 -> 3.22.5 - pg 8.16.3 -> 8.21.0 - cors, cross-env updates Phase 3 - Medium risk: - js-yaml 3.14.0 -> 4.2.0 (safeLoad -> load across 11 files) - markdown-it 11.0.1 -> 14.2.0 (+7 plugin updates) - luxon 1.25.0 -> 3.7.2 - fs-extra 9.0.1 -> 11.3.5 - cheerio 1.0.0-rc.5 -> 1.2.0 - highlight.js 10.3.1 -> 11.11.1 18 files changed, 67 insertions, 79 deletions
- Replace jsonAttributes() with jsonSchema properties (12 models) - Fix connect-session-knex v5 API (master.js) - Fix ajv strict type errors (users.js, settings.js) - Remove JSON.stringify for JSON columns (objection 3 auto-serializes) - Add allowUnionTypes for settings value column
- Revert renderMermaidDiagrams to sync API (mermaid 8.x) - Revert page.vue mermaidAPI.initialize change - Revert webpack config back to webpack 4 - Clean up vuetify-loader patch and shim files
- Remove lingering JSON.stringify calls on 4 auto-serialized JSON columns (group create/import, page create/update) — Objection 3 handles this automatically - Add response.ok checks and AbortSignal.timeout to all 4 fetch call sites (contribute, performUpgrade, azure autocomplete, html-image-prefetch) - html-image-prefetch renderer now skips images without content-type header instead of encoding HTML error body as base64 PNG
1aa7448 to
681a9f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 - Light upgrades:
- sass 1.27.0 -> 1.101.0
- chokidar 3.5.3 -> 4.0.3
- mysql2 3.16.0 -> 3.22.5
- pg 8.16.3 -> 8.21.0
- cors, cross-env updates
Phase 3 - Medium risk:
- js-yaml 3.14.0 -> 4.2.0 (safeLoad -> load across 11 files)
- markdown-it 11.0.1 -> 14.2.0 (+7 plugin updates)
- luxon 1.25.0 -> 3.7.2
- fs-extra 9.0.1 -> 11.3.5
- cheerio 1.0.0-rc.5 -> 1.2.0
- highlight.js 10.3.1 -> 11.11.1
Knex + Objection 3.x migration:
- knex 0.21.7 -> 3.2.10
- objection 2.2.18 -> 3.1.5
- connect-session-knex 2.0.0 -> 5.0.0
- replace jsonAttributes() with jsonSchema properties (12 models)