Skip to content

update tidepool data-tools library version#76

Open
ewollesen wants to merge 1 commit intomasterfrom
eric-localtime
Open

update tidepool data-tools library version#76
ewollesen wants to merge 1 commit intomasterfrom
eric-localtime

Conversation

@ewollesen
Copy link

Includes a fix for localTime formatting.

BACK-4205

Its value is inaccurate in JSON[^1], which doesn't store a timezone
with timestamps, but rather always uses UTC and converts via the
browser's timezone.

For this reason the values are left in for other formats, which
combined with the local offset field, can properly determine the
value.

[^1]: unless the user's timezone matches that of the server providing
      the data (that's typically UTC)

BACK-4205
@ewollesen ewollesen marked this pull request as ready for review February 24, 2026 13:34
@ewollesen
Copy link
Author

ewollesen commented Feb 24, 2026

The build failure is because the matching version of node-data-tools hasn't been merged yet. tidepool-org/node-data-tools#26

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @tidepool/data-tools library from version 2.4.2 to 3.0.0, which is a major version upgrade that includes a fix for localTime formatting. The code changes configure the data processor to exclude localTime fields from JSON exports while retaining them in Excel exports.

Changes:

  • Updated @tidepool/data-tools dependency from 2.4.2 to 3.0.0
  • Added excludeLocalTime configuration option to processorConfig that is set to true for JSON exports and false for Excel exports

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Updated @tidepool/data-tools dependency to version 3.0.0
lib/handlers/userDataHandler.mjs Added excludeLocalTime configuration to exclude localTime from JSON exports

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@krystophv krystophv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

"@babel/preset-env": "7.25.4",
"@godaddy/terminus": "4.12.1",
"@tidepool/data-tools": "2.4.2",
"@tidepool/data-tools": "3.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need to bump this when the actual version is pushed to npm

Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update package.json to update version of @tidepool/data-tools to "2.5.0".

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.

4 participants