Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.1.1] — 2026-06-14

### Fixed

- Fixed the `FetchRateLimiter` queue item typing under strict TypeScript checks by aligning queued task and resolver storage with the bucket queue's `unknown` value boundary.
- Restored the `lint` and `lint:fix` scripts to direct `biome` invocations, since npm scripts already resolve local binaries from `node_modules/.bin`.
- Added rate limiter regression coverage for rejected queued tasks continuing to drain and for corrupted pending-queue defensive cleanup, raising the suite to 601 passing tests and overall statement coverage to 97.13%.

### Security

- Resolved development dependency audit findings by updating the lockfile to use `tmp@0.2.7`, `tsx@4.22.4`, and `esbuild@0.28.1`.
- Added an `esbuild` override so transitive dev tooling no longer resolves the vulnerable `0.27.x` line.

## [3.1.0] — 2026-05-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="license"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-first-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a>
<img src="https://img.shields.io/badge/Node.js-%E2%89%A5_20-339933?logo=nodedotjs&logoColor=white" alt="Node.js >= 20">
<img src="https://img.shields.io/badge/tests-598_passing-brightgreen" alt="tests">
<img src="https://img.shields.io/badge/tests-601_passing-brightgreen" alt="tests">
<a href="https://coveralls.io/github/flyingsquirrel0419/layercache?branch=main"><img src="https://coveralls.io/repos/github/flyingsquirrel0419/layercache/badge.svg?branch=main&t=20260517" alt="Coveralls"></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs-web/content/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Layercache provides a command-line interface for inspecting and managing Redis-b

### Global Install

<PackageManagerTabs command="install -g layercache" />
<PackageManagerTabs command="install -g layercache@latest" />

### Using npx

Expand Down
2 changes: 1 addition & 1 deletion docs-web/content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PackageManagerTabs } from "@rspress/core/theme-original";

## Installation

<PackageManagerTabs command="install layercache" />
<PackageManagerTabs command="install layercache@latest" />

## Basic Setup

Expand Down
12 changes: 6 additions & 6 deletions docs-web/content/docs/integrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Express middleware caches JSON responses from your route handlers.
### Installation

```bash
npm install layercache
npm install layercache@latest
```

### Basic Usage
Expand Down Expand Up @@ -80,7 +80,7 @@ The Fastify plugin decorates your app with a cache instance and provides an opti
### Installation

```bash
npm install layercache
npm install layercache@latest
```

### Basic Usage
Expand Down Expand Up @@ -125,7 +125,7 @@ The Hono middleware caches JSON responses with minimal overhead.
### Installation

```bash
npm install layercache
npm install layercache@latest
```

### Basic Usage
Expand Down Expand Up @@ -259,7 +259,7 @@ The tRPC middleware caches procedure results based on input arguments.
### Installation

```bash
npm install layercache
npm install layercache@latest
```

### Basic Usage
Expand Down Expand Up @@ -308,7 +308,7 @@ Cache resolver results with the GraphQL wrapper.
### Installation

```bash
npm install layercache
npm install layercache@latest
```

### Basic Usage
Expand Down Expand Up @@ -365,7 +365,7 @@ Add distributed tracing to cache operations with OpenTelemetry integration.
### Installation

```bash
npm install layercache @opentelemetry/api
npm install layercache@latest @opentelemetry/api
```

### Basic Setup
Expand Down
2 changes: 1 addition & 1 deletion docs-web/content/docs/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ const value = await cache.get(key, fetcher)

### Phase 1: Setup

- [ ] Install Layercache: `npm install layercache`
- [ ] Install Layercache: `npm install layercache@latest`
- [ ] Create CacheStack with equivalent layers
- [ ] Keep TTL values in milliseconds
- [ ] Configure distributed features (if needed)
Expand Down
29 changes: 9 additions & 20 deletions docs-web/package-lock.json

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

2 changes: 1 addition & 1 deletion docs-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "3.1.0",
"version": "3.1.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion docs/i18n/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="../../LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="license"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-first-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a>
<img src="https://img.shields.io/badge/Node.js-%E2%89%A5_20-339933?logo=nodedotjs&logoColor=white" alt="Node.js >= 20">
<img src="https://img.shields.io/badge/tests-598_passing-brightgreen" alt="tests">
<img src="https://img.shields.io/badge/tests-601_passing-brightgreen" alt="tests">
<a href="https://coveralls.io/github/flyingsquirrel0419/layercache?branch=main"><img src="https://coveralls.io/repos/github/flyingsquirrel0419/layercache/badge.svg?branch=main&t=20260517" alt="Coveralls"></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/i18n/README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="../../LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="license"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-first-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a>
<img src="https://img.shields.io/badge/Node.js-%E2%89%A5_20-339933?logo=nodedotjs&logoColor=white" alt="Node.js >= 20">
<img src="https://img.shields.io/badge/tests-598_passing-brightgreen" alt="tests">
<img src="https://img.shields.io/badge/tests-601_passing-brightgreen" alt="tests">
<a href="https://coveralls.io/github/flyingsquirrel0419/layercache?branch=main"><img src="https://coveralls.io/repos/github/flyingsquirrel0419/layercache/badge.svg?branch=main&t=20260517" alt="Coveralls"></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/i18n/README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="../../LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="license"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-first-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a>
<img src="https://img.shields.io/badge/Node.js-%E2%89%A5_20-339933?logo=nodedotjs&logoColor=white" alt="Node.js >= 20">
<img src="https://img.shields.io/badge/tests-598_passing-brightgreen" alt="tests">
<img src="https://img.shields.io/badge/tests-601_passing-brightgreen" alt="tests">
<a href="https://coveralls.io/github/flyingsquirrel0419/layercache?branch=main"><img src="https://coveralls.io/repos/github/flyingsquirrel0419/layercache/badge.svg?branch=main&t=20260517" alt="Coveralls"></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/i18n/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="../../LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="license"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-first-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a>
<img src="https://img.shields.io/badge/Node.js-%E2%89%A5_20-339933?logo=nodedotjs&logoColor=white" alt="Node.js >= 20">
<img src="https://img.shields.io/badge/tests-598_passing-brightgreen" alt="tests">
<img src="https://img.shields.io/badge/tests-601_passing-brightgreen" alt="tests">
<a href="https://coveralls.io/github/flyingsquirrel0419/layercache?branch=main"><img src="https://coveralls.io/repos/github/flyingsquirrel0419/layercache/badge.svg?branch=main&t=20260517" alt="Coveralls"></a>
</p>

Expand Down
Loading
Loading