turborepo-remote-cache 2.2.7 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,15 +5,13 @@
5
5
 
6
6
  ![remote_cache_1](https://user-images.githubusercontent.com/1620916/216358421-36a63b0e-d1f6-484f-a4ca-6a7119cc0816.jpg)
7
7
 
8
- [![GitHub package.json version](https://img.shields.io/github/package-json/v/ducktors/turborepo-remote-cache)](https://github.com/ducktors/turborepo-remote-cache/releases) ![node:20.13.1](https://img.shields.io/badge/node-20.13.1-lightgreen) ![pnpm@9.14.2](https://img.shields.io/badge/pnpm-9.14.2-yellow) [![CI](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/ci.yml) [![Test](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/test.yaml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/test.yaml) [![Release](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/release.yml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/release.yml) [![Docker](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/docker.yml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/docker.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/bbb26ca5247dee70dde0/maintainability)](https://codeclimate.com/github/ducktors/turborepo-remote-cache/maintainability) [![Coverage Status](https://coveralls.io/repos/github/ducktors/turborepo-remote-cache/badge.svg?branch=main)](https://coveralls.io/github/ducktors/turborepo-remote-cache?branch=main) [![Docker Pulls](https://img.shields.io/docker/pulls/ducktors/turborepo-remote-cache?logo=docker)](https://hub.docker.com/r/ducktors/turborepo-remote-cache) [![npm](https://img.shields.io/npm/dt/turborepo-remote-cache)](https://www.npmjs.com/package/turborepo-remote-cache) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ducktors/turborepo-remote-cache/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ducktors/turborepo-remote-cache) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
9
- [![All Contributors](https://img.shields.io/badge/all_contributors-30-orange.svg?style=flat-square)](#contributors-)
8
+ [![GitHub package.json version](https://img.shields.io/github/package-json/v/ducktors/turborepo-remote-cache)](https://github.com/ducktors/turborepo-remote-cache/releases) ![node:20.18.1](https://img.shields.io/badge/node-20.18.1-lightgreen) ![pnpm@9.14.2](https://img.shields.io/badge/pnpm-9.14.2-yellow) [![CI](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/ci.yml) [![Test](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/test.yaml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/test.yaml) [![Release](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/release.yml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/release.yml) [![Docker](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/docker.yml/badge.svg)](https://github.com/ducktors/turborepo-remote-cache/actions/workflows/docker.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/bbb26ca5247dee70dde0/maintainability)](https://codeclimate.com/github/ducktors/turborepo-remote-cache/maintainability) [![Coverage Status](https://coveralls.io/repos/github/ducktors/turborepo-remote-cache/badge.svg?branch=main)](https://coveralls.io/github/ducktors/turborepo-remote-cache?branch=main) [![Docker Pulls](https://img.shields.io/docker/pulls/ducktors/turborepo-remote-cache?logo=docker)](https://hub.docker.com/r/ducktors/turborepo-remote-cache) [![npm](https://img.shields.io/npm/dt/turborepo-remote-cache)](https://www.npmjs.com/package/turborepo-remote-cache) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ducktors/turborepo-remote-cache/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ducktors/turborepo-remote-cache) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
9
+ [![All Contributors](https://img.shields.io/badge/all_contributors-31-orange.svg?style=flat-square)](#contributors-)
10
10
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
11
11
 
12
12
  This project is an open-source implementation of the [Turborepo custom remote cache server](https://turbo.build/repo/docs/core-concepts/remote-caching#self-hosting). If Vercel's official cache server isn't a viable option, this server is an alternative for self-hosted deployments.
13
13
  It supports several storage providers and deploys environments. Moreover, the project provides **"deploy to "** buttons for one-click deployments whenever possible.
14
14
 
15
- > [Legacy fox1t/turborepo-remote-cache image will be redirected to ducktors/turborepo-remote-cache.](https://github.com/ducktors/turborepo-remote-cache/issues/157)
16
-
17
15
  ## Notable projects that use TRRC
18
16
 
19
17
  - [GitHub Actions](https://github.com/trappar/turborepo-remote-cache-gh-action)
@@ -109,6 +107,7 @@ fix: fix a bug ---> 1.0.x
109
107
  <tr>
110
108
  <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/luca-taddeo/"><img src="https://avatars.githubusercontent.com/u/23079973?v=4?s=100" width="100px;" alt="Luca Taddeo"/><br /><sub><b>Luca Taddeo</b></sub></a><br /><a href="#maintenance-lucalas" title="Maintenance">🚧</a></td>
111
109
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/thyming"><img src="https://avatars.githubusercontent.com/u/2217705?v=4?s=100" width="100px;" alt="Luke Rohde"/><br /><sub><b>Luke Rohde</b></sub></a><br /><a href="https://github.com/ducktors/turborepo-remote-cache/commits?author=thyming" title="Code">💻</a></td>
110
+ <td align="center" valign="top" width="14.28%"><a href="http://hsellik.github.io"><img src="https://avatars.githubusercontent.com/u/16798824?v=4?s=100" width="100px;" alt="Hendrig Sellik"/><br /><sub><b>Hendrig Sellik</b></sub></a><br /><a href="https://github.com/ducktors/turborepo-remote-cache/commits?author=hsellik" title="Documentation">📖</a></td>
112
111
  </tr>
113
112
  </tbody>
114
113
  </table>
@@ -1,11 +1,20 @@
1
+ import { readFileSync } from 'fs';
2
+ import { dirname, join } from 'path';
3
+ import { fileURLToPath } from 'url';
1
4
  import { statusRouteSchema } from './status-schema.js';
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+ const packageJson = JSON.parse(readFileSync(join(__dirname, '../../../../package.json'), 'utf8'));
2
8
  export const getStatus = {
3
9
  method: 'GET',
4
10
  url: '/artifacts/status',
5
11
  schema: statusRouteSchema,
6
12
  logLevel: 'error',
7
13
  async handler(req, reply) {
8
- reply.send({ status: 'enabled' });
14
+ reply.send({
15
+ status: 'enabled',
16
+ version: packageJson.version,
17
+ });
9
18
  },
10
19
  };
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXN0YXR1cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wbHVnaW5zL3JlbW90ZS1jYWNoZS9yb3V0ZXMvZ2V0LXN0YXR1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQTtBQUV0RCxNQUFNLENBQUMsTUFBTSxTQUFTLEdBUWxCO0lBQ0YsTUFBTSxFQUFFLEtBQUs7SUFDYixHQUFHLEVBQUUsbUJBQW1CO0lBQ3hCLE1BQU0sRUFBRSxpQkFBaUI7SUFDekIsUUFBUSxFQUFFLE9BQU87SUFDakIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsS0FBSztRQUN0QixLQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxDQUFDLENBQU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1QsTUFBTSxFQUFFLFNBQVM7WUFDakIsT0FBTyxFQUFFLFdBQVcsQ0FBQyxPQUFPO1NBQzdCLENBQUMsQ0FBQTtJQUNKLENBQUM7Q0FDRixDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turborepo-remote-cache",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "description": "Turborepo remote cache server",
5
5
  "main": "./dist/app.js",
6
6
  "type": "module",
@@ -64,26 +64,26 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@biomejs/biome": "1.2.2",
67
- "@commitlint/cli": "^19.3.0",
68
- "@commitlint/config-conventional": "^19.2.2",
69
- "@commitlint/prompt": "^19.3.1",
67
+ "@commitlint/cli": "^19.6.0",
68
+ "@commitlint/config-conventional": "^19.6.0",
69
+ "@commitlint/prompt": "^19.6.0",
70
70
  "@ducktors/tsconfig": "^1.0.0",
71
71
  "@semantic-release/changelog": "^6.0.3",
72
72
  "@semantic-release/commit-analyzer": "^13.0.0",
73
73
  "@semantic-release/git": "^10.0.1",
74
- "@semantic-release/github": "^10.0.6",
74
+ "@semantic-release/github": "^10.3.5",
75
75
  "@semantic-release/npm": "^12.0.1",
76
- "@semantic-release/release-notes-generator": "^14.0.0",
76
+ "@semantic-release/release-notes-generator": "^14.0.1",
77
77
  "@types/node": "^20.6.3",
78
78
  "c8": "^9.0.0",
79
- "commitizen": "^4.3.0",
79
+ "commitizen": "^4.3.1",
80
80
  "commitlint-config-cz": "^0.13.3",
81
81
  "commitlint-plugin-function-rules": "^2.0.2",
82
82
  "cz-conventional-changelog": "^3.3.0",
83
83
  "fastify-tsconfig": "^2.0.0",
84
84
  "husky": "^8.0.3",
85
85
  "npm-run-all": "^4.1.5",
86
- "rimraf": "^4.1.2",
86
+ "rimraf": "^4.4.1",
87
87
  "s3rver": "^3.7.1",
88
88
  "semantic-release": "^22.0.12",
89
89
  "tsx": "^4.7.0",