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

Return ISODateString instead of date #91

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

fisehara
Copy link
Contributor

Change-type: major

@joshbwlng
Copy link
Contributor

@fisehara Can you add the reasoning as part of the commit for easier future reference?

@fisehara fisehara force-pushed the fisehara/return-iso_date_string branch from 9b447bc to 115079f Compare February 27, 2024 10:40
@fisehara fisehara requested a review from Page- February 27, 2024 19:14
@fisehara fisehara marked this pull request as ready for review February 27, 2024 19:14
src/types/date-time.ts Outdated Show resolved Hide resolved
The internal and external representation of the returned object from pinejs should be consistent.
Pinejs internal interface will return date or date time fields as date object. For the external interface the object is JSON.stringified so that date becomes an ISO string anyway.

Change-type: major
Signed-off-by: fisehara <[email protected]>
@fisehara fisehara force-pushed the fisehara/return-iso_date_string branch from 115079f to 37e2d44 Compare March 4, 2024 14:45
@flowzone-app flowzone-app bot enabled auto-merge March 4, 2024 14:48
@fisehara fisehara requested a review from Page- March 4, 2024 14:57
@flowzone-app flowzone-app bot merged commit 1d054fe into master Mar 4, 2024
48 checks passed
@flowzone-app flowzone-app bot deleted the fisehara/return-iso_date_string branch March 4, 2024 17:36
fisehara added a commit to balena-io/pinejs that referenced this pull request Mar 5, 2024
Update `@balena/sbvr-types` from 6.1.1 to 7.0.1

pinejs provides an internal and external interface. The external interface returns ISODateString encoded data.
The internal interface should be consistent to the external interface, so that the pinejs api internally used also returns an ISODateString encoded data. This is solvedi n `sbvr-types` and is a major in the submodule and made this also a major change for pinejs itself.

balena-io-modules/sbvr-types#91

Change-type: major
Signed-off-by: Harald Fischer <[email protected]>
fisehara added a commit to balena-io/pinejs that referenced this pull request Mar 5, 2024
Update `@balena/sbvr-types` from 6.1.1 to 7.0.1

pinejs provides an internal and external interface. The external interface returns ISODateString encoded data.
The internal interface should be consistent to the external interface, so that the pinejs api internally used also returns an ISODateString encoded data. This is solvedi n `sbvr-types` and is a major in the submodule and made this also a major change for pinejs itself.

balena-io-modules/sbvr-types#91

Change-type: major
Signed-off-by: Harald Fischer <[email protected]>
fisehara added a commit to balena-io/pinejs that referenced this pull request Mar 6, 2024
Update `@balena/sbvr-types` from 6.1.1 to 7.0.1

pinejs provides an internal and external interface. The external interface returns ISODateString encoded data.
The internal interface should be consistent to the external interface, so that the pinejs api internally used also returns an ISODateString encoded data. This is solved in `sbvr-types` and is a major in the submodule and made this also a major change for pinejs itself.

balena-io-modules/sbvr-types#91

Change-type: major
Signed-off-by: Harald Fischer <[email protected]>
fisehara added a commit to balena-io/pinejs that referenced this pull request Mar 8, 2024
…API interface for date and date time fields.

Update `@balena/sbvr-types` from 6.1.1 to 7.0.1

pinejs provides an internal and external interface. The external interface returns ISODateString encoded data.
The internal interface should be consistent to the external interface, so that the pinejs api internally used also returns an ISODateString encoded data. This is solved in `sbvr-types` and is a major in the submodule and made this also a major change for pinejs itself.

balena-io-modules/sbvr-types#91

Change-type: major
Signed-off-by: Harald Fischer <[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.

3 participants