@fjall/payload 0.96.0 → 0.99.3

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/dist/.minified CHANGED
@@ -1 +1 @@
1
- 6 files minified at 2026-04-27T00:08:27.824Z
1
+ 6 files minified at 2026-05-22T22:52:04.512Z
@@ -1 +1 @@
1
- import{readFileSync as u}from"node:fs";let c=null,i=null;function f(){return c!==null||(c=u("/var/task/.next/BUILD_ID","utf8").trim()),c}function m(t,e){return`${t}${e==="/"?"/index":e}.cache`}async function w(t,e){try{const n=process.env.CACHE_BUCKET_NAME,a=process.env.AWS_LAMBDA_FUNCTION_NAME;if(!n||!a)return;const r=f(),o=m(r,t);if(!i){const{S3Client:d}=await import("@aws-sdk/client-s3");i=new d({})}const{DeleteObjectCommand:l}=await import("@aws-sdk/client-s3"),s=new l({Bucket:n,Key:o});await i.send(s),e?.info(`[fjall] Invalidated S3 cache: ${o}`)}catch(n){const a=n instanceof Error?n.message:"Unknown error";e?.warn?.(`[fjall] S3 cache invalidation failed for ${t}: ${a}`)}}export{w as invalidateS3Cache};
1
+ import{readFileSync as u}from"node:fs";let a=null,o=null;function m(){return a!==null||(a=u("/var/task/.next/BUILD_ID","utf8").trim()),a}function f(t,e){return`${t}${e==="/"?"/index":e}.cache`}async function w(t,e){try{const n=process.env.CACHE_BUCKET_NAME,c=process.env.AWS_LAMBDA_FUNCTION_NAME;if(!n||!c)return;const i=m(),r=f(i,t);if(!o){const{S3Client:d}=await import("@aws-sdk/client-s3");o=new d({})}const{DeleteObjectCommand:s}=await import("@aws-sdk/client-s3"),l=new s({Bucket:n,Key:r});await o.send(l),e?.info(`[fjall] Invalidated S3 cache: ${r}`)}catch(n){const{maskSensitiveOutput:c}=await import("@fjall/util/securityHelpers"),i=c(n instanceof Error?n.message:"Unknown error");e?.warn?.(`[fjall] S3 cache invalidation failed for ${t}: ${i}`)}}export{w as invalidateS3Cache};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/payload",
3
- "version": "0.96.0",
3
+ "version": "0.99.3",
4
4
  "description": "Fjall AWS adapters and utilities for Payload CMS",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -47,14 +47,17 @@
47
47
  "optional": true
48
48
  }
49
49
  },
50
+ "dependencies": {
51
+ "@fjall/util": "^0.99.3"
52
+ },
50
53
  "devDependencies": {
51
- "@aws-sdk/client-s3": "^3.997.0",
52
- "@payloadcms/db-postgres": "^3.73.0",
53
- "@payloadcms/storage-s3": "^3.73.0",
54
- "@types/node": "^22.0.0",
55
- "payload": "^3.73.0",
56
- "typescript": "^5.8.2",
57
- "vitest": "^4.0.0"
54
+ "@aws-sdk/client-s3": "^3.1038.0",
55
+ "@payloadcms/db-postgres": "^3.84.1",
56
+ "@payloadcms/storage-s3": "^3.84.1",
57
+ "@types/node": "^25.6.0",
58
+ "payload": "^3.84.1",
59
+ "typescript": "^6.0.3",
60
+ "vitest": "^4.1.5"
58
61
  },
59
- "gitHead": "bfbd3625ab029ba77a6571630e0edb85f9d53380"
62
+ "gitHead": "e50d25185d5eab618e2a90622466296fa0cbffe8"
60
63
  }