Commit Graph

1308 Commits

Author SHA1 Message Date
renovate[bot]
38647930b1
Update dependency @tryghost/members-api to v0.37.2 (#12561)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-25 11:12:15 +00:00
Renovate Bot
01206217f5
Update dependency supertest to v6.1.2 2021-01-25 06:46:03 +00:00
Renovate Bot
8fd3034d3c
Update dependency sinon to v9.2.4 2021-01-25 00:51:49 +00:00
Renovate Bot
f8776c0536
Update dependency sanitize-html to v2.3.1 2021-01-22 20:35:28 +00:00
Renovate Bot
aae58ba4e4
Update dependency ghost-ignition to v4.4.2 2021-01-22 14:21:41 +00:00
Renovate Bot
cbfdf79661
Update dependency ghost-ignition to v4.4.1 2021-01-21 18:16:29 +00:00
Renovate Bot
5fed75d794
Update dependency ghost-ignition to v4.4.0 2021-01-21 15:51:27 +00:00
Renovate Bot
9c3c90a4be
Update dependency nock to v13.0.6 2021-01-20 20:54:25 +00:00
Renovate Bot
c3f5b188c4
Update dependency fs-extra to v9.1.0 2021-01-19 17:55:11 +00:00
Fabien 'egg' O'Carroll
ab5833182b
Updated @tryghost/members-api to 0.37.1 (#12553)
no-issue

* Internal refactor
* Change to the signature of the updateSubscription method
2021-01-19 11:12:52 +00:00
Renovate Bot
a0303a246e Update dependency @tryghost/adapter-manager to v0.2.7 2021-01-18 11:01:22 +00:00
Renovate Bot
920592e0ac Update dependency @tryghost/constants to v0.1.4 2021-01-18 11:00:50 +00:00
Renovate Bot
df4743b2f7
Update dependency eslint to v7.18.0 2021-01-18 07:52:33 +00:00
Renovate Bot
f7690dedc1
Update dependency supertest to v6.1.1 2021-01-15 19:09:28 +00:00
Renovate Bot
a9777139f9
Update dependency supertest to v6.1.0 2021-01-15 17:09:41 +00:00
Renovate Bot
42cac5a93b Update dependency @tryghost/string to v0.1.16 2021-01-15 14:37:31 +00:00
Renovate Bot
6fef7046b6 Update dependency @tryghost/session-service to v0.1.15 2021-01-15 14:37:23 +00:00
Renovate Bot
3f890151af Update dependency @tryghost/promise to v0.1.4 2021-01-15 14:37:14 +00:00
Renovate Bot
112109ca45
Update dependency jsonpath to v1.1.0 2021-01-14 21:06:38 +00:00
Renovate Bot
4e497fb9d1 Update dependency @tryghost/errors to v0.2.7 2021-01-13 18:06:31 +00:00
Renovate Bot
680133a888 Update dependency @tryghost/bootstrap-socket to v0.2.5 2021-01-13 18:06:23 +00:00
Renovate Bot
3ecc84c737 Update dependency @tryghost/social-urls to v0.1.18 2021-01-13 18:06:02 +00:00
Renovate Bot
fe888c7050
Update dependency ghost-ignition to v4.3.0 2021-01-13 16:02:06 +00:00
Renovate Bot
79b512df95 Update dependency @tryghost/job-manager to v0.7.1 2021-01-13 15:52:06 +00:00
Renovate Bot
1f2cebcc47 Update dependency @tryghost/html-to-mobiledoc to v0.7.9 2021-01-13 15:51:56 +00:00
Renovate Bot
e4adc5564a Update dependency @tryghost/mw-session-from-token to v0.1.14 2021-01-13 15:51:39 +00:00
Renovate Bot
01bf344b14 Update dependency @tryghost/security to v0.2.4 2021-01-13 15:51:08 +00:00
Renovate Bot
5d55a54090 Update dependency @tryghost/url-utils to v0.6.25 2021-01-13 15:50:52 +00:00
Renovate Bot
78afa4cf1f
Update dependency @sentry/node to v5.30.0 2021-01-13 12:06:39 +00:00
Renovate Bot
f92cb0f31c
Update dependency @tryghost/zip to v1.1.8 2021-01-12 23:09:37 +00:00
Renovate Bot
51a452bd27
Update dependency @tryghost/vhost-middleware to v1.0.11 2021-01-12 21:09:34 +00:00
Renovate Bot
5805e9d93a
Update dependency @tryghost/helpers to v1.1.37 2021-01-12 19:07:03 +00:00
Renovate Bot
92de3f342a
Update dependency @tryghost/admin-api-schema to v1.4.3 2021-01-12 17:06:18 +00:00
Renovate Bot
c985a4f0c8
Update dependency @tryghost/kg-default-cards to v3.1.0 2021-01-12 13:06:22 +00:00
Renovate Bot
f1c78f6336
Update dependency @tryghost/kg-card-factory to v2.1.5 2021-01-12 11:23:04 +00:00
renovate[bot]
b07c278e92
Update dependency @tryghost/kg-markdown-html-renderer to v3 (#12521)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 11:21:37 +00:00
Renovate Bot
e4e62a6a7c Update dependency analytics-node to v3.5.0 2021-01-12 10:38:48 +00:00
Renovate Bot
8111cb2f49 Update dependency @tryghost/string to v0.1.15 2021-01-12 10:38:26 +00:00
Renovate Bot
5d1281fcfb Update dependency nconf to v0.11.1 2021-01-08 13:07:00 +00:00
Renovate Bot
bed13e22e5 Update dependency jwks-rsa to v1.12.2 2021-01-08 13:05:15 +00:00
Renovate Bot
7f7bdb9f4d Update dependency @tryghost/html-to-mobiledoc to v0.7.8 2021-01-08 13:04:24 +00:00
Renovate Bot
e71a50d2ad Update dependency @tryghost/social-urls to v0.1.17 2021-01-08 13:04:04 +00:00
Renovate Bot
12b31ec41b Update dependency @tryghost/url-utils to v0.6.24 2021-01-08 13:03:52 +00:00
Renovate Bot
d69b60c3b3 Update dependency @tryghost/adapter-manager to v0.2.6 2021-01-08 13:03:36 +00:00
Renovate Bot
924be50157
Update dependency @tryghost/helpers to v1.1.36 2021-01-07 13:07:41 +00:00
Renovate Bot
dc13ea0562
Update dependency @tryghost/admin-api-schema to v1.4.2 2021-01-07 11:05:56 +00:00
Renovate Bot
9b46c89d93
Update dependency sinon to v9.2.3 2021-01-06 15:05:39 +00:00
Naz
b2e7d2bf06 Bumped job-manager version to 0.7.0
closes https://github.com/TryGhost/Ghost-Utils/issues/122
2021-01-06 17:48:05 +13:00
Kevin Ansfield
ab834b2615 Updated bookshelf-relations dependency to fix broken release
closes https://github.com/TryGhost/Ghost/issues/12493

- the published version of `bookshelf-relations` 1.4.0 was missing the critical commit that added the new relationship config feature
- v1.4.1 is a valid release
2021-01-05 15:24:45 +00:00
Kevin Ansfield
eccd220461 🐛 Fixed error when deleting a member that has received a newsletter email
closes https://github.com/TryGhost/Ghost/issues/12493

- bumps `bookshelf-relations` to new version that allows for `hasMany` children to be kept when a parent record is destroyed
- adds necessary config to the `Member.email_recipients` relationship to keep related records when a member is deleted
2021-01-05 14:06:20 +00:00
Renovate Bot
9b5184387f Update dependency jwks-rsa to v1.12.1 2021-01-04 08:57:07 +00:00
Renovate Bot
4c52c710b3
Update dependency eslint to v7.17.0 2021-01-04 00:07:54 +00:00
Renovate Bot
2daa87df5b
Update dependency eslint to v7.16.0 2020-12-18 23:06:06 +00:00
Renovate Bot
a0bfec6591
Update dependency @sentry/node to v5.29.2 2020-12-17 20:52:07 +00:00
Renovate Bot
ce6b8364c9
Update dependency sanitize-html to v2.3.0 2020-12-16 16:11:16 +00:00
Renovate Bot
39489bbc0b Update dependency @tryghost/constants to v0.1.3 2020-12-16 13:46:19 +00:00
Renovate Bot
810989dba8 Update dependency @tryghost/mw-session-from-token to v0.1.13 2020-12-16 13:46:07 +00:00
Renovate Bot
e04f913f1f Update dependency @tryghost/security to v0.2.3 2020-12-16 13:45:49 +00:00
Renovate Bot
b4bb1b46b3
Update dependency @sentry/node to v5.29.1 2020-12-16 11:45:44 +00:00
Renovate Bot
79b723eee6 Update dependency @tryghost/adapter-manager to v0.2.5 2020-12-14 12:18:53 +00:00
Renovate Bot
d37f49508c Update dependency @tryghost/bootstrap-socket to v0.2.4 2020-12-14 12:18:44 +00:00
Renovate Bot
e6b6f74232 Update dependency @tryghost/errors to v0.2.6 2020-12-14 12:18:34 +00:00
Renovate Bot
1cf4d346f7 Update dependency @tryghost/promise to v0.1.3 2020-12-14 12:18:22 +00:00
Renovate Bot
e31c18c013 Update dependency @tryghost/session-service to v0.1.14 2020-12-14 12:17:57 +00:00
Renovate Bot
6383f1dbd7
Update dependency @tryghost/zip to v1.1.7 2020-12-14 05:08:18 +00:00
Naz
c1e3788570 Added central error handler to job manager
refs https://github.com/TryGhost/Ghost-Utils/issues/118

- Duplicating error handling across jobs is not best developer experience. Also, having custom error handling logic did not allow for recommended worker script behavior: allowing for unhandled exceptions to bubble up and be managed by parent process
2020-12-14 18:01:41 +13:00
Renovate Bot
90adc9ed98
Update dependency sinon to v9.2.2 2020-12-11 12:43:36 +00:00
Thibaut Patel
1677a05481 🐛 Fixed an issue with zip files parsing.
no issue

Updated gscan to 3.6.1
2020-12-11 12:15:29 +01:00
Renovate Bot
c2bb7bd106 Update dependency @tryghost/mw-session-from-token to v0.1.12 2020-12-10 09:43:25 +00:00
Renovate Bot
7b4e041203 Update dependency @tryghost/adapter-manager to v0.2.4 2020-12-10 09:43:13 +00:00
Renovate Bot
89f77c8248 Update dependency @tryghost/job-manager to v0.5.0 2020-12-10 09:43:04 +00:00
Renovate Bot
0e6ee237ac Update dependency @tryghost/session-service to v0.1.13 2020-12-10 09:42:48 +00:00
Renovate Bot
712f78bc24
Update dependency @tryghost/helpers to v1.1.35 2020-12-09 21:48:48 +00:00
Kevin Ansfield
24bd2d78cb Fixed validation errors when saving members
no issue

- schema validation was erroring due extra properties on the member resource that were recently added to the output causing the client to send them back when saving
- updated @tryghost/admin-api-schema to include skips for the new read-only properties
2020-12-09 21:47:14 +00:00
Fabien O'Carroll
ff12d7a89a Updated @tryghost/members-{api,csv} for importer
no-issue

- Updates members-api to throw errors when attempting to link to
  stripe customers if it is not configured, which allows us to include
  the errors in the CSV

- Updates members-csv to handle the header mappings as well as parsing
  the values so that we can read a CSV file and get back valid member
  objects
2020-12-09 19:25:57 +00:00
Renovate Bot
e91f740ade Update dependency jwks-rsa to v1.12.0 2020-12-09 09:57:24 +00:00
Renovate Bot
3d4f5b5ee5
Update dependency uuid to v8.3.2 2020-12-08 21:23:14 +00:00
renovate[bot]
85f94ad4b4
Update dependency @tryghost/job-manager to v0.4.0 (#12460)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-08 17:48:13 +13:00
Renovate Bot
3aa43eb36f
Update dependency js-yaml to v3.14.1 2020-12-07 19:50:35 +00:00
Renovate Bot
81d5fb60d1
Update dependency @sentry/node to v5.29.0 2020-12-07 11:18:56 +00:00
Renovate Bot
52b0f970e9
Update dependency eslint to v7.15.0 2020-12-07 00:07:07 +00:00
Renovate Bot
30a98c0185 Update dependency grunt-mocha-cli to v7 2020-12-03 08:46:48 +00:00
Renovate Bot
2d621c9680
Update dependency sanitize-html to v2.2.0 2020-12-02 15:32:57 +00:00
Renovate Bot
57c3244f3a Update dependency semver to v7.3.4 2020-12-02 00:07:11 +00:00
Renovate Bot
0e46898aaa
Update dependency @sentry/node to v5.28.0 2020-12-01 14:27:06 +00:00
Naz
ddcdaa6193 Bumped job-manager version to 0.3.4
no issue

- Fixes a bug with ignored seconds when specifying cron syntax
2020-12-02 00:24:03 +13:00
Renovate Bot
99dcf43a45 Update dependency @tryghost/job-manager to v0.3.3 2020-11-30 11:16:25 +00:00
Renovate Bot
c8ec1067c5 Update dependency @tryghost/adapter-manager to v0.2.3 2020-11-26 10:39:44 +00:00
Renovate Bot
d58337b229 Update dependency @tryghost/job-manager to v0.3.2 2020-11-26 10:39:24 +00:00
Renovate Bot
200e83c75d Update dependency nconf to v0.11.0 2020-11-25 09:34:09 +00:00
Renovate Bot
dec93a4b72 Update dependency @tryghost/members-ssr to v0.8.6 2020-11-24 10:45:36 +00:00
Renovate Bot
235185f212 Update dependency @tryghost/members-csv to v0.3.3 2020-11-24 08:15:28 +00:00
Renovate Bot
6a9f5b48e9 Update dependency @tryghost/magic-link to v0.6.2 2020-11-24 08:15:08 +00:00
Fabien 'egg' O'Carroll
b9eb835498
Supported cancellation_reason in @tryghost/members-api (#12406)
refs #12403 

This adds support for passing a cancellation_reason when updating a
subscription to cancel_at_end_of_period. The reason will be stored on
the Subscription metadata, as well as in the cancellation_reason column
in the members_stripe_customers_subscriptions table.

refs https://github.com/TryGhost/Members/pull/221
refs https://github.com/TryGhost/Members/pull/222
2020-11-23 17:34:40 +00:00
Renovate Bot
3d85625fb1
Update dependency @sentry/node to v5.27.6 2020-11-23 12:45:54 +00:00
Renovate Bot
68856821db
Update dependency @sentry/node to v5.27.5 2020-11-23 10:39:17 +00:00
Renovate Bot
48ab8e2e6c Update dependency @tryghost/session-service to v0.1.12 2020-11-23 09:55:05 +00:00
Renovate Bot
7fa0669ce5 Update dependency @tryghost/mw-session-from-token to v0.1.11 2020-11-23 09:54:56 +00:00
Renovate Bot
25bd4253a6 Update dependency @tryghost/adapter-manager to v0.2.2 2020-11-23 09:54:45 +00:00
Naz
5c4e884070 Added support for graceful job shutdown and worker threads
refs #12402

- With bumped version of job-manager it offloads job procesing into separate worker thread. Having jobs run out of main Ghost process even loop allows for safe job execution, which does not block Ghost from serving requests or performing other functions without a delay
- Added experimental data access to 'testmode' jobs. This should serve as an illustration of how to access data from the job layer
2020-11-23 17:17:49 +13:00
Renovate Bot
73911f7ba4
Update dependency eslint to v7.14.0 2020-11-23 00:05:58 +00:00
Renovate Bot
aefd88ace4 Update dependency @tryghost/adapter-manager to v0.2.1 2020-11-19 11:03:04 +00:00
Renovate Bot
7e89ca661c Update dependency @tryghost/mw-session-from-token to v0.1.10 2020-11-19 11:02:29 +00:00
Renovate Bot
ce06fde00d Update dependency @tryghost/security to v0.2.2 2020-11-19 11:02:08 +00:00
Renovate Bot
c6146ff4d7 Update dependency @tryghost/zip to v1.1.6 2020-11-19 11:01:57 +00:00
Renovate Bot
874403d3ae Update dependency @tryghost/job-manager to v0.3.0 2020-11-19 08:41:37 +00:00
Renovate Bot
23554b75a8 Update dependency @tryghost/session-service to v0.1.11 2020-11-19 08:41:11 +00:00
Renovate Bot
d7a0833821
Update dependency @sentry/node to v5.27.4 2020-11-13 11:04:49 +00:00
Renovate Bot
ee5d0e962d
Update dependency nock to v13.0.5 2020-11-11 03:46:17 +00:00
Naz
5b6fe31002 Added support for jobs defined as modules
no issue

- These changes should allow easy testing of scheduled jobs and provide an implementation example for future jobs within Ghost
- Added experimental support to run jobs based on functions defined in modules
- Extendeded testmode "schedule" endpoint with an optional job name parameter which picks up job from "jobs" folder
- Adjusted scheduleJob method use and passed "schedule" as first parameter
- Bumped job-manager version to allow for all new functionality
2020-11-10 17:29:35 +13:00
Renovate Bot
e86e8fd5d2 Update dependency @tryghost/social-urls to v0.1.16 2020-11-09 09:26:44 +00:00
Renovate Bot
26df296c65 Update dependency @tryghost/html-to-mobiledoc to v0.7.7 2020-11-09 08:26:47 +00:00
Renovate Bot
d572e9c97b
Update dependency eslint to v7.13.0 2020-11-09 00:06:19 +00:00
Renovate Bot
82224f5626
Update dependency @tryghost/admin-api-schema to v1.4.0 2020-11-06 14:05:48 +00:00
renovate[bot]
6795797179
Merge pull request #12336 from TryGhost/renovate/tryghost-constants-0.x
Update dependency @tryghost/constants to v0.1.2
2020-11-05 12:39:51 +00:00
Renovate Bot
64454b941e Update dependency @tryghost/mw-session-from-token to v0.1.9 2020-11-05 12:39:35 +00:00
Renovate Bot
3da083a36d Update dependency @tryghost/adapter-manager to v0.2.0 2020-11-05 10:50:47 +00:00
Renovate Bot
55081d7d5a Update dependency @tryghost/bootstrap-socket to v0.2.3 2020-11-05 10:50:25 +00:00
Renovate Bot
571b6a621d Update dependency @tryghost/errors to v0.2.5 2020-11-05 10:50:10 +00:00
Renovate Bot
ebd55028cd Update dependency @tryghost/security to v0.2.1 2020-11-05 10:49:49 +00:00
Renovate Bot
8666ff3713 Update dependency @tryghost/promise to v0.1.2 2020-11-05 08:07:45 +00:00
Renovate Bot
2319f085e9
Update dependency @tryghost/zip to v1.1.5 2020-11-05 07:41:43 +00:00
Renovate Bot
7cac75b1bc Update dependency @tryghost/session-service to v0.1.10 2020-11-05 07:38:49 +00:00
Renovate Bot
9daba4e679
Update dependency @tryghost/vhost-middleware to v1.0.10 2020-11-05 04:50:29 +00:00
Naz
c7541a1fe0 Added scheduled job support in testmode
no issue

- We need an ability to early test scheduled jobs to refine the new feature and it's API. Should be used with caution
- To schedule an example scheduled job every 30 seconds run following request: `curl http://localhost:2368/ghost/api/schedule/every%2030%20seconds`
2020-11-05 17:46:57 +13:00
Renovate Bot
142f5d389d Update dependency supertest to v6.0.1 2020-11-04 20:04:18 +00:00
Renovate Bot
73d9639780
Update dependency @sentry/node to v5.27.3 2020-11-04 18:04:40 +00:00
Renovate Bot
9856d7c777
Update dependency sanitize-html to v2.1.2 2020-11-04 17:11:37 +00:00
Renovate Bot
9f93a0895e
Update dependency ghost-ignition to v4.2.4 2020-11-04 11:06:57 +00:00
Renovate Bot
7d78895b4b Update dependency @tryghost/kg-markdown-html-renderer to v2.0.4 2020-11-03 20:08:55 +00:00
Renovate Bot
b166ec816f
Update dependency @tryghost/kg-card-factory to v2.1.4 2020-11-03 16:50:32 +00:00
Kevin Ansfield
bcf409ee8a 🐛 Fixed bookmark card caption formatting showing as visible html
no issue

- updated `@tryghost/kg-default-cards` which fixed the escaping of bookmark card caption output
2020-11-03 16:49:07 +00:00
Daniel Lockyer
1ecaac99b7 Removed grunt-contrib-uglify dependency
- the only bit of code that needed this, the minification of `members.js`, was
  removed in 3.37.0 so we no longer need this plugin
2020-11-03 14:13:00 +00:00
Renovate Bot
fd1e2f924b
Update dependency mocha to v8.2.1 2020-11-02 23:06:05 +00:00
Renovate Bot
be441c204f
Update dependency brute-knex to v4.0.1 2020-11-02 17:07:12 +00:00
Renovate Bot
ebaeb053c1
Update dependency @tryghost/helpers to v1.1.34 2020-11-02 15:54:33 +00:00
Renovate Bot
d86dca244f Update dependency @tryghost/string to v0.1.14 2020-11-02 15:53:37 +00:00
Renovate Bot
00bfb13a4d Update dependency @tryghost/html-to-mobiledoc to v0.7.6 2020-11-02 15:02:45 +00:00
Renovate Bot
614e1f6641 Update dependency knex to v0.21.12 2020-11-02 15:02:32 +00:00
Renovate Bot
dc51d997f8 Update dependency @tryghost/social-urls to v0.1.15 2020-11-02 15:02:08 +00:00
Renovate Bot
80738dcba0 Update dependency @tryghost/url-utils to v0.6.23 2020-11-02 15:01:52 +00:00
Renovate Bot
1c470f3d66
Update dependency @tryghost/admin-api-schema to v1.3.0 2020-11-02 13:19:45 +00:00
Renovate Bot
14ac6168ac Update dependency @tryghost/members-api to v0.34.2 2020-11-02 10:34:21 +00:00
Renovate Bot
0958e6af82 Update dependency knex to v0.21.11 2020-11-02 10:10:38 +00:00
naz
a2bfef53de
🐛 Fixed post resource filtering by posts_meta table fields (#12307)
refs #11572

- Filtering by fields coming from posts_meta table did not work for post resources. This was due to lack of support for these types of operations on NQL layer. The approach taken here is using same way filtering was done for many:many relations and generates a `WHERE IN` filtering clause. In the future we could look into adding preloading of 1:1 relations which should allow getting rid of `WHERE IN` in favor of `JOIN` and filtering directly by field names. 
- Changed structure of `EXPANSIONS` filter configuration. Current approach was based on "bag of all the things". Such structure will become problematic as more fields are added. For example, adding all the fields from 1:1 relation posts:posts_meta might collide with any other relations that would have similar naming like meta_description from tags table (if it were was added).
- Bumped nql version to 0.5.0. This adds filtering support to 1:1 relations
- Added filter expansions which can be unique per model Previous approach with single global expansions lookup wasn't working in case different models would need to declare expansion for same field names. Having a `filterExpansion` method per model works in a similar convention other filter related model methods do (e.g. enforcedFilters, defaultFilters)
2020-11-02 12:53:57 +13:00
Renovate Bot
aaeba56134
Update dependency ghost-ignition to v4.2.3 2020-10-29 15:18:58 +00:00
Renovate Bot
37f071f860
Update dependency @sentry/node to v5.27.2 2020-10-29 14:12:16 +00:00
Renovate Bot
44a64da011 Update dependency @tryghost/members-api to v0.34.1 2020-10-29 17:21:56 +05:30
Renovate Bot
dcb4e37790 Update dependency @tryghost/members-csv to v0.3.2 2020-10-29 16:32:06 +05:30
Renovate Bot
8c990d2907 Update dependency @tryghost/magic-link to v0.6.1 2020-10-29 16:31:42 +05:30