Skip to content

refactor: bump UUID dep, remove 'deep require' of uuid #1492

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

Closed
wants to merge 14 commits into from

Conversation

jpgupta
Copy link

@jpgupta jpgupta commented Jun 6, 2022

See UUID documentation - https://github.com/uuidjs/uuid#deep-requires-now-deprecated

New Pull Request Checklist

Issue Description

The way Parse requires the uuid package is discouraged by the maintainers, and seems to be causing issues with other dependencies in my project.

Related issue:
#1491

Approach

This PR updates the uuid dependency fro 3x to 8x, and modifies the way it is imported/required, to use a named import, instead of the deprecated deep require appraoch.

I am not an expert in the nuances of JS import/require approaches so would appreciate some input from someone on this change -it seems to be sensible to me and in line with what the uuid project maintainers recommend (https://github.com/uuidjs/uuid#deep-requires-now-deprecated).

TODOs before merging

  • Add entry to changelog

@parse-github-assistant
Copy link

parse-github-assistant bot commented Jun 6, 2022

Thanks for opening this pull request!

  • ❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.

@jpgupta jpgupta changed the title Bump UUID dep, remove 'deep require' of uuid chore: Bump UUID dep, remove 'deep require' of uuid Jun 6, 2022
@jpgupta jpgupta changed the title chore: Bump UUID dep, remove 'deep require' of uuid refactor: Bump UUID dep, remove 'deep require' of uuid Jun 6, 2022
@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title refactor: Bump UUID dep, remove 'deep require' of uuid refactor: bump UUID dep, remove 'deep require' of uuid Jun 6, 2022
@mtrezza
Copy link
Member

mtrezza commented Jun 10, 2022

Could you take a look at the failing tests?

@jpgupta
Copy link
Author

jpgupta commented Jun 12, 2022

@mtrezza Yes I'll take a look this week
(For reference / in case anyone can help - it seems to be a permissions related thing? Not sure if people come across this commonly when commiting to this repo for the first time?)

Screenshot 2022-06-12 at 12 44 25

@mtrezza
Copy link
Member

mtrezza commented Jun 12, 2022

Maybe rebasing this PR on alpha fixes this, see #1495.

@jpgupta
Copy link
Author

jpgupta commented Jun 20, 2022

@mtrezza I'll give that a go thank you!

@mtrezza
Copy link
Member

mtrezza commented Jun 22, 2022

It seems the package-lock file still has a conflict

@jpgupta
Copy link
Author

jpgupta commented Jun 28, 2022

@mtrezza - taking a look

@jpgupta
Copy link
Author

jpgupta commented Jul 26, 2022

@mtrezza - I'm seeing this message, could you kindly re-run this workflow?
Screenshot 2022-07-26 at 23 57 20

@mtrezza
Copy link
Member

mtrezza commented Jul 26, 2022

Did you recreate the package-lock file? 26,671 additions, 165 deletions looks unusual for this simple dependency upgrade.

@mtrezza
Copy link
Member

mtrezza commented Jul 28, 2022

@jpgupta Could you use the package-lock file from the alpha branch and do the dependency upgrade again?

@jpgupta
Copy link
Author

jpgupta commented Sep 8, 2022

@mtrezza sorry for the delay, bunch of things going on - will take a look at this in the next few days

snyk-bot and others added 13 commits October 24, 2022 17:21
## [3.4.3-alpha.3](parse-community/Parse-SDK-JS@3.4.3-alpha.2...3.4.3-alpha.3) (2022-07-02)

### Bug Fixes

* subscription to a LiveQuery containing `ParseQuery.select` overrides properties ([parse-community#1488](parse-community#1488)) ([b80eee4](parse-community@b80eee4))
## [3.4.3](parse-community/Parse-SDK-JS@3.4.2...3.4.3) (2022-07-02)

### Bug Fixes

* creating a Parse.File with base64 string fails for some file types ([parse-community#1467](parse-community#1467)) ([c07d6c9](parse-community@c07d6c9))
* invalid name for `Parse.Role` throws incorrect error ([parse-community#1481](parse-community#1481)) ([8326a6f](parse-community@8326a6f))
## [3.4.4-beta.1](parse-community/Parse-SDK-JS@3.4.3...3.4.4-beta.1) (2022-07-02)

### Bug Fixes

* subscription to a LiveQuery containing `ParseQuery.select` overrides properties ([parse-community#1488](parse-community#1488)) ([b80eee4](parse-community@b80eee4))
@dplewis
Copy link
Member

dplewis commented Jan 27, 2023

Closing for bot to recreate PR.

@dplewis dplewis closed this Jan 27, 2023
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.

6 participants