@forge/cache 0.11.0-next.1 → 0.11.0

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/out/cache.d.ts CHANGED
@@ -34,12 +34,16 @@ export declare class Cache implements IForgeCache {
34
34
  ttlSeconds: number;
35
35
  }): Promise<number>;
36
36
  delete(key: string): Promise<number>;
37
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
37
38
  scan(pattern: string, opt?: {
38
39
  cursor?: string;
39
40
  count?: number;
40
41
  }): Promise<ScanResult>;
42
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
41
43
  leftPush(key: string, value: string): Promise<number>;
44
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
42
45
  rightPop(key: string): Promise<string | null>;
46
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
43
47
  listLength(key: string): Promise<number>;
44
48
  }
45
49
  export declare function getFetchRmsRuntimeV1(): ((path: string, options?: RequestInit) => Promise<Response>) | undefined;
package/out/tunnel.d.ts CHANGED
@@ -24,12 +24,16 @@ export declare class TunnelCache implements IForgeCache {
24
24
  incrementAndGet(key: string, opt?: {
25
25
  ttlSeconds: number;
26
26
  }): Promise<number>;
27
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
27
28
  leftPush(key: string, value: string): Promise<number>;
29
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
28
30
  rightPop(key: string): Promise<string | null>;
31
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
29
32
  listLength(key: string): Promise<number>;
30
33
  decrementAndGet(key: string, opt?: {
31
34
  ttlSeconds: number;
32
35
  }): Promise<number>;
36
+ /** @deprecated This feature is deprecated and will no longer be supported in the next major version */
33
37
  scan(pattern: string, opt?: {
34
38
  cursor?: string;
35
39
  count?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cache",
3
- "version": "0.11.0-next.1",
3
+ "version": "0.11.0",
4
4
  "description": "Forge Cache methods",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -12,7 +12,8 @@
12
12
  "scripts": {
13
13
  "build": "yarn run clean && yarn run compile",
14
14
  "clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo",
15
- "compile": "tsc -b -v"
15
+ "compile": "tsc -b -v",
16
+ "postbuild": "yarn bolt w forge-scripts preserve-deprecated-tags ../forge-cache"
16
17
  },
17
18
  "devDependencies": {
18
19
  "@types/node": "14.18.63",
@@ -21,7 +22,7 @@
21
22
  "tmp": "^0.2.3"
22
23
  },
23
24
  "dependencies": {
24
- "@forge/api": "^3.7.1-next.0",
25
+ "@forge/api": "^3.7.1",
25
26
  "object-sizeof": "^2.6.4"
26
27
  }
27
28
  }