Updated nql package (#20811)

Ref [ONC-216](https://linear.app/tryghost/issue/ONC-216/improve-the-performance-of-the-membersevents-aggregated-click-event)

Needed changes in nql package for this task.
This commit is contained in:
Princi Vershwal 2024-08-22 13:25:14 +05:30 committed by GitHub
parent 6d46dc26c7
commit 309cb37cc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 122 additions and 81 deletions

View File

@ -41,7 +41,7 @@
"@tryghost/color-utils": "0.2.2",
"@tryghost/kg-unsplash-selector": "0.2.3",
"@tryghost/limit-service": "1.2.14",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/timezone-data": "0.4.3",
"react": "18.3.1",
"react-dom": "18.3.1",

View File

@ -52,7 +52,7 @@
"@tryghost/koenig-lexical": "1.3.21",
"@tryghost/limit-service": "1.2.14",
"@tryghost/members-csv": "0.0.0",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/nql-lang": "0.6.1",
"@tryghost/string": "0.2.12",
"@tryghost/timezone-data": "0.4.3",

View File

@ -23,7 +23,7 @@
"c8": "7.14.0",
"mocha": "10.2.0",
"sinon": "15.2.0",
"@tryghost/nql": "0.12.3"
"@tryghost/nql": "0.12.4"
},
"dependencies": {
"@tryghost/mongo-utils": "0.6.2",

View File

@ -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.3",
"@tryghost/nql": "0.12.4",
"@tryghost/nql-filter-expansions": "0.0.0",
"@tryghost/post-events": "0.0.0",
"@tryghost/tpl": "0.1.32",

View File

@ -76,7 +76,7 @@
"@tryghost/api-framework": "0.0.0",
"@tryghost/api-version-compatibility-service": "0.0.0",
"@tryghost/audience-feedback": "0.0.0",
"@tryghost/bookshelf-plugins": "0.6.21",
"@tryghost/bookshelf-plugins": "0.6.23",
"@tryghost/bootstrap-socket": "0.0.0",
"@tryghost/collections": "0.0.0",
"@tryghost/color-utils": "0.2.2",
@ -144,7 +144,7 @@
"@tryghost/mw-version-match": "0.0.0",
"@tryghost/mw-vhost": "0.0.0",
"@tryghost/nodemailer": "0.3.45",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/oembed-service": "0.0.0",
"@tryghost/package-json": "0.0.0",
"@tryghost/post-revisions": "0.0.0",

View File

@ -27,7 +27,7 @@
"dependencies": {
"@tryghost/debug": "0.1.32",
"@tryghost/errors": "1.3.5",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/tpl": "0.1.32",
"lodash": "4.17.21"
}

View File

@ -25,6 +25,6 @@
"sinon": "15.2.0"
},
"dependencies": {
"@tryghost/nql": "0.12.3"
"@tryghost/nql": "0.12.4"
}
}

View File

@ -26,7 +26,7 @@
"dependencies": {
"@tryghost/errors": "1.3.5",
"@tryghost/link-redirects": "0.0.0",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/tpl": "0.1.32",
"bson-objectid": "2.0.4",
"lodash": "4.17.21",

View File

@ -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.3",
"@tryghost/nql": "0.12.4",
"@tryghost/tpl": "0.1.32",
"@tryghost/validator": "0.2.14",
"@types/jsonwebtoken": "9.0.6",

View File

@ -24,7 +24,7 @@
},
"dependencies": {
"@tryghost/errors": "1.3.5",
"@tryghost/nql": "0.12.3",
"@tryghost/nql": "0.12.4",
"@tryghost/post-events": "0.0.0",
"@tryghost/tpl": "0.1.32",
"bson-objectid": "2.0.4"

181
yarn.lock
View File

@ -7887,95 +7887,95 @@
ajv "^6.12.6"
lodash "^4.17.11"
"@tryghost/bookshelf-collision@^0.1.45":
version "0.1.45"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-collision/-/bookshelf-collision-0.1.45.tgz#0581265964fa0c799f19ce0e0288e5ecb832c108"
integrity sha512-NJcl6WdRUSTutqFhmkZQwqx3nRjfGZImLasCHLWSY8oZvhG0IQ5yabkDUCzv2lCoUfQODyn32N9a3+5Rrmok0w==
"@tryghost/bookshelf-collision@^0.1.46":
version "0.1.46"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-collision/-/bookshelf-collision-0.1.46.tgz#785d583225e4337695fad5ac79e375008ddfa99c"
integrity sha512-mLw7RrU5AGopmiQWnTNzeIoHo8Tehw9SSTlHymPzO3YjStDXyXl3ZyOP08QO0eOpavqqRqLaTEFPAgGr/zVKGA==
dependencies:
"@tryghost/errors" "^1.3.5"
"@tryghost/errors" "^1.3.6"
lodash "^4.17.21"
moment-timezone "^0.5.33"
"@tryghost/bookshelf-custom-query@^0.1.27":
version "0.1.27"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-custom-query/-/bookshelf-custom-query-0.1.27.tgz#b17385c5cbadf76f2dd287419ed04ae5becde98b"
integrity sha512-a4srouaBad+KqEihIlHqofplLMzUxiQyCNuMjFJeNUEjqxkskBGADvmFqUhwOJ0fVp2pABD/cZspAemF6flN/w==
"@tryghost/bookshelf-custom-query@^0.1.28":
version "0.1.28"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-custom-query/-/bookshelf-custom-query-0.1.28.tgz#ae233bca2bcbd3afc9d57db9305f6486fc84c4b4"
integrity sha512-FZKJcbF1Rb3BBbHnb/HPS+FmlRR2UPTpNNOk0YBRVmOKakIjkR65u4xpv/6irDObLyDSlgbSTskFxeVlcot2Kw==
"@tryghost/bookshelf-eager-load@^0.1.31":
version "0.1.31"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-eager-load/-/bookshelf-eager-load-0.1.31.tgz#b26f1a114794d96ea0592e6a3dca02642e34f864"
integrity sha512-3UB5zrOlCsP2on0a8B8w5SQgHwFCQedkMB1qFuoy2G4PguYTRk4gC+pMs4QSiW3L50MFEtr5k9TrWBpGdSXpQQ==
dependencies:
"@tryghost/debug" "^0.1.32"
lodash "^4.17.21"
"@tryghost/bookshelf-filter@^0.5.17":
version "0.5.17"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-filter/-/bookshelf-filter-0.5.17.tgz#405364028babd7107922c3fa70bf8b7037296b26"
integrity sha512-nOkW2vnuAhPc91QoCDktQ6Y67eNRRoS7F0VNf1fh+DZj1wLfWZIhXYWlEip3jAd4PONg/xXKv1fDDKCA/JRDUw==
dependencies:
"@tryghost/debug" "^0.1.32"
"@tryghost/errors" "^1.3.5"
"@tryghost/nql" "^0.12.3"
"@tryghost/tpl" "^0.1.32"
"@tryghost/bookshelf-has-posts@^0.1.32":
"@tryghost/bookshelf-eager-load@^0.1.32":
version "0.1.32"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-has-posts/-/bookshelf-has-posts-0.1.32.tgz#c64fced29281349df4bb06cf84bc99860c6aecf6"
integrity sha512-1vIQMJyeTQ//vCldu2x5kAjCUYtB8M90iiKrXmL06N1Tlz5SChntnXJi8xGesVBndQlqcuaJ5vsM8p5k4SdK1w==
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-eager-load/-/bookshelf-eager-load-0.1.32.tgz#14e0a297b6ce0996628d23a778b4cfda68fa5c73"
integrity sha512-0Y+32Z21R6lySqPH1/kYLJ6rBdEdDm8e+ohBsTEDqUKagoVsQ8K2lot9B/Z5D80tn06pN1JzvpDbaiW+eXu3pQ==
dependencies:
"@tryghost/debug" "^0.1.32"
"@tryghost/debug" "^0.1.33"
lodash "^4.17.21"
"@tryghost/bookshelf-include-count@^0.3.15":
version "0.3.15"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-include-count/-/bookshelf-include-count-0.3.15.tgz#433ec7f3ec749b23c81fd60e03e9aadbf5513bfe"
integrity sha512-GamGZSt688D1jw8nupo1NSkiYDSTwj1FUGA0iwVMzFhwIuK3Uaq+Xg5RdGXfoayJrXEhqmbYJ3aoZkYTFloEzA==
"@tryghost/bookshelf-filter@^0.5.19":
version "0.5.19"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-filter/-/bookshelf-filter-0.5.19.tgz#bc43e7823462762b8599a7ac09e82cc281d36301"
integrity sha512-q8hF2+Rt35D0v+VIWPqkQlLAPsF5R5R4Mq2q1GhQ+n+OcYerlX7vFR9FKlGfrVeBg9HsLUBTNlZacm407HaLHA==
dependencies:
"@tryghost/debug" "^0.1.32"
"@tryghost/debug" "^0.1.33"
"@tryghost/errors" "^1.3.6"
"@tryghost/nql" "^0.12.4"
"@tryghost/tpl" "^0.1.33"
"@tryghost/bookshelf-has-posts@^0.1.33":
version "0.1.33"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-has-posts/-/bookshelf-has-posts-0.1.33.tgz#5c5632840478a3b12264092b9ee231fa3d8efd67"
integrity sha512-1Zn6+kLX0CzSVR5vk5FJxj8Ln2dw5wwK1w7qKGpCu4Jtnd4Gb3/OBC95WG3jqLWE5qs9yC9GD0Nuw5+DN4+aGg==
dependencies:
"@tryghost/debug" "^0.1.33"
lodash "^4.17.21"
"@tryghost/bookshelf-order@^0.1.27":
version "0.1.27"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-order/-/bookshelf-order-0.1.27.tgz#bd456ffa4413a5cc2c66480b79eec610d0edcc67"
integrity sha512-XJLuShGg+2Gv+U1EqsOF9nzSV/+b06/q8KRWqztGYgoKNYk+5lV9AuHjKIrJx1bcKtc0HdmjcDdHHgX0KIYOHA==
"@tryghost/bookshelf-include-count@^0.3.16":
version "0.3.16"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-include-count/-/bookshelf-include-count-0.3.16.tgz#d98852499f95ef59283284f8be8113fb0baac5da"
integrity sha512-P/YUnxei4uV1tyIltk5ebKaJGj64SeR5nT9uYlslM/3jLuxgN9WPSNyBXpS6IosnOnHwcwkGzOYzV71nAyJzdA==
dependencies:
"@tryghost/debug" "^0.1.33"
lodash "^4.17.21"
"@tryghost/bookshelf-order@^0.1.28":
version "0.1.28"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-order/-/bookshelf-order-0.1.28.tgz#5f56db2aa738879f4f4f4b639a4d5bfe8c950b11"
integrity sha512-K37xBu7aylb8cXb0I3XwX31JrQ1bWWcKPuc+Tl83Zz4HOkJf846yXu6PATu1IQUtfk48Ur6sGqIyaO4BwJmUfA==
dependencies:
lodash "^4.17.21"
"@tryghost/bookshelf-pagination@^0.1.48":
version "0.1.48"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-pagination/-/bookshelf-pagination-0.1.48.tgz#095e7f0544f1fd4e94fb9aba0c395673a80164e5"
integrity sha512-oii7wOhXD+2/6tk6f/LvXMimL6+DYnN5VaCSKdSHqUPhX6FKPhTQ0mCL+jfMaI8cKASI2KHO+jeRBV8AJZoK3Q==
"@tryghost/bookshelf-pagination@^0.1.49":
version "0.1.49"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-pagination/-/bookshelf-pagination-0.1.49.tgz#9f4a7c83a7778e13d06a2facef37a634bff46e0c"
integrity sha512-nkHM42IqEzNDBOeA1t3DIgygLlmtGkrcOjKjttMHC1pTuD0t7OYB25cq6HPPYPpRWGAtdShF7JvICEQcxdHuPQ==
dependencies:
"@tryghost/errors" "^1.3.5"
"@tryghost/tpl" "^0.1.32"
"@tryghost/errors" "^1.3.6"
"@tryghost/tpl" "^0.1.33"
lodash "^4.17.21"
"@tryghost/bookshelf-plugins@0.6.21":
version "0.6.21"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-plugins/-/bookshelf-plugins-0.6.21.tgz#e4b55542cec60d097c3fedd44e8fddf447ac9b21"
integrity sha512-qYdQrp/bIYnmPYwl/mROwO+uclAZJCPW95vUAAhX7Bg7O26cN+46X7RbzPbphTEKQ2M1JolpMFcWmctczLahxw==
"@tryghost/bookshelf-plugins@0.6.23":
version "0.6.23"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-plugins/-/bookshelf-plugins-0.6.23.tgz#3b17f49d397a618911065593c8aa044881491853"
integrity sha512-Muuk8J9t3Dv630FpT1cqhan6J6GGIXUjZ7r25IcymQPideUbAvZXt0jEXWN7jpB1pq3+MdbRJSOmw+KrVlWbtg==
dependencies:
"@tryghost/bookshelf-collision" "^0.1.45"
"@tryghost/bookshelf-custom-query" "^0.1.27"
"@tryghost/bookshelf-eager-load" "^0.1.31"
"@tryghost/bookshelf-filter" "^0.5.17"
"@tryghost/bookshelf-has-posts" "^0.1.32"
"@tryghost/bookshelf-include-count" "^0.3.15"
"@tryghost/bookshelf-order" "^0.1.27"
"@tryghost/bookshelf-pagination" "^0.1.48"
"@tryghost/bookshelf-search" "^0.1.27"
"@tryghost/bookshelf-transaction-events" "^0.2.16"
"@tryghost/bookshelf-collision" "^0.1.46"
"@tryghost/bookshelf-custom-query" "^0.1.28"
"@tryghost/bookshelf-eager-load" "^0.1.32"
"@tryghost/bookshelf-filter" "^0.5.19"
"@tryghost/bookshelf-has-posts" "^0.1.33"
"@tryghost/bookshelf-include-count" "^0.3.16"
"@tryghost/bookshelf-order" "^0.1.28"
"@tryghost/bookshelf-pagination" "^0.1.49"
"@tryghost/bookshelf-search" "^0.1.28"
"@tryghost/bookshelf-transaction-events" "^0.2.17"
"@tryghost/bookshelf-search@^0.1.27":
version "0.1.27"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-search/-/bookshelf-search-0.1.27.tgz#514b4ac787a9df60dd1c26d0749a36f4159f0158"
integrity sha512-j9Y7uNoFscNDG39FVkK2TH/EKChr4n4vzpBgqSOp9R/k91SWTzmALOxKYvKqOfxuJs8uHDE1sxAdBbxK6bbjjA==
"@tryghost/bookshelf-search@^0.1.28":
version "0.1.28"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-search/-/bookshelf-search-0.1.28.tgz#9f3c8b2cfd344db583dede561cce403a59fdcb27"
integrity sha512-73B5KAB6xRX6LpkrWoz2f1r7cWQCyo++sWTOHcf+B9w5j8LLhlwT5g6VhWNCgyPT+71hDN+NetAHTwUz6TLoPA==
"@tryghost/bookshelf-transaction-events@^0.2.16":
version "0.2.16"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-transaction-events/-/bookshelf-transaction-events-0.2.16.tgz#d1978e37d919931c2361f415e27d3e2c93b63d8d"
integrity sha512-rNcbLxhHEL47czQ3TnlWxQ46IbpHrVYyutqaJDCoNFyvzb0ZIcULilMyoXt44JjpaSNig32Sy6IOTHbB3vlVcg==
"@tryghost/bookshelf-transaction-events@^0.2.17":
version "0.2.17"
resolved "https://registry.yarnpkg.com/@tryghost/bookshelf-transaction-events/-/bookshelf-transaction-events-0.2.17.tgz#f6d5a7839be4a1f237e55b7c8fc24bdb32f4cc06"
integrity sha512-rplr8pMzSV1hBEQ9Q8eCAOpKdPJuf9/CnykYK6Y5YVwX033TB8rv4pYkGQkfG5HQvQStcO3QzxnJglxdEaJZfA==
"@tryghost/bunyan-rotating-filestream@^0.0.7":
version "0.0.7"
@ -8030,6 +8030,14 @@
"@tryghost/root-utils" "^0.3.30"
debug "^4.3.1"
"@tryghost/debug@^0.1.33":
version "0.1.33"
resolved "https://registry.yarnpkg.com/@tryghost/debug/-/debug-0.1.33.tgz#d824ab20d2dffc6ee6c4ec090a79f3804b8acb79"
integrity sha512-aYmfmrXDI974G8ahyT4bPHMthpqiEDXgTXGJ685ZKNB5S2ak/6R0pvhOA6c/QhHihocJG40K2ylzlPqcQq/oWg==
dependencies:
"@tryghost/root-utils" "^0.3.31"
debug "^4.3.1"
"@tryghost/elasticsearch@^3.0.21":
version "3.0.21"
resolved "https://registry.npmjs.org/@tryghost/elasticsearch/-/elasticsearch-3.0.21.tgz#a4acbfccf1577d1f7c9750018cbd30afefa87b3a"
@ -8060,7 +8068,7 @@
focus-trap "^6.7.2"
postcss-preset-env "^7.3.1"
"@tryghost/errors@1.3.1", "@tryghost/errors@1.3.5", "@tryghost/errors@^1.2.26", "@tryghost/errors@^1.2.3", "@tryghost/errors@^1.3.5":
"@tryghost/errors@1.3.1", "@tryghost/errors@1.3.5", "@tryghost/errors@^1.2.26", "@tryghost/errors@^1.2.3", "@tryghost/errors@^1.3.5", "@tryghost/errors@^1.3.6":
version "1.3.5"
resolved "https://registry.yarnpkg.com/@tryghost/errors/-/errors-1.3.5.tgz#f4ef8e5c41a8a37456f2285271124180685827ae"
integrity sha512-iOkiHGnYFqSdFM9AVlgiL56Qcx6V9iQ3kbDKxyOAxrhMKq1OnOmOm7tr1CgGK1YDte9XYEZmR9hUZEg+ujn/jQ==
@ -8326,6 +8334,14 @@
debug "^4.3.3"
lodash "^4.17.21"
"@tryghost/mongo-knex@^0.9.1":
version "0.9.1"
resolved "https://registry.yarnpkg.com/@tryghost/mongo-knex/-/mongo-knex-0.9.1.tgz#b429952cc01d7ffa2489b37db4008f8a323e40d5"
integrity sha512-WqnuGs9TUMxc9/lSyuJ7kB57jDIFSd+Dty5rgjKf6Ts6u5k73FRvOqJL83U0aPCb67r1GC1SKgf40ErISFHHvA==
dependencies:
debug "^4.3.3"
lodash "^4.17.21"
"@tryghost/mongo-utils@0.6.2", "@tryghost/mongo-utils@^0.6.2":
version "0.6.2"
resolved "https://registry.yarnpkg.com/@tryghost/mongo-utils/-/mongo-utils-0.6.2.tgz#18af1e057aad6876cb7ff61f817df4e90d8055bf"
@ -8352,7 +8368,17 @@
dependencies:
date-fns "^2.28.0"
"@tryghost/nql@0.12.3", "@tryghost/nql@^0.12.0", "@tryghost/nql@^0.12.3":
"@tryghost/nql@0.12.4", "@tryghost/nql@^0.12.4":
version "0.12.4"
resolved "https://registry.yarnpkg.com/@tryghost/nql/-/nql-0.12.4.tgz#ae482a78faa5cdd23da0d440b8248b2c942cfc6c"
integrity sha512-t1qTtFwFETjNe2CEZneLWzfDeLO3eQQMhYtyC/LvanOtpr/dn5gn5HCBCQ/MYi+nLwXeYlUMy7Lcjj1V3ToN5Q==
dependencies:
"@tryghost/mongo-knex" "^0.9.1"
"@tryghost/mongo-utils" "^0.6.2"
"@tryghost/nql-lang" "^0.6.1"
mingo "^2.2.2"
"@tryghost/nql@^0.12.0":
version "0.12.3"
resolved "https://registry.yarnpkg.com/@tryghost/nql/-/nql-0.12.3.tgz#260f0aed0c3bee85b046fcd8ee24dd567b5ed451"
integrity sha512-bG0U+RMLixLTFkLM4DaL9uDhPCoTlxyMzZOIibZnBHmxi1lMM5cgUEGV38IwD92laIfS2t5BvAONKGhsGoVVVg==
@ -8409,6 +8435,14 @@
caller "^1.0.1"
find-root "^1.1.0"
"@tryghost/root-utils@^0.3.31":
version "0.3.31"
resolved "https://registry.yarnpkg.com/@tryghost/root-utils/-/root-utils-0.3.31.tgz#68d17b6813970b9c1b32e4fb5b142fea29dfe6cd"
integrity sha512-6TKu40lh7Gyxwm3jE3nrfT7mZyUb9rN6q8IgeXqhndRV4CSBZLlVgbTgHpdrWo3mSVuMPU+kzoYyMT6yDWrB/A==
dependencies:
caller "^1.0.1"
find-root "^1.1.0"
"@tryghost/server@^0.1.37":
version "0.1.37"
resolved "https://registry.yarnpkg.com/@tryghost/server/-/server-0.1.37.tgz#04ee5671b19a4a5be05e361e293d47eb9c6c2482"
@ -8441,6 +8475,13 @@
dependencies:
lodash.template "^4.5.0"
"@tryghost/tpl@^0.1.33":
version "0.1.33"
resolved "https://registry.yarnpkg.com/@tryghost/tpl/-/tpl-0.1.33.tgz#2512900ffe4635eafea0f41fe3ba2dd6b501b651"
integrity sha512-wkwLw0SvX3Ex+yQP/wl7w4m1PYOddP/jLEcW5xGUEGaYSuPgpHrHPmu9lvxWmK++q/SPiVHqVSV97FFaIb2oNQ==
dependencies:
lodash.template "^4.5.0"
"@tryghost/url-utils@4.4.8":
version "4.4.8"
resolved "https://registry.yarnpkg.com/@tryghost/url-utils/-/url-utils-4.4.8.tgz#fb867d8bd59a640dc67ab61c1a3d921bd12a8c2b"