🌐 AI搜索 & 代理 主页
Skip to content

Commit 6f0cb0c

Browse files
committed
Merge branch 'main' into salmanmkc/node24
2 parents 944ede4 + 227b1ce commit 6f0cb0c

File tree

5 files changed

+35
-24
lines changed

5 files changed

+35
-24
lines changed

.github/workflows/cache-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ jobs:
3939
- name: Install root npm packages
4040
run: npm ci
4141

42+
# We need to install only runtime dependencies (omit dev dependencies) to verify that what we're shipping is all
43+
# that is needed
4244
- name: Compile cache package
4345
run: |
44-
npm ci
46+
npm ci --omit=dev
4547
npm run tsc
4648
working-directory: packages/cache
4749

packages/cache/RELEASES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @actions/cache Releases
22

3+
### 4.0.5
4+
5+
- Reintroduce @protobuf-ts/runtime-rpc as a runtime dependency [#2113](https://github.com/actions/toolkit/pull/2113)
6+
7+
### 4.0.4
8+
9+
⚠️ Faulty patch release. Upgrade to 4.0.5 instead.
10+
11+
- Optimized cache dependencies by moving `@protobuf-ts/plugin` to dev dependencies [#2106](https://github.com/actions/toolkit/pull/2106)
12+
- Improved cache service availability determination for different cache service versions (v1 and v2) [#2100](https://github.com/actions/toolkit/pull/2100)
13+
- Enhanced server error handling: 5xx HTTP errors are now logged as errors instead of warnings [#2099](https://github.com/actions/toolkit/pull/2099)
14+
- Fixed cache hit logging to properly distinguish between exact key matches and restore key matches [#2101](https://github.com/actions/toolkit/pull/2101)
15+
316
### 4.0.3
417

518
- Added masking for Shared Access Signature (SAS) cache entry URLs [#1982](https://github.com/actions/toolkit/pull/1982)

packages/cache/__tests__/saveCache.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ test('save with server error should fail', async () => {
225225
const filePath = 'node_modules'
226226
const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43'
227227
const logErrorMock = jest.spyOn(core, 'error')
228-
// Removing the unused variable logWarningMock
229228

230229
// Mock cache service version to V2
231230
const getCacheServiceVersionMock = jest
@@ -271,7 +270,6 @@ test('save with server error should fail', async () => {
271270
expect(createCacheEntryMock).toHaveBeenCalledTimes(1)
272271
const archiveFolder = '/foo/bar'
273272
const cachePaths = [path.resolve(filePath)]
274-
// Removing the unused variable archiveFile
275273
expect(createTarMock).toHaveBeenCalledTimes(1)
276274
expect(createTarMock).toHaveBeenCalledWith(
277275
archiveFolder,

packages/cache/package-lock.json

Lines changed: 17 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cache/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@actions/cache",
3-
"version": "4.0.3",
3+
"version": "4.0.5",
44
"preview": true,
55
"description": "Actions cache lib",
66
"engines": {
@@ -43,6 +43,7 @@
4343
"@actions/core": "^1.11.1",
4444
"@actions/exec": "^1.0.1",
4545
"@actions/glob": "^0.1.0",
46+
"@protobuf-ts/runtime-rpc": "^2.11.1",
4647
"@actions/http-client": "^2.1.1",
4748
"@actions/io": "^1.0.1",
4849
"@azure/abort-controller": "^1.1.0",

0 commit comments

Comments
 (0)