Skip to content

Bump moment from 2.28.0 to 2.29.4 in /backend/src/serverless/integrations#1

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/src/serverless/integrations/moment-2.29.4
Closed

Bump moment from 2.28.0 to 2.29.4 in /backend/src/serverless/integrations#1
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/src/serverless/integrations/moment-2.29.4

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Aug 25, 2022

Bumps moment from 2.28.0 to 2.29.4.

Changelog

Sourced from moment's changelog.

2.29.4

  • Release Jul 6, 2022
    • #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex

2.29.3 Full changelog

  • Release Apr 17, 2022
    • #5995 [bugfix] Remove const usage
    • #5990 misc: fix advisory link

2.29.2 See full changelog

  • Release Apr 3 2022

Address GHSA-8hfj-j24r-96c4

2.29.1 See full changelog

  • Release Oct 6, 2020

Updated deprecation message, bugfix in hi locale

2.29.0 See full changelog

  • Release Sept 22, 2020

New locales (es-mx, bn-bd). Minor bugfixes and locale improvements. More tests. Moment is in maintenance mode. Read more at this link: https://momentjs.com/docs/#/-project-status/

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

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [moment](https://github.com/moment/moment) from 2.28.0 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.28.0...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 25, 2022
@joanreyero joanreyero closed this Aug 25, 2022
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Aug 25, 2022

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/backend/src/serverless/integrations/moment-2.29.4 branch August 25, 2022 09:25
joanreyero added a commit that referenced this pull request May 27, 2026
The unique index on advisory_affected_ranges shipped in V1779710880
keyed on (advisory_package_id, COALESCE(introduced_version, '')) —
strictly narrower than the natural uniqueness of a range tuple, and
narrower than the principle locked in osv-plan §2 #1 ("one package
has many version ranges; no denormalization").

dedupeRanges in upsertAdvisory.ts was keying on introduced_version
alone to match that index, with the side effect that two ranges
sharing an introduced_version but differing in fixed_version or
last_affected (cross-distro patches, partial fixes) silently
collapsed to the first occurrence. When the surviving range was
the narrower one, isInRange returned FALSE for versions inside the
wider window — a missed critical alert.

Three changes:

- V1779897650__widen_advisory_affected_ranges_unique_index.sql:
  drop the narrow unique index (located via pg_indexes since the
  initial migration didn't name it) and replace with the full-tuple
  unique index over (advisory_package_id,
  COALESCE(introduced_version,''), COALESCE(fixed_version,''),
  COALESCE(last_affected,'')).
- upsertAdvisory.ts dedupeRanges: key on the full tuple so the
  application-side pre-flight matches the database constraint.
  Exported for unit testing.
- upsertAdvisory.test.ts: 5 cases pinning the new semantics
  (same-introduced-different-fixed preserved, same-introduced-
  different-last_affected preserved, identical-tuple collapsed,
  null-introduced disambiguated by other fields, first-wins on
  truly identical tuples).

ADR-0006 captures the decision and the alternatives considered
(coalesce-to-widest at parse time, drop the constraint, dedup at
query time). Cursor's bot review on 1b978ac surfaced the bug.

Signed-off-by: Joan Reyero <joan@reyero.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant