Skip to content

build(deps-dev): bump husky from 5.1.1 to 5.1.2#1250

Merged
PierreBrisorgueil merged 1 commit into
masterfrom
dependabot/npm_and_yarn/husky-5.1.2
Mar 1, 2021
Merged

build(deps-dev): bump husky from 5.1.1 to 5.1.2#1250
PierreBrisorgueil merged 1 commit into
masterfrom
dependabot/npm_and_yarn/husky-5.1.2

Conversation

@dependabot-preview
Copy link
Copy Markdown
Contributor

Bumps husky from 5.1.1 to 5.1.2.

Release notes

Sourced from husky's releases.

v5.1.2

  • docs: recommend prepare script instead of postinstall (#890)
  • cli: husky init use prepare script (#890)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [husky](https://github.com/typicode/husky) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v5.1.1...v5.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit fec031c and detected 0 issues on this pull request.

View more on Code Climate.

@PierreBrisorgueil PierreBrisorgueil merged commit f20349a into master Mar 1, 2021
@dependabot-preview dependabot-preview Bot deleted the dependabot/npm_and_yarn/husky-5.1.2 branch March 1, 2021 07:12
PierreBrisorgueil added a commit that referenced this pull request May 31, 2026
…#1250) (#3743)

* fix(billing): resolve plan via priceId map, not price.metadata.planId (#3742)

Port trawl's #1250 fix upstream: `customer.subscription.updated` was reading
`price.metadata.planId` which is empty in real Stripe webhook payloads (planId
lives on the Product, not the Price). Every paid org's plan was silently reset
to `free` on every Stripe subscription update event.

Fix:
- Add `buildPriceIdToPlanMap()` — builds `Map<priceId, planName>` from
  `config.stripe.prices` at boot (monthly + annual per plan)
- Rewrite `resolvePlan()` — looks up plan via priceId map first; falls back to
  `price.metadata.planId` for legacy test fixtures; final fallback `free` + warn
- Sync `cancelAt`/`cancelAtPeriodEnd` on `customer.subscription.updated` — writes
  the fields added by #3741 so the UI can show pending cancellation dates
- Use priceId map in `previousPlan` detection (plan change block in updated handler)
- Strip trawl-specific `analytics.capture('subscription_changed')` calls (not ported)

Also ports `retryWithBackoff` + `isNonTransientStripeError` patterns (already
in devkit from a prior PR — kept identical to trawl).

Adds 20 unit tests covering: priceId map resolution, annual/monthly variants,
unknown priceId fallback to free, legacy metadata fallback, priority of map over
metadata, cancelAt unix→Date conversion, null cancel clear, absent field guard,
handleSubscriptionCreated race safety (E11000 idempotency), and Dashboard
subscription creation path.

Closes #3742

* docs(billing): add ERRORS.md entry for price.metadata.planId empty in Stripe webhooks
PierreBrisorgueil added a commit that referenced this pull request Jun 1, 2026
…+ 4 hardening) (#3758)

* fix(billing): re-apply lost C.2 review nits (warn-on-unknown-priceId + 4 hardening)

5 Copilot review findings from PR #3743 (#1250 P0) were silently lost because
a controller-side fix commit was never pushed to origin before the squash-merge.

Re-applied fixes:
1. JSDoc for buildPriceIdToPlanMap: accurate description with @returns tag
2. resolvePlan: warn log when priceId not in map and metadata empty (operationally
   critical — same silent-free-downgrade shape as the P0 it was meant to prevent)
3. cancel_at truthy check → typeof === 'number' (prevents cancel_at=0 being skipped)
4. previousPlan: validatePlan() before comparison (rejects stale/invalid metadata values)
5. Test comment: corrects misleading "retryWithBackoff setTimeout suppression" claim

Refs: #3743, plan 2026-05-30-trawl-devkit-perfect-alignment.md

* fix(billing): gate resolvePlan warn to metadata-absent case only

Copilot review finding on PR #3758: the previous warn fired whenever
priceId was present and metadata didn't validate, but the log message said
"metadata empty" — misleading when metadata IS present but invalid
(validatePlan already warns in that case → double-warn).

Gate: only emit the warn when rawMeta is also absent (!rawMeta), and update
the message from "metadata empty" to "no metadata" to be precise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant