Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency date-fns to v4 #1173

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
date-fns ^3.0.0 -> ^4.0.0 age adoption passing confidence

Release Notes

date-fns/date-fns (date-fns)

v4.0.0

Compare Source

I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.

Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.

Read more about the release in the announcement blog post.

- Sasha @​kossnocorp

Added
  • Added time zones support via @date-fns/tz's TZDate class and tz helper function. See its README for the details about the API.

  • All relevant functions now accept the context in option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:

    import { addDays, startOfDay } from "date-fns";
    import { tz } from "@​date-fns/tz";
    
    startOfDay(addDays(Date.now(), 5, { in: tz("Asia/Singapore") }));
    //=> "2024-09-16T00:00:00.000+08:00"

    In the example, addDays will get the current date and time in Singapore and add 5 days to it. startOfDay will inherit the date type and return the start of the day in Singapore.

Changed
  • The function arguments, as well as Interval's start and end, now can be of different types, allowing you to mix UTCDate, TZDate, Date, and other extensions, as well as primitives (strings and numbers).

    The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context in option or the first encountered argument object type. The Interval's start and end will be considered separately, starting from start.

    In the given example, the result will be in the TZDate as the first argument is a number, and the start takes precedence over the end.

    clamp(Date.now(), {
      start: new TZDate(start, "Asia/Singapore"),
      end: new UTCDate(),
    });
    //=> TZDate
  • BREAKING: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please open an issue.

  • BREAKING: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please report them.

Fixed
  • Fixed CDN build compatibility with jQuery and other tools that expose $ by properly wrapping the code in an IIFE.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled because a matching PR was automerged previously.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


Thanks for the PR!

Deployments, as required, will be available below:
Any successful deployments (not always required) will be available here

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@renovate renovate bot requested a review from fterra-encora as a code owner September 23, 2024 17:40
Copy link
Contributor

Current changelog

Bug Fixes

  • deps: update dependency date-fns to v4 (61fd354)

Copy link
Contributor

Overall Project NaN% NaN% 🍏

There is no coverage information present for the Files changed

@mamartinezmejia mamartinezmejia merged commit a4d33dc into main Sep 23, 2024
31 checks passed
@mamartinezmejia mamartinezmejia deleted the renovate/date-fns-4.x branch September 23, 2024 21:49
paulushcgcj pushed a commit that referenced this pull request Sep 24, 2024
* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mamartinezmejia added a commit that referenced this pull request Sep 26, 2024
* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(FSADT1-1514): fixed doing business as processing (#1177)

- added to external users the DBA field filled
- fixed the DBA field on the processor

* fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.3.4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>
fterra-encora added a commit that referenced this pull request Oct 1, 2024
* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(FSADT1-1514): fixed doing business as processing (#1177)

- added to external users the DBA field filled
- fixed the DBA field on the processor

* fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.3.4

* chore(deps): update maven all non-major dependencies

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>
Co-authored-by: Maria Martinez <[email protected]>
paulushcgcj added a commit that referenced this pull request Oct 1, 2024
* fix(deps): update maven all non-major dependencies

* feat(fe:FSADT1-1503): Adjust button and message for the "Need help?" side menu item (#1164)

* feat(fe:FSADT1-1445): Change "Logout" icon in "My profile" panel (#1165)

* feat(fe:FSADT1-1445): Change "Logout" icon in "My profile" panel

* Removed unused import

* feat(fe:FSADT1-1502): Adjust logout behavior (#1167)

* fix(fe: FSADT1-1427): Autocomplete emitting value twice (#1170)

* fix: prevent from re-emitting with value undefined

* test: update tests

* feat(fe:FSADT1-1510): Load Legal Types description from data convertor (#1169)

* fix(deps): update dependency date-fns to v4

* fix(fe: FSADT1-1495): Add notification to all BC Registries cards in step 1 (#1171)

fix: show the Read-only notification always

* chore: update support/client2 with main (#1175)

* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(fe: FSADT1-1511): Clear business information when a new Client name gets selected (#1176)

fix: clear business information when a new client name gets selected

* feat(FSADT1-779): adding cypress scenarios (#1139)

* feat: adding some cypress code

* feat: adding gherking issue template

* feat: updated commands and feature files

* feat: adding core cypress instructions for user flow

* chore: testing env var

* chore: testing artifact grab

* chore: ci update

* chore: debugging

* chore: reducing verbosity

* chore: removing test data

* feat: adding initial sample for creation

* docs: updated documentation

* feat: clean before run

This will make the database remove the test data beforehand. This can affect the manual test too, but is the price for now

* fix: fixing clean script

* chore: changing strategy for cleanup

- Changed strategy for cleanup. First remove everything from the PR database before recreating it. This is required due to tue uncertainty of the data that will be created through cypress and the previous, manual data inserted as well

* chore: testing a few new steps

* chore: pre-tools cleanup

* fix: fixing automation test

* fix: fixing staff on automation

* chore: changing wait time

* chore: adding an address

* chore: trying to make a miracle

* chore: scale down

* chore: changing config

* ci: lets do it

* chore: some tests

* ci: scale down post work and scale up

* chore: adding tags to make it easier to find component

* chore: updating name part

* chore: updating a little bit

* chore: adding bceid and bcsc button text

* feat: updated login hooks

* feat: add tag identifier for internal and external user

* feat: added initial bceid

* chore: adding contact identification for old screens

* chore: changed limits for submission

* chore: adding identification to notification

* fix: fixing submit instruction

* chore: splitting up the instructions

* fix: fixed bceid

* docs: updated readme for cypress

* chore: updating notification identification

* fix: fixing automation

* feat(FSADT1-779): updating gherkin issue template

* feat: added action to generate feature files

* docs: updated readme

* chore: reverting a change on accordion item title

* fix: fixing wrapper

* chore: adding decorator config

* fix: fixing data-text location

* chore: changing data-text location

* fix: changing data-text location

* fix: fixing contact selector

* chore: removing extra data-text

* chore: fixing subgroup search

* feat(FSADT1-1515): Display informative message when Legal Types are not supported (#1178)

* feat(FSADT1-1515): Display informative message when Legal Types are not supported

* feat(FSADT1-1515): Display informative message when Legal Types are not supported

* Made code reviews

---------

Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>

* feat(FSADT1-779): adding cypress scenarios (#1139) (#1179)

* feat(FSADT1-779): adding cypress scenarios (#1139)

* feat(FSADT1-779): adding cypress scenarios (#1139)

* chore: merge main into client2 to solve conflicts (#1181)

* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(FSADT1-1514): fixed doing business as processing (#1177)

- added to external users the DBA field filled
- fixed the DBA field on the processor

* fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.3.4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>

* ci(deps): updating deployer and workflows (#1185)

* fix(fe: FSADT1-1488): revalidate the date value properly (#1188)

fix: validate date of birth on revalidate event

* chore: upgrade vue (#1193)

chore: upgraded vue

* chore: update support/client2 with main (#1192)

* fix(deps): update maven all non-major dependencies

* fix(deps): update dependency date-fns to v4 (#1173)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(FSADT1-1514): fixed doing business as processing (#1177)

- added to external users the DBA field filled
- fixed the DBA field on the processor

* fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.3.4

* chore(deps): update maven all non-major dependencies

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>
Co-authored-by: Maria Martinez <[email protected]>

* fix(fe:FSADT1-1508): reset validation when the selected Client name changes (#1191)

* fix: reset validation when the selected Client name changes

* fix: fix cypress commands declaration

---------

Co-authored-by: Maria Martinez <[email protected]>

* fix(fe: FSADT1-1421): fix date validation for pasted/autocompleted values (#1187)

* fix: fix date validation for pasted/autocompleted values

* test: remove .only

---------

Co-authored-by: Maria Martinez <[email protected]>

* chore: upgrade types node (#1194)

chore: upgraded types/node

* fix(fe): stop date validation when part of it has an error (#1197)

fix: stop validation when any parts have errors

* chore: upgraded sass (#1195)

* chore: upgrade carbon pictograms (#1196)

chore: updgraded carbon pictograms

Co-authored-by: Fernando Terra <[email protected]>

* chore: upgrade carbon styles (#1198)

* chore: upgraded carbon styles

* Delete frontend/src/pages/SearchPage.vue

* chore: upgrade vue and cypress coverage (#1200)

* fix(FSADT1-1514): fixed doing business as processing (#1177)

- added to external users the DBA field filled
- fixed the DBA field on the processor

* chore(deps): update maven all non-major dependencies

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fernando Terra <[email protected]>
Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>
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