Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.13.1
Choose a base ref
...
head repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.13.2
Choose a head ref
  • 7 commits
  • 6 files changed
  • 4 contributors

Commits on Aug 2, 2022

  1. update clock-mock

    isaacs committed Aug 2, 2022
    Copy the full SHA
    1a94972 View commit details
  2. Copy the full SHA
    19bbe0c View commit details
  3. Remove DOM lib reference in TypeScript types

    PR-URL: #247
    Credit: @valeriangalliat
    Close: #247
    Reviewed-by: @isaacs
    valeriangalliat authored and isaacs committed Aug 2, 2022
    Copy the full SHA
    749c94f View commit details
  4. note about why ac test is js

    isaacs committed Aug 2, 2022
    Copy the full SHA
    8fcaa85 View commit details
  5. feat: adding sideEffects in package.json

    PR-URL: #246
    Credit: @nil1511
    Close: #246
    Reviewed-by: @isaacs
    nil1511 authored and isaacs committed Aug 2, 2022
    Copy the full SHA
    6f017ba View commit details
  6. chore: remove unused webpack.config.js

    PR-URL: #245
    Credit: @JounQin
    Close: #245
    Reviewed-by: @isaacs
    JounQin authored and isaacs committed Aug 2, 2022
    Copy the full SHA
    ec809af View commit details
  7. 7.13.2

    isaacs committed Aug 2, 2022
    Copy the full SHA
    661c8b7 View commit details
Showing with 15 additions and 21 deletions.
  1. +0 −2 index.d.ts
  2. +9 −9 package-lock.json
  3. +3 −2 package.json
  4. +2 −0 test/abort-controller.js
  5. +1 −1 test/fetch.ts
  6. +0 −7 webpack.config.js
2 changes: 0 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Type definitions for lru-cache 7.10.0
// Project: https://github.com/isaacs/node-lru-cache
// Based initially on @types/lru-cache
// https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -32,7 +31,6 @@
// Changes by Isaac Z. Schlueter released under the terms found in the
// LICENSE file within this project.

/// <reference lib="DOM" />
//tslint:disable:member-access
declare class LRUCache<K, V> implements Iterable<[K, V]> {
constructor(options: LRUCache.Options<K, V>)
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "lru-cache",
"description": "A cache object that deletes the least-recently-used items.",
"version": "7.13.1",
"version": "7.13.2",
"author": "Isaac Z. Schlueter <i@izs.me>",
"keywords": [
"mru",
"lru",
"cache"
],
"sideEffects": false,
"scripts": {
"build": "",
"size": "size-limit",
@@ -26,7 +27,7 @@
"@types/tap": "^15.0.6",
"benchmark": "^2.1.4",
"c8": "^7.11.2",
"clock-mock": "^1.0.4",
"clock-mock": "^1.0.6",
"eslint-config-prettier": "^8.5.0",
"prettier": "^2.6.2",
"size-limit": "^7.0.8",
2 changes: 2 additions & 0 deletions test/abort-controller.js
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@
// pull it in as a dep or something. that would be the
// javascripty thing to do, right? but it would mean that
// this is no longer a zero-deps module, so meh. it's fine.
// This is a JS test rather than TS, because we have to do some
// improper things with types in order to make the polyfill load.
global.AbortController = null
global.AbortSignal = null

2 changes: 1 addition & 1 deletion test/fetch.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ const fn: Fetcher<any, any> = async (_, v) =>
setImmediate(() => res(v === undefined ? 0 : v + 1))
)

const Clock = require('clock-mock')
import Clock from 'clock-mock'
const clock = new Clock()
t.teardown(clock.enter())
clock.advance(1)
7 changes: 0 additions & 7 deletions webpack.config.js

This file was deleted.