Skip to content

Deprecate global,self as aliases for globalThis#459

Merged
legobeat merged 1 commit into
LavaMoat:mainfrom
legobeat:deprecate-globals
Feb 28, 2023
Merged

Deprecate global,self as aliases for globalThis#459
legobeat merged 1 commit into
LavaMoat:mainfrom
legobeat:deprecate-globals

Conversation

@legobeat

Copy link
Copy Markdown
Collaborator

Context: #458 (comment)

globalThis was not common early in lavamoat's history. it may be prevalent enough to remove

This logs a deprecation warning if the fallbacks are being used, with intention for full removal likely in the next release.

@legobeat legobeat requested a review from a team February 28, 2023 06:55
@legobeat legobeat marked this pull request as ready for review February 28, 2023 06:57
@kumavis

kumavis commented Mar 7, 2023

Copy link
Copy Markdown
Member

just saw this. we are now uttering possibly undefined vars without a typeof operator. this would throw in strict mode. this may have broken old node versions that we don't care about or support. so it's prolly fine.

@legobeat

legobeat commented Mar 8, 2023

Copy link
Copy Markdown
Collaborator Author

just saw this. we are now uttering possibly undefined vars without a typeof operator. this would throw in strict mode. this may have broken old node versions that we don't care about or support. so it's prolly fine.

Addressed in #466 (core) and #461 (lavapack)

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