Skip to content

Commit

Permalink
🐛 Fixed NQL filters for single letter slugs (TryGhost#21340)
Browse files Browse the repository at this point in the history
fixes TryGhost#20133
- includes fix to support single letter slugs
  • Loading branch information
9larsons authored and tilak999 committed Nov 20, 2024
1 parent fd64d04 commit 5182375
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/admin-x-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@tryghost/color-utils": "0.2.2",
"@tryghost/kg-unsplash-selector": "0.2.5",
"@tryghost/limit-service": "1.2.14",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/timezone-data": "0.4.3",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
4 changes: 2 additions & 2 deletions ghost/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@tryghost/koenig-lexical": "1.3.26",
"@tryghost/limit-service": "1.2.14",
"@tryghost/members-csv": "0.0.0",
"@tryghost/nql": "0.12.6",
"@tryghost/nql-lang": "0.6.2",
"@tryghost/nql": "0.12.7",
"@tryghost/nql-lang": "0.6.3",
"@tryghost/string": "0.2.12",
"@tryghost/timezone-data": "0.4.3",
"animejs": "3.2.2",
Expand Down
2 changes: 1 addition & 1 deletion ghost/bookshelf-repository/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"c8": "7.14.0",
"mocha": "10.2.0",
"sinon": "15.2.0",
"@tryghost/nql": "0.12.6"
"@tryghost/nql": "0.12.7"
},
"dependencies": {
"@tryghost/mongo-utils": "0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion ghost/collections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@tryghost/errors": "1.3.5",
"@tryghost/in-memory-repository": "0.0.0",
"@tryghost/logging": "2.4.18",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/nql-filter-expansions": "0.0.0",
"@tryghost/post-events": "0.0.0",
"@tryghost/tpl": "0.1.32",
Expand Down
2 changes: 1 addition & 1 deletion ghost/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"@tryghost/mw-version-match": "0.0.0",
"@tryghost/mw-vhost": "0.0.0",
"@tryghost/nodemailer": "0.3.45",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/oembed-service": "0.0.0",
"@tryghost/package-json": "0.0.0",
"@tryghost/post-revisions": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions ghost/custom-theme-settings-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lib"
],
"devDependencies": {
"@tryghost/nql-lang": "0.6.2",
"@tryghost/nql-lang": "0.6.3",
"c8": "8.0.1",
"mocha": "10.2.0",
"should": "13.2.3",
Expand All @@ -27,7 +27,7 @@
"dependencies": {
"@tryghost/debug": "0.1.32",
"@tryghost/errors": "1.3.5",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/tpl": "0.1.32",
"lodash": "4.17.21"
}
Expand Down
2 changes: 1 addition & 1 deletion ghost/in-memory-repository/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"sinon": "15.2.0"
},
"dependencies": {
"@tryghost/nql": "0.12.6"
"@tryghost/nql": "0.12.7"
}
}
2 changes: 1 addition & 1 deletion ghost/link-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@tryghost/errors": "1.3.5",
"@tryghost/link-redirects": "0.0.0",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/tpl": "0.1.32",
"bson-objectid": "2.0.4",
"lodash": "4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion ghost/members-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@tryghost/magic-link": "0.0.0",
"@tryghost/member-events": "0.0.0",
"@tryghost/members-payments": "0.0.0",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/tpl": "0.1.32",
"@tryghost/validator": "0.2.14",
"@types/jsonwebtoken": "9.0.6",
Expand Down
2 changes: 1 addition & 1 deletion ghost/posts-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"@tryghost/errors": "1.3.5",
"@tryghost/nql": "0.12.6",
"@tryghost/nql": "0.12.7",
"@tryghost/post-events": "0.0.0",
"@tryghost/tpl": "0.1.32",
"bson-objectid": "2.0.4"
Expand Down
19 changes: 18 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7658,7 +7658,14 @@
nodemailer-mailgun-transport "^2.1.5"
nodemailer-stub-transport "^1.1.0"

"@tryghost/[email protected]", "@tryghost/nql-lang@^0.6.2":
"@tryghost/[email protected]", "@tryghost/nql-lang@^0.6.3":
version "0.6.3"
resolved "https://registry.yarnpkg.com/@tryghost/nql-lang/-/nql-lang-0.6.3.tgz#3fe9015d5ebcfdf50be409bf1b0f6cc22cfb47a1"
integrity sha512-NnSdAjN3TIcm8g1/QW/EKLeGKAYIQR6CQZULMt1mbV+lVWnNjrgZNZchg4a90CdC5e0owOps+rz+2dmpDEC/Iw==
dependencies:
date-fns "^2.28.0"

"@tryghost/nql-lang@^0.6.2":
version "0.6.2"
resolved "https://registry.yarnpkg.com/@tryghost/nql-lang/-/nql-lang-0.6.2.tgz#529d4fc06840dd0d4f120610d3d081f5df51c12c"
integrity sha512-woIgIi89fpRnuBZQjZNF4MHbwp2IwYGQ/vEuvCGhHmOE47qhtEadvd0dCUnzOYSszgsFcp+xtOe6ZrICVEdUmw==
Expand All @@ -7675,6 +7682,16 @@
"@tryghost/nql-lang" "^0.6.2"
mingo "^2.2.2"

"@tryghost/[email protected]":
version "0.12.7"
resolved "https://registry.yarnpkg.com/@tryghost/nql/-/nql-0.12.7.tgz#4ef56984809cb39416b9b21b9cd7ae976720f5e3"
integrity sha512-O58X36ug6KZ8n0/a/mkhb0My3vDO/xbH3HlK+U0t6houwQN7xUEOsZxBq7E0w/h4dXXwQCFeW5mIfuRD3FHWIg==
dependencies:
"@tryghost/mongo-knex" "^0.9.1"
"@tryghost/mongo-utils" "^0.6.2"
"@tryghost/nql-lang" "^0.6.3"
mingo "^2.2.2"

"@tryghost/[email protected]", "@tryghost/pretty-cli@^1.2.38":
version "1.2.44"
resolved "https://registry.yarnpkg.com/@tryghost/pretty-cli/-/pretty-cli-1.2.44.tgz#9ae1923076c3390457ed40df0217e216413b0f1e"
Expand Down

0 comments on commit 5182375

Please sign in to comment.