@lage-run/cache
Advanced tools
Comparing version 1.1.7 to 1.2.0
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Thu, 23 May 2024 18:14:47 GMT", | ||
"date": "Mon, 10 Jun 2024 23:50:24 GMT", | ||
"version": "1.2.0", | ||
"tag": "@lage-run/cache_v1.2.0", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"author": "brunoru@microsoft.com", | ||
"package": "@lage-run/cache", | ||
"commit": "0894d97ebfedc339b77161c40fa8643d93e4486d", | ||
"comment": "Add support for DefaultAzureCredentials when storage endpoint is passed in." | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 23 May 2024 18:15:05 GMT", | ||
"version": "1.1.7", | ||
@@ -8,0 +23,0 @@ "tag": "@lage-run/cache_v1.1.7", |
# Change Log - @lage-run/cache | ||
This log was last generated on Thu, 23 May 2024 18:14:47 GMT and should not be manually modified. | ||
This log was last generated on Mon, 10 Jun 2024 23:50:24 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.2.0 | ||
Mon, 10 Jun 2024 23:50:24 GMT | ||
### Minor changes | ||
- Add support for DefaultAzureCredentials when storage endpoint is passed in. (brunoru@microsoft.com) | ||
## 1.1.7 | ||
Thu, 23 May 2024 18:14:47 GMT | ||
Thu, 23 May 2024 18:15:05 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
/** | ||
* Backfill wrappers: some functions that uses the `backfill` library that doesn't require them to be inside a class | ||
*/ | ||
import { CacheStorageConfig } from "backfill-config"; | ||
import type { Logger as BackfillLogger } from "backfill-logger"; | ||
@@ -8,3 +9,3 @@ import type { CacheOptions } from "./types/CacheOptions.js"; | ||
export declare function createBackfillCacheConfig(cwd: string, cacheOptions: Partial<CacheOptions> | undefined, backfillLogger: BackfillLogger): { | ||
cacheStorageConfig: import("backfill-config").CacheStorageConfig; | ||
cacheStorageConfig: CacheStorageConfig; | ||
clearOutput: boolean; | ||
@@ -11,0 +12,0 @@ internalCacheFolder: string; |
@@ -24,2 +24,3 @@ /** | ||
const _backfilllogger = require("backfill-logger"); | ||
const _CredentialCache = require("./CredentialCache.js"); | ||
function _getRequireWildcardCache(nodeInterop) { | ||
@@ -83,3 +84,3 @@ if (typeof WeakMap !== "function") return null; | ||
const envConfig = (0, _backfillconfig.getEnvConfig)(backfillLogger); | ||
return { | ||
const mergedConfig = { | ||
...(0, _backfillconfig.createDefaultConfig)(cwd), | ||
@@ -89,2 +90,11 @@ ...cacheOptions, | ||
}; | ||
if (mergedConfig.cacheStorageConfig.provider === "azure-blob") { | ||
if (mergedConfig.cacheStorageConfig.options.connectionString && !isTokenConnectionString(mergedConfig.cacheStorageConfig.options.connectionString)) { | ||
mergedConfig.cacheStorageConfig.options.credential = _CredentialCache.CredentialCache.getInstance(); | ||
} | ||
} | ||
return mergedConfig; | ||
} | ||
function isTokenConnectionString(connectionString) { | ||
return connectionString.includes("SharedAccessSignature"); | ||
} |
{ | ||
"name": "@lage-run/cache", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"description": "Cache for Lage", | ||
@@ -20,2 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@azure/identity": "^4.0.1", | ||
"@lage-run/target-graph": "^0.8.9", | ||
@@ -22,0 +23,0 @@ "@lage-run/logger": "^1.3.0", |
@@ -35,3 +35,3 @@ # @lage-run/cache | ||
options: { | ||
connectionString: "asdfasdfasdfafds"; | ||
connectionString: "asdfasdfasdfafds"; // Providing an un-authenitcated Blob Service Endpoint will force use of Azure DefualtAzureCredentials | ||
container: "container"; | ||
@@ -38,0 +38,0 @@ maxSize?: 150; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63517
24
1656
7
+ Added@azure/identity@^4.0.1
+ Added@azure/identity@4.5.0(transitive)
+ Added@azure/msal-browser@3.28.0(transitive)
+ Added@azure/msal-common@14.16.0(transitive)
+ Added@azure/msal-node@2.16.2(transitive)
+ Addedbuffer-equal-constant-time@1.0.1(transitive)
+ Addeddefine-lazy-prop@2.0.0(transitive)
+ Addedecdsa-sig-formatter@1.0.11(transitive)
+ Addedis-docker@2.2.1(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addedjsonwebtoken@9.0.2(transitive)
+ Addedjwa@1.4.12.0.0(transitive)
+ Addedjws@3.2.24.0.0(transitive)
+ Addedlodash.includes@4.3.0(transitive)
+ Addedlodash.isboolean@3.0.3(transitive)
+ Addedlodash.isinteger@4.0.4(transitive)
+ Addedlodash.isnumber@3.0.3(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedlodash.isstring@4.0.1(transitive)
+ Addedlodash.once@4.1.1(transitive)
+ Addedopen@8.4.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedstoppable@1.1.0(transitive)