Skip to content

fix: update dependencies and fix types for Proxy#66

Merged
nolanlawson merged 5 commits intomasterfrom
nolan/update-deps-202109
Sep 8, 2021
Merged

fix: update dependencies and fix types for Proxy#66
nolanlawson merged 5 commits intomasterfrom
nolan/update-deps-202109

Conversation

@nolanlawson
Copy link
Contributor

Updates dependencies, most notably TypeScript which has a new definition for Proxy objects which breaks some of our existing types: microsoft/TypeScript#35594

Notably it looks like we've been assuming that PropertyKey (which is string | number | symbol) is fine to be used as proxy property keys, when actually the spec only allows string | symbol. So I added a ProxyPropertyKey type to handle this.

@nolanlawson nolanlawson requested a review from caridy September 7, 2021 22:43
footer,
file: path.join(targetDirectory, targetName)
file: path.join(targetDirectory, targetName),
exports: 'auto'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does not seem to change the output file format, and suppresses a warning from Rollup.

Copy link
Contributor

@pmdartus pmdartus left a comment

Choose a reason for hiding this comment

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

Minor nitpicks otherwise LGTM.

yarn.lock Outdated
@@ -9,11 +9,23 @@
dependencies:
"@babel/highlight" "^7.12.13"

"@babel/code-frame@^7.14.5":
Copy link
Contributor

Choose a reason for hiding this comment

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

I would recommend running yarn upgrade to get rid of the duplicate packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

nolanlawson and others added 4 commits September 8, 2021 15:19
Co-authored-by: Pierre-Marie Dartus <p.dartus@salesforce.com>
Co-authored-by: Pierre-Marie Dartus <p.dartus@salesforce.com>
@nolanlawson nolanlawson changed the title chore: update dependencies fix: update dependencies and fix types for Proxy Sep 8, 2021
@nolanlawson nolanlawson merged commit fb7daec into master Sep 8, 2021
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