renovate[bot]
bc4aebf163
Update Test & linting packages
2022-07-19 18:55:22 +00:00
Fabien "egg" O'Carroll
0ff47d4b51
Published new versions
...
- @tryghost/magic-link@1.1.0
- @tryghost/members-api@8.3.0
- @tryghost/members-stripe-service@0.10.6
2022-07-15 11:03:57 +01:00
renovate[bot]
5fc7a90bf9
Lock file maintenance
2022-07-14 20:04:41 +00:00
Fabien "egg" O'Carroll
c41f067ea8
Published new versions
...
- @tryghost/domain-events@0.1.14
- @tryghost/express-dynamic-redirects@0.2.13
- @tryghost/magic-link@1.0.26
- @tryghost/member-analytics-service@0.1.16
- @tryghost/member-events@0.4.6
- @tryghost/members-analytics-ingress@0.1.17
- @tryghost/members-api@8.0.0
- @tryghost/members-csv@1.2.15
- @tryghost/members-events-service@0.4.3
- @tryghost/members-importer@0.5.14
- @tryghost/members-ssr@1.0.28
- @tryghost/members-offers@0.11.6
- @tryghost/members-payments@0.3.6
- @tryghost/members-stripe-service@0.10.5
- @tryghost/verification-trigger@0.2.5
2022-05-16 19:29:05 +01:00
Renovate Bot
a599830920
Update dependency c8 to v7.11.3
2022-05-16 05:20:36 +00:00
Aileen Nowak
152a2ea41f
Published new versions
...
- @tryghost/domain-events@0.1.13
- @tryghost/express-dynamic-redirects@0.2.12
- @tryghost/magic-link@1.0.25
- @tryghost/member-analytics-service@0.1.15
- @tryghost/member-events@0.4.5
- @tryghost/members-analytics-ingress@0.1.16
- @tryghost/members-api@7.0.1
- @tryghost/members-csv@1.2.14
- @tryghost/members-events-service@0.4.2
- @tryghost/members-importer@0.5.13
- @tryghost/members-ssr@1.0.27
- @tryghost/members-offers@0.11.5
- @tryghost/members-payments@0.3.5
- @tryghost/members-stripe-service@0.10.4
- @tryghost/verification-trigger@0.2.4
2022-05-10 11:40:41 -04:00
Renovate Bot
7af0eb6fdf
Update dependency sinon to v14
2022-05-09 04:41:01 +00:00
Simon Backx
0111e23fb7
Published new versions
...
- @tryghost/domain-events@0.1.12
- @tryghost/express-dynamic-redirects@0.2.11
- @tryghost/magic-link@1.0.24
- @tryghost/member-analytics-service@0.1.14
- @tryghost/member-events@0.4.4
- @tryghost/members-analytics-ingress@0.1.15
- @tryghost/members-api@6.3.1
- @tryghost/members-csv@1.2.13
- @tryghost/members-events-service@0.4.1
- @tryghost/members-importer@0.5.12
- @tryghost/members-ssr@1.0.26
- @tryghost/members-offers@0.11.4
- @tryghost/members-payments@0.3.4
- @tryghost/members-stripe-service@0.10.3
- @tryghost/verification-trigger@0.2.3
2022-05-03 16:40:39 +02:00
Renovate Bot
bddc9a5159
Update dependency c8 to v7.11.2
2022-05-02 21:39:21 +00:00
Fabien "egg" O'Carroll
b8545d2912
Published new versions
...
- @tryghost/domain-events@0.1.11
- @tryghost/express-dynamic-redirects@0.2.10
- @tryghost/magic-link@1.0.23
- @tryghost/member-analytics-service@0.1.13
- @tryghost/member-events@0.4.3
- @tryghost/members-analytics-ingress@0.1.14
- @tryghost/members-api@6.3.0
- @tryghost/members-csv@1.2.12
- @tryghost/members-events-service@0.4.0
- @tryghost/members-importer@0.5.11
- @tryghost/members-ssr@1.0.25
- @tryghost/members-offers@0.11.3
- @tryghost/members-payments@0.3.3
- @tryghost/members-stripe-service@0.10.2
- @tryghost/verification-trigger@0.2.2
2022-05-02 19:11:55 +01:00
Renovate Bot
cddf87863e
Update dependency mocha to v10
2022-05-02 02:29:13 +00:00
Simon Backx
a0a50f7acc
Published new versions
...
- @tryghost/domain-events@0.1.10
- @tryghost/express-dynamic-redirects@0.2.9
- @tryghost/magic-link@1.0.22
- @tryghost/member-analytics-service@0.1.12
- @tryghost/member-events@0.4.2
- @tryghost/members-analytics-ingress@0.1.13
- @tryghost/members-api@6.2.0
- @tryghost/members-csv@1.2.11
- @tryghost/members-events-service@0.3.4
- @tryghost/members-importer@0.5.9
- @tryghost/members-ssr@1.0.24
- @tryghost/members-offers@0.11.2
- @tryghost/members-payments@0.3.2
- @tryghost/members-stripe-service@0.10.1
- @tryghost/verification-trigger@0.2.1
2022-04-27 19:08:40 +02:00
Renovate Bot
a49bb037c4
Update Test & linting packages
2022-04-27 12:16:56 +00:00
Rishabh
d56734d711
Published new versions
...
- @tryghost/members-api@5.8.0
- @tryghost/members-stripe-service@0.10.0
2022-04-13 15:04:51 +05:30
Rishabh
2ac24b9d4c
Handled newsletter preference for paid members signup
...
refs https://github.com/TryGhost/Team/issues/1490
With multiple newsletters, paid members can choose their newsletter preference at the time of signup via Portal. This change handles the newsletter preference via stripe checkout metadata and stores it against the member on completing signup.
2022-04-13 15:02:58 +05:30
Naz
8e7e2b1d54
Published new versions
...
- @tryghost/members-api@5.5.1
- @tryghost/members-stripe-service@0.9.4
2022-04-05 17:40:06 +08:00
Naz
af4d7b4938
Fixed failing migration requests when client runs in a test env
...
no issue
- When Ghost is running in a test environment, it is configured with an invalid Stripe key that looks like `sk_test***`. In this case the migrations try runnig creating request to Stripe, which fail. The failures pollute the output, which makes other valid errors lost.
- An example of such error log is following:
```
Invalid API Key provided: sk_test_******ripe
----------------------------------------
Error: Invalid API Key provided: sk_test_******ripe
at res.toJSON.then.StripeAPIError.message (/home/naz/Workspace/Ghost/Ghost/node_modules/stripe/lib/StripeResource.js:214:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
```
- There doesn't seem to be a good reason to do migrations in the test environment. Skipping them as a special case to fix the output pollution problem seems like a right solution
2022-04-05 21:36:22 +12:00
Rishabh
0e09a57971
Published new versions
...
- @tryghost/express-dynamic-redirects@0.2.8
- @tryghost/members-api@5.5.0
- @tryghost/members-csv@1.2.10
- @tryghost/members-events-service@0.3.3
- @tryghost/members-importer@0.5.7
- @tryghost/members-stripe-service@0.9.3
2022-04-04 21:08:04 +05:30
Daniel Lockyer
b84e54b0cf
Unpinned dependencies
...
- libraries should have dependencies unpinned so we can rely on
lockfiles and reduce duplicates
- this commit unpins a handful of dependencies
2022-03-24 11:06:57 +00:00
Thibaut Patel
84bbcbb057
Published new versions
...
- @tryghost/members-api@5.4.1
- @tryghost/members-csv@1.2.9
- @tryghost/members-importer@0.5.6
- @tryghost/members-stripe-service@0.9.2
2022-03-23 11:26:35 +01:00
Thibaut Patel
f9ed212431
Added the missing requires to the stripe
package
...
refs https://github.com/TryGhost/Team/issues/1437
- This enables this package to declare the version of all its dependencies
- It avoids using a different `@tryghost/domain-events` version, which ends up creating a new underlying EventEmitter than the one used with the other packages in this monorepo.
- The long term fix to avoid to have multiple EventEmitters is to make domain-events an injected dependency, so that it's only a dependency of Ghost core.
2022-03-23 11:22:36 +01:00
Thibaut Patel
c37021c575
Published new versions
...
- @tryghost/domain-events@0.1.9
- @tryghost/express-dynamic-redirects@0.2.7
- @tryghost/magic-link@1.0.21
- @tryghost/member-analytics-service@0.1.11
- @tryghost/member-events@0.4.1
- @tryghost/members-analytics-ingress@0.1.12
- @tryghost/members-api@5.3.0
- @tryghost/members-csv@1.2.7
- @tryghost/members-events-service@0.3.2
- @tryghost/members-importer@0.5.4
- @tryghost/members-ssr@1.0.23
- @tryghost/members-offers@0.10.9
- @tryghost/members-payments@0.1.11
- @tryghost/members-stripe-service@0.9.1
- @tryghost/verification-trigger@0.1.6
2022-03-11 22:45:26 +01:00
Renovate Bot
0ad973c8b5
Update dependency mocha to v9.2.2
2022-03-11 18:04:58 +00:00
Renovate Bot
5b6fe29293
Update dependency @tryghost/errors to v1.2.5
2022-03-11 15:44:50 +00:00
Fabien "egg" O'Carroll
688a5c9241
Published new versions
...
- @tryghost/members-api@5.1.2
- @tryghost/members-stripe-service@0.9.0
2022-03-09 14:43:15 +00:00
Fabien 'egg' O'Carroll
633dc08c11
Added migration to update Stripe Product names ( #376 )
...
refs https://github.com/TryGhost/Team/issues/1289
We had a bug where Tiers would have a name of 'Default Product', and a
Stripe Product would be created with the same name. This migration will
fixes those broken Stripe Products
2022-03-09 14:41:59 +00:00
Renovate Bot
e45f85ce41
Update dependency @tryghost/errors to v1.2.4
2022-03-09 10:31:57 +00:00
Thibaut Patel
dafda42e0a
Published new versions
...
- @tryghost/domain-events@0.1.8
- @tryghost/express-dynamic-redirects@0.2.6
- @tryghost/magic-link@1.0.20
- @tryghost/member-analytics-service@0.1.10
- @tryghost/member-events@0.4.0
- @tryghost/members-analytics-ingress@0.1.11
- @tryghost/members-api@5.0.4
- @tryghost/members-csv@1.2.6
- @tryghost/members-events-service@0.1.0
- @tryghost/members-importer@0.5.3
- @tryghost/members-ssr@1.0.22
- @tryghost/members-offers@0.10.8
- @tryghost/members-payments@0.1.10
- @tryghost/members-stripe-service@0.8.4
- @tryghost/verification-trigger@0.1.5
2022-03-01 10:36:48 +01:00
Renovate Bot
9cc2cb8b87
Update dependency @tryghost/errors to v1.2.3
2022-02-21 17:48:55 +00:00
Daniel Lockyer
db696a9272
Added --all
to c8 command
...
refs https://github.com/TryGhost/Toolbox/issues/203
- without `--all`, c8 ignores files that should be included in the
coverage score but aren't used in tests
- this means we have artificially high scores in places where this isn't
used
- this commit adds `--all` where previously missing
- where this fails `--check-coverage`, that has been removed for now
2022-02-21 13:08:55 +01:00
Renovate Bot
d813510a07
Update dependency mocha to v9.2.1
2022-02-21 00:05:27 +00:00
Naz
7fdd210739
Published new versions
...
- @tryghost/members-api@5.0.3
- @tryghost/members-stripe-service@0.8.3
2022-02-18 16:23:21 +07:00
Naz
27fe7ed61c
🐛 Fixed StripeAPI disconnection
...
refs https://github.com/TryGhost/Toolbox/issues/214
- After disconnecting Stripe API the `_configured` flag stayed as `true`, causing behaviors as if Stripe was still connnected.
- The `api.configure` method was never reachable when disconnecting Stripe API, thus causes hanging "configured === false" state inside of the StripeAPI wrapper
2022-02-18 22:21:56 +13:00
Fabien "egg" O'Carroll
6c1081df23
Published new versions
...
- @tryghost/magic-link@1.0.19
- @tryghost/members-api@5.0.2
- @tryghost/members-csv@1.2.5
- @tryghost/members-importer@0.5.2
- @tryghost/members-ssr@1.0.21
- @tryghost/members-stripe-service@0.8.2
2022-02-17 14:05:22 +02:00
Fabien "egg" O'Carroll
f452df7e92
Fixed error handling webhook for unknown member
...
refs https://github.com/TryGhost/Team/issues/1374
We cannot update payment details for members which we don't know about,
so returning and giving a successful response to Stripe is the correct
thing to do.
2022-02-17 13:51:47 +02:00
Renovate Bot
e400b4d8f4
Update dependency @tryghost/errors to v1.2.2
2022-02-17 03:05:28 +00:00
Daniel Lockyer
a0f716f475
Published new versions
...
- @tryghost/domain-events@0.1.7
- @tryghost/express-dynamic-redirects@0.2.5
- @tryghost/magic-link@1.0.18
- @tryghost/member-analytics-service@0.1.9
- @tryghost/member-events@0.3.5
- @tryghost/members-analytics-ingress@0.1.10
- @tryghost/members-api@5.0.1
- @tryghost/members-csv@1.2.4
- @tryghost/members-importer@0.5.1
- @tryghost/members-ssr@1.0.20
- @tryghost/members-offers@0.10.7
- @tryghost/members-payments@0.1.9
- @tryghost/members-stripe-service@0.8.1
- @tryghost/verification-trigger@0.1.4
2022-02-15 13:42:23 +01:00
Renovate Bot
463317eb76
Update dependency sinon to v13
2022-02-15 13:39:43 +01:00
Renovate Bot
a0f9070b49
Update dependency @tryghost/errors to v1.2.1
2022-02-15 13:39:33 +01:00
Renovate Bot
5e91609abb
Update Test & linting packages
2022-02-15 13:35:28 +01:00
Hannah Wolfe
3dcf85d5e4
Ensured correct usage of @tryghost/errors everywhere
...
refs: 23b383bedf
- @tryghost/error constructors take an object, not a string - the expectation is that message, context & help should all be set
- This does the bare minimum and just ensures message is set correctly
2022-02-15 12:30:36 +00:00
Hannah Wolfe
fbdbd7fd43
Removed @babel/eslint-parser, set ecmaVersion instead
...
refs: 3a1c51672c
- @babel/eslint-parser was added to enable support for static members on classes but this causes other problems as it fails on eslint ugprades etc
- a better solution is to set ecmaVersion to 2022, as our default is 2018 which does not support static, yet 2022 does
2022-02-15 12:30:17 +00:00
Fabien "egg" O'Carroll
8993778f8b
Published new versions
...
- @tryghost/members-api@5.0.0
- @tryghost/members-stripe-service@0.8.0
2022-02-15 11:08:42 +02:00
Fabien "egg" O'Carroll
e672369311
Lowered codecoverage lines threshold for stripe
...
no-issue
The new tests added do not meet the default minimum of 90% and we do not
want to dedicate more time to writing tests for this package right now.
2022-02-15 10:57:40 +02:00
Fabien "egg" O'Carroll
6ce441f760
Moved the last of the Stripe config out of Members
...
refs https://github.com/TryGhost/Team/issues/1322
We no longer restart the Members service based on the Stripe service
being updated, which meant that if it was initially configured with
missing URL's and later Stripe connected, it would not get the new
config until a server restart. This moves the last of Stripe config into
the Stripe service, so that all things concerning Stripe can be handled
in one place and updated together.
2022-02-15 10:57:40 +02:00
Fabien "egg" O'Carroll
012d42a129
Published new versions
...
- @tryghost/members-api@4.8.8
- @tryghost/members-stripe-service@0.7.0
2022-02-01 13:16:48 +02:00
Fabien "egg" O'Carroll
8915d15a1d
Added migration to update Default Tier name
...
refs https://github.com/TryGhost/Team/issues/1289
This ensures that we set the default tier's name to the title of the
site - which looks a lot better than "Default Product".
2022-02-01 13:16:06 +02:00
Fabien "egg" O'Carroll
d47b178b42
Published new versions
...
- @tryghost/members-api@4.8.6
- @tryghost/members-stripe-service@0.6.7
2022-02-01 11:59:02 +02:00
Fabien "egg" O'Carroll
7698729375
Updated email handler for webhooks
...
refs https://github.com/TryGhost/Team/issues/1168
This ensures that the correct email type is sent
2022-02-01 11:54:16 +02:00
Fabien "egg" O'Carroll
5d7c63aeec
Published new versions
...
- @tryghost/members-api@4.8.5
- @tryghost/members-stripe-service@0.6.6
2022-02-01 11:42:55 +02:00
Fabien 'egg' O'Carroll
67713832f6
Updated README
...
no-issue
- Corrects the package name
- Removes the run section as it's not applicable
2022-01-31 18:17:45 +02:00
Fabien "egg" O'Carroll
65543b4e8f
Published new versions
...
- @tryghost/members-api@4.8.2
- @tryghost/members-stripe-service@0.6.5
2022-01-26 22:26:58 +02:00
Fabien "egg" O'Carroll
fc5ff5c9e4
Fixed sending emails to paid signups
...
refs https://github.com/TryGhost/Team/issues/1293
We were referencing the incorrect method from the members-api which
would fail to send the email.
2022-01-26 22:25:07 +02:00
Fabien "egg" O'Carroll
e4e28aae3d
Published new versions
...
- @tryghost/members-api@4.7.1
- @tryghost/members-stripe-service@0.6.4
2022-01-24 17:37:08 +02:00
Fabien "egg" O'Carroll
560d1f72d8
Fixed reference to sendMagicLink
...
no-issue
This was referencing the wrong object to get the sendMagicLink method.
2022-01-24 17:35:51 +02:00
Fabien "egg" O'Carroll
883945886c
Published new versions
...
- @tryghost/domain-events@0.1.5
- @tryghost/express-dynamic-redirects@0.2.4
- @tryghost/magic-link@1.0.16
- @tryghost/member-analytics-service@0.1.6
- @tryghost/member-events@0.3.3
- @tryghost/members-analytics-ingress@0.1.7
- @tryghost/members-api@4.2.0
- @tryghost/members-csv@1.2.3
- @tryghost/members-importer@0.4.1
- @tryghost/members-ssr@1.0.18
- @tryghost/members-offers@0.10.5
- @tryghost/members-payments@0.1.7
- @tryghost/members-stripe-service@0.6.3
2022-01-20 17:49:29 +02:00
Renovate Bot
233bb828fa
Pin dependencies
2022-01-20 15:42:33 +00:00
Renovate Bot
a2bcff314f
Update dependency c8 to v7.11.0
2022-01-20 14:30:04 +00:00
Fabien "egg" O'Carroll
aa8dca50eb
Published new versions
...
- @tryghost/members-api@4.1.4
- @tryghost/members-stripe-service@0.6.2
2022-01-20 11:00:25 +02:00
Fabien "egg" O'Carroll
ab215fb96a
Added missing default parameter for opts
...
no-issue
The `opts` parameter is optional but there was no default defined, this
was causing errors when trying to read the forceCreate property if opts
was not passed.
2022-01-20 10:58:34 +02:00
Fabien "egg" O'Carroll
f11e1e411d
Published new versions
...
- @tryghost/members-api@4.0.1
- @tryghost/members-stripe-service@0.6.1
2022-01-18 11:20:09 +02:00
Fabien "egg" O'Carroll
f488438ad0
Added check for Stripe config before migrations
...
no-issue
This stops us from attempting to run the migrations if Stripe has not
been configured.
2022-01-18 11:18:08 +02:00
Fabien "egg" O'Carroll
0e955fc84f
Published new versions
...
- @tryghost/members-api@4.0.0
- @tryghost/members-stripe-service@0.6.0
2022-01-18 10:40:05 +02:00
Fabien "egg" O'Carroll
74225779a2
Moved webhook handling into Stripe service
...
no-issue
Handling Stripe webhooks is a Stripe concern and so we're moving it into
the Stripe module.
2022-01-18 10:37:47 +02:00
Fabien "egg" O'Carroll
635aa8aa3f
Added WebhookManager and StripeService modules
...
no-issue
2022-01-18 10:37:47 +02:00
Fabien "egg" O'Carroll
3a1c51672c
Used @babel/eslint-parser for stripe package
...
no-issue
This allows us to use static members on classes.
2022-01-18 10:37:47 +02:00
Fabien "egg" O'Carroll
344102f1aa
Cleaned up StripeAPI
...
no-issue
- Removed unused types
- Removed configure on creation feature (unused)
- Explicitly handled configuration with no config
2022-01-18 10:37:47 +02:00
Fabien "egg" O'Carroll
1b837b8ed0
Updated internals of Migrations module
...
no-issue
This simplifies the dependency structure.
2022-01-18 10:37:47 +02:00
Fabien "egg" O'Carroll
8dee8752d3
Moved Stripe migrations into Stripe package
...
refs https://github.com/TryGhost/Team/issues/1257
This will allow us to run the Stripe migrations without rebooting the
Members service.
2022-01-18 10:25:37 +02:00
Fabien "egg" O'Carroll
00ec7157a6
Renamed StripeService -> StripeAPI
...
no-issue
This module is going to encapsulate all of the Stripe related logic, so
I'm renaming this file to be a little more specific about what it
relates to. Essentially this module will export a Stripe Service, and
this file is just one part of that.
2022-01-18 10:25:37 +02:00
Fabien "egg" O'Carroll
c120490a00
Moved members-stripe-service -> stripe
...
no-issue
We are already in the Members repository so there's no need for members
in the directory name. The NPM package name however is unchanged and
still requires specificity as it is scoped to @tryghost as a whole
rather than the Members feature.
2022-01-18 10:25:37 +02:00