@travetto/auth-session 6.0.0-rc.2 → 6.0.0-rc.4

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -25,6 +25,7 @@ Within the framework the sessions are stored against any [Data Modeling Support]
25
25
  * [Elasticsearch Model Source](https://github.com/travetto/travetto/tree/main/module/model-elasticsearch#readme "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.")
26
26
  * [File Model Support](https://github.com/travetto/travetto/tree/main/module/model-file#readme "File system backing for the travetto model module.")
27
27
  * [Memory Model Support](https://github.com/travetto/travetto/tree/main/module/model-memory#readme "Memory backing for the travetto model module.")
28
+
28
29
  While the expiry is not necessarily a hard requirement, the implementation without it can be quite messy. To that end, the ability to add [ModelExpirySupport](https://github.com/travetto/travetto/tree/main/module/model/src/types/expiry.ts#L10) to the model provider would be the natural extension point if more expiry support is needed.
29
30
 
30
31
  **Code: Sample usage of Session Service**
@@ -63,4 +64,5 @@ The [SessionService](https://github.com/travetto/travetto/tree/main/module/auth-
63
64
  * load
64
65
  * read/modify
65
66
  * persist
67
+
66
68
  And note, persist is intelligent enough to only update the data store if the expiration date has changed or if the data in the session has been modified.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth-session",
3
- "version": "6.0.0-rc.2",
3
+ "version": "6.0.0-rc.4",
4
4
  "description": "Session provider for the travetto auth module.",
5
5
  "keywords": [
6
6
  "auth",
@@ -25,12 +25,12 @@
25
25
  "directory": "module/auth-session"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/auth": "^6.0.0-rc.2",
28
+ "@travetto/auth": "^6.0.0-rc.4",
29
29
  "@travetto/config": "^6.0.0-rc.2",
30
30
  "@travetto/model": "^6.0.0-rc.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/test": "^6.0.0-rc.2"
33
+ "@travetto/test": "^6.0.0-rc.3"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/test": {