GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(lru): use map.delete() directly by negezor · Pull Request #713 · npm/node-semver

Conversation

@negezor

@negezor negezor commented May 8, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

The default implementation already returns boolean if the value has been deleted.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value

It's also faster since we don't double check the hashmap for a value.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mbtools reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@negezor
chore(lru): use map.delete() directly
12efe82
The default implementation already returns boolean if the object has been deleted.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value
@negezor
negezor requested a review from a team as a code owner May 8, 2024 17:49
@lukekarrys lukekarrys changed the title chore(lru): use map.delete() directly fix(lru): use map.delete() directly May 8, 2024
lukekarrys
lukekarrys reviewed May 8, 2024
View reviewed changes
Comment thread internal/lrucache.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lukekarrys
Update internal/lrucache.js
9afd9e6
lukekarrys
lukekarrys approved these changes May 8, 2024
View reviewed changes

@lukekarrys lukekarrys left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thank you!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

negezor and kravetsone reacted with hooray emoji
All reactions
  • 🎉 2 reactions
wraithgar
wraithgar approved these changes May 9, 2024
View reviewed changes
@wraithgar
wraithgar merged commit 6466ba9 into npm:main May 9, 2024
@github-actions github-actions Bot mentioned this pull request May 9, 2024
chore: release 7.6.2 #714
Merged
wraithgar pushed a commit that referenced this pull request May 9, 2024
@github-actions
chore: release 7.6.2 (#714)
eb1380b
🤖 I have created a release *beep* *boop*
---


## [7.6.2](v7.6.1...v7.6.2)
(2024-05-09)

### Bug Fixes

*
[`6466ba9`](6466ba9)
[#713](#713) lru: use
map.delete() directly (#713) (@negezor, @lukekarrys)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@mbtools

mbtools commented May 9, 2024

Copy link
Copy Markdown
Contributor

Thanks for the optimization 😊

negezor reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fanibahar fanibahar mentioned this pull request May 30, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.2 fanibahar/juice-shop1#71
Open
@Exkaleburx Exkaleburx mentioned this pull request May 30, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.2 Exkaleburx/vscode-languageserver-node#10
Open
@SherfeyInv SherfeyInv mentioned this pull request May 30, 2024
[Snyk] Upgrade semver from 7.6.1 to 7.6.2 SherfeyInv/setup-go#2
Merged
@devcurt696 devcurt696 mentioned this pull request May 31, 2024
[Snyk] Upgrade semver from 7.0.0 to 7.6.2 devcurt696/resume-builder#78
Open
@NOUIY NOUIY mentioned this pull request May 31, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.2 NOUIY/setup-java#210
Open
@jakob-lj jakob-lj mentioned this pull request May 31, 2024
[Snyk] Upgrade semver from 7.6.1 to 7.6.2 capralifecycle/cals-cli#214
Closed
@NOUIY NOUIY mentioned this pull request May 31, 2024
[Snyk] Upgrade semver from 7.3.7 to 7.6.2 NOUIY/npm-groovy-lint#78
Closed
@Mhmonicox Mhmonicox mentioned this pull request Jun 1, 2024
[Snyk] Upgrade semver from 7.3.6 to 7.6.2 Mhmonicox/actions-setup-cmake#35
Open
@mcsaur mcsaur mentioned this pull request Jun 6, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.2 bartonmalow/delete-old-releases#1
Merged
@Haricthered Haricthered mentioned this pull request Jun 7, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.2 Haricthered/juice-shop#5
Open
@RickV85 RickV85 mentioned this pull request Jun 8, 2024
[Snyk] Upgrade semver from 7.6.1 to 7.6.2 RickV85/RideReady-FE#34
Open
@AndrewSnyk AndrewSnyk mentioned this pull request Jun 8, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.2 AndrewSnyk/juice-shop#5
Merged
@jessicazhanggg jessicazhanggg mentioned this pull request Jun 13, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.2 jessicazhanggg/juice-shop#6
Open
@santachago santachago mentioned this pull request Jun 14, 2024
[Snyk] Upgrade semver from 7.6.1 to 7.6.2 openeverest/openeverest#410
Merged
@NOUIY NOUIY mentioned this pull request Jun 19, 2024
[Snyk] Upgrade semver from 7.5.4 to 7.6.2 NOUIY/nodist#21
Open
@vAHiD55555 vAHiD55555 mentioned this pull request Jun 19, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.2 vAHiD55555/-Gradle-Actions#2
Open
@monjie110 monjie110 mentioned this pull request Jun 22, 2024
[Snyk] Upgrade semver from 7.3.4 to 7.6.2 monjie110/vscode-go#4
Open
@MelvinBot MelvinBot mentioned this pull request Jun 22, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.2 Expensify/expensify-common#727
Merged
@Kavinpg96 Kavinpg96 mentioned this pull request Jun 25, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.2 Kavinpg96/nodejs.org#5
Open
@browseman browseman mentioned this pull request Aug 15, 2024
[Snyk] Upgrade semver from 7.6.2 to 7.6.3 openeverest/openeverest#591
Merged
@prathik2401 prathik2401 mentioned this pull request Aug 15, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.3 prathik2401/green-commute#27
Merged
@NOUIY NOUIY mentioned this pull request Aug 17, 2024
[Snyk] Upgrade semver from 7.3.7 to 7.6.3 NOUIY/npm-groovy-lint#83
Closed
@gregory567 gregory567 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade semver from 7.5.2 to 7.6.3 gregory567/ContInt-backend#5
Open
@Bbjj88h Bbjj88h mentioned this pull request Aug 21, 2024
[Snyk] Upgrade semver from 7.5.4 to 7.6.3 Bbjj88h/setup-node#1
Open
@NOUIY NOUIY mentioned this pull request Aug 23, 2024
[Snyk] Upgrade semver from 7.3.8 to 7.6.3 NOUIY/security-wg#56
Closed
@rickybright rickybright mentioned this pull request Aug 29, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 rickybright/juice-shop#6
Open
@NickyMartinez NickyMartinez mentioned this pull request Aug 30, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 NickyMartinez/juice-shop#5
Open
@Mhmonicox Mhmonicox mentioned this pull request Sep 7, 2024
[Snyk] Upgrade: , , semver, typed-rest-client Mhmonicox/actions-setup-cmake#37
Open
@NOUIY NOUIY mentioned this pull request Sep 7, 2024
[Snyk] Upgrade: , , react, react-dom, semver, , , clsx, , , cross-fetch, file-loader, lunr, next, raw-loader, react-syntax-highlighter, url-loader NOUIY/layer0-docs#478
Open
@YoYBaBy YoYBaBy mentioned this pull request Sep 9, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 YoYBaBy/nodejs.org#282
Open
@Exkaleburx Exkaleburx mentioned this pull request Sep 9, 2024
[Snyk] Upgrade: minimatch, semver Exkaleburx/vscode-languageserver-node#14
Open
@NOUIY NOUIY mentioned this pull request Sep 13, 2024
[Snyk] Upgrade: , , semver NOUIY/setup-java#213
Open
@Thompson1985 Thompson1985 mentioned this pull request Sep 13, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.3 Thompson1985/vscode-eslint#3
Open
@snyk-io snyk-io Bot mentioned this pull request Sep 23, 2024
[Snyk] Upgrade: , , semver SherfeyInv/setup-python#1
Open
@m-heyda m-heyda mentioned this pull request Sep 24, 2024
[Snyk] Upgrade semver from 7.5.2 to 7.6.3 m-heyda/hain#35
Open
@marklacasse marklacasse mentioned this pull request Sep 26, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.3 marklacasse/setup-dotnet#1
Open
@phoebeyusnyk phoebeyusnyk mentioned this pull request Sep 29, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 phoebeyusnyk/juice-shop#4
Open
@tahmid198 tahmid198 mentioned this pull request Sep 30, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 tahmid198/juice-shop#4
Open
@AeonArriving AeonArriving mentioned this pull request Sep 30, 2024
[Snyk] Upgrade semver from 7.3.8 to 7.6.3 AeonArriving/audit-ci#2
Open
@chambridge chambridge mentioned this pull request Oct 2, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.3 RedHatInsights/ocp-advisor-frontend#803
Merged
@InfiniteLove2020 InfiniteLove2020 mentioned this pull request Oct 3, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 InfiniteLove2020/nodejs.org#6
Open
@CASABECI CASABECI mentioned this pull request Oct 6, 2024
[Snyk] Upgrade semver from 7.6.0 to 7.6.3 CASABECI/setup-node#1
Open
@ms-bot ms-bot mentioned this pull request Oct 7, 2024
chore(deps): bump 🧳 semver to ^7.6.3 mobsuccess-devops/pmd-github-action#11
Closed
@nerdy-tech-com-gitub nerdy-tech-com-gitub mentioned this pull request Oct 24, 2024
[Snyk] Upgrade semver from 6.3.1 to 7.6.3 nerdy-tech-com-gitub/toolkit#6
Open
@lkeff lkeff mentioned this pull request Oct 26, 2024
[Snyk] Upgrade semver from 7.5.4 to 7.6.3 lkeff/vscode-go#5
Open
@suculent suculent mentioned this pull request Oct 30, 2024
[Snyk] Upgrade semver from 7.5.3 to 7.6.3 suculent/thinx-device-api#484
Merged
@HaLaGu1L HaLaGu1L mentioned this pull request Nov 1, 2024
[Snyk] Upgrade semver from 7.5.2 to 7.6.3 HaLaGu1L/vscode#13
Open
@doperiddle doperiddle mentioned this pull request Nov 10, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 doperiddle/paystring#6
Merged
@nickvadala-snyk nickvadala-snyk mentioned this pull request Nov 11, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 nickvadala-snyk/juice-shop#4
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@wraithgar wraithgar wraithgar approved these changes
@lukekarrys lukekarrys lukekarrys approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@negezor @mbtools @wraithgar @lukekarrys
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.