Page MenuHomePhabricator

[native] Add UUID dependency
ClosedPublic

Authored by bartek on Apr 27 2023, 4:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 7:57 PM
Unknown Object (File)
Wed, Apr 3, 7:57 PM
Unknown Object (File)
Wed, Apr 3, 7:57 PM
Unknown Object (File)
Wed, Apr 3, 7:57 PM
Unknown Object (File)
Wed, Apr 3, 7:56 PM
Unknown Object (File)
Wed, Apr 3, 7:47 PM
Unknown Object (File)
Feb 25 2024, 9:24 AM
Unknown Object (File)
Feb 25 2024, 9:04 AM
Subscribers

Details

Summary

As discussed in ENG-3534, blob holder for encrypted media will be a UUID.

Added the uuid dependency. Ran yarn why uuid and saw that both web and keyserver already resolve to uuid@3.4.0, as well as the expo library so sticked to the same version to keep consistent and avoid conflicts. Only updated all of them to ^3.4.0 to keep consistent

Newer versions mostly introduce breaking changes: mainly ESM, way of importing and greatly increase package size so I see no point forcing them (also IDK if they're compatible with Metro)

Test Plan

yarn cleaninstall. Native bundle loads. Console.log uuid.v4() works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 27 2023, 4:29 AM

We appear to use another version in other package.json files (3.3.3), but in yarn.lock it resolves to the same version:

uuid@^3.3.2, uuid@^3.3.3, uuid@^3.4.0:
  version "3.4.0"
  resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
  integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

Could potentially be good to update the other package.jsons to have the same version number for consistency

This revision is now accepted and ready to land.Apr 27 2023, 8:12 AM

Update web and keyserver uuid to 3.4.0 for consistency

This revision was automatically updated to reflect the committed changes.