Skip to content

Commit

Permalink
Release v20.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasPor committed Oct 17, 2024
1 parent 4134239 commit d64caaf
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 132 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 20.0.0

## Breaking Changes

- Nx support starts at 20.0.0
- Version 20 will be the last supported version of this package, as [Nx introduced powerpack](https://nx.dev/blog/introducing-nx-powerpack), which replaces custom runners.

## 19.0.0

## Breaking Changes
Expand Down
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
[![npm package link](https://img.shields.io/npm/v/nx-remotecache-azure)](https://www.npmjs.com/package/nx-remotecache-azure)
[![Sponsored by LastBIM](https://img.shields.io/badge/Sponsored_by-LastBIM-6887DA)](https://lastbim.com)

# nx-remotecache-azure
# The future of `nx-remotecache-*`

Nrwl Nx just introduced us to **Powerpack**. It's the clear successor of the remote cache setup and officially supports custom caching solutions. This will mark the end of the `nx-remotecache-*` packages as custom caching solutions based on the filesystem won't work anymore starting with Nx 21.

Powerpack fills exactly the void that `nx-remotecache-custom` filled. Therefore I'm happy to give this topic back to the creators behind Nx. Thanks for the great ride – we reached over 114,000 weekly downloads on npm as I'm writing this 🥳

Feel free to read the [Introduction to Powerpack](https://nx.dev/blog/evolving-nx#introducing-nx-powerpack) by Jeff yourself. If you have any further questions checkout the pinned GitHub [issue](https://github.com/NiklasPor/nx-remotecache-custom/issues/48).

Cheers, Niklas 👋

## nx-remotecache-azure

A task runner for [@nrwl/nx](https://nx.dev) that uses an Azure Blob Storage as a remote cache. This enables all team members and CI servers to share a single cache. The concept and benefits of [computation caching](https://nx.dev/angular/guides/computation-caching) are explained in the NX documentation.

Expand All @@ -11,6 +21,8 @@ This package was built with [nx-remotecache-custom](https://www.npmjs.com/packag

|  Nx | Remote Cache |
| ----------------- | ---------------- |
|  `>= 21` | `Deprecated` |
|  `>= 20.0.0 < 21` | `>= 20.0.0` |
|  `>= 19.0.0 < 20` | `>= 19.0.0 < 20` |
|  `>= 18.0.0 < 19` | `>= 18.0.0 < 19` |
|  `>= 17.0.0 < 18` | `>= 17.0.0 < 18` |
Expand Down Expand Up @@ -100,7 +112,7 @@ To begin, ensure that the last access time of stored items is monitored. Access

Next, tailor the rules according to your requirements. For example, consider the following rules that will manage a container named `nx-cache`:

- Blobs not accessed for 30 days will be moved to cold storage. If accessed again, they will be returned to hot storage.
- Blobs not accessed for 30 days will be moved to cold storage. If accessed again, they will be returned to hot storage.
- Blobs not accessed at all for 90 days will be automatically deleted.

Configure these rules to strike a balance between cost optimization and access efficiency:
Expand All @@ -125,12 +137,8 @@ Configure these rules to strike a balance between cost optimization and access e
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"nx-cache"
]
"blobTypes": ["blockBlob"],
"prefixMatch": ["nx-cache"]
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-remotecache-azure",
"version": "19.0.0",
"version": "20.0.0",
"description": "Remote caching for @nrwl/nx using Azure Blob Storage",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -32,16 +32,16 @@
},
"homepage": "https://github.com/NiklasPor/nx-remotecache-azure#readme",
"devDependencies": {
"nx": "19.0.0",
"nx": "20.0.0",
"@types/yargs": "^17.0.24",
"typescript": "^5.1.0"
},
"dependencies": {
"@azure/identity": "^4.2.0",
"@azure/storage-blob": "^12.18.0",
"nx-remotecache-custom": "^19.0.0"
"nx-remotecache-custom": "^20.0.0"
},
"peerDependencies": {
"nx": "^19.0.0"
"nx": "^20.0.0"
}
}
Loading

0 comments on commit d64caaf

Please sign in to comment.