@canopy-io/nestjs 0.9.4 → 0.9.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @canopy-io/nestjs
2
2
 
3
+ ## 0.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 907bfbb: `LocalAuthorizer` revalidates a subject's grants instead of re-reading them. A refresh sends the `ETag` the held grants came with as `If-None-Match`, and Canopy answers an unchanged subject with `304` after reading only its access versions, so the grants stay in memory and only their expiry moves. Changed grants are read in full, as before. The cache time and what it promises are unchanged: a change still takes effect within `ttlMs`, and a grant still starts or ends at its window's edge. `snapshot()` adds `grantNotModified`. The generated types follow Canopy's current spec, which adds the grants `304` and two branding operations (`ApiBrandingController_uploadImage`, `ApiBrandingController_previewLink`), not wrapped yet. No caller changes are needed.
8
+ - Updated dependencies [907bfbb]
9
+ - @canopy-io/node@0.26.0
10
+
3
11
  ## 0.9.4
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -320,7 +320,7 @@ So two things are held, split by what they depend on:
320
320
 
321
321
  and a check is a walk up from the node in question looking for a grant root. An `app_wide` check is simpler still: the permission appearing at all is the answer, and no hierarchy is needed.
322
322
 
323
- **Both are held for at most 60 seconds**, which is therefore the delay between an access change and it taking effect. `authorizationTtlMs` changes it, up to five minutes (`300_000`); a longer value throws at startup. The hierarchy is revalidated rather than re-read — a conditional request for its first page that normally answers `304`, so nothing transfers. Both reads are paged and read in full, 100 rows to a page; when the hierarchy has changed, every page of it is read again (see [`LocalAuthorizer`](../node#authorizing-without-a-call-per-request) for how a rebuild over several pages is kept consistent).
323
+ **Both are held for at most 60 seconds**, which is therefore the delay between an access change and it taking effect. `authorizationTtlMs` changes it, up to five minutes (`300_000`); a longer value throws at startup. Both are revalidated rather than re-read: a conditional request for the first page that normally answers `304`, so nothing transfers. Both reads are paged and read in full, 100 rows to a page; when the grants or the hierarchy have changed, every page of them is read again (see [`LocalAuthorizer`](../node#authorizing-without-a-call-per-request) for how a rebuild over several pages is kept consistent).
324
324
 
325
325
  ```ts
326
326
  CanopyModule.forRoot({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopy-io/nestjs",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Official NestJS integration for Canopy \u2014 hierarchical identity and access management.",
5
5
  "license": "MIT",
6
6
  "author": "Canopy Identity Inc.",
@@ -62,7 +62,7 @@
62
62
  "test:watch": "vitest"
63
63
  },
64
64
  "dependencies": {
65
- "@canopy-io/node": "^0.25.0"
65
+ "@canopy-io/node": "^0.26.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@nestjs/common": "^10.0.0 || ^11.0.0",