@reventlessdev/reventless-local 3.0.0-alpha.296 → 3.0.0-alpha.297

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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.297 (2026-10-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **local:** a plugin declaring a capability the local platform does not provision is told so ([0f4f504](https://github.com/ReventlessDev/reventless-core/commit/0f4f504e310fb001a760d738767590e91c8c7195))
11
+ ### Features
12
+
13
+ * **local:** the local platform provisions an identity provider over the accounts file ([1a46867](https://github.com/ReventlessDev/reventless-core/commit/1a46867ac391b3b4a2d6973606d782547190dcb8))
14
+
15
+
6
16
  # 3.0.0-alpha.296 (2026-10-22)
7
17
 
8
18
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-local",
3
- "version": "3.0.0-alpha.296",
3
+ "version": "3.0.0-alpha.297",
4
4
  "description": "Local platform for Reventless (in-memory or SQLite backend, for development and testing without AWS)",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -35,18 +35,18 @@
35
35
  "sury": "11.0.0",
36
36
  "ws": "^8.18.0",
37
37
  "@reventlessdev/rescript-effect": "1.0.0-alpha.1",
38
- "@reventlessdev/rescript-graphql-yoga": "1.0.0-alpha.29",
39
38
  "@reventlessdev/rescript-jest": "1.0.0-alpha.13",
40
39
  "@reventlessdev/rescript-mcp-sdk": "1.0.0-alpha.23",
40
+ "@reventlessdev/rescript-graphql-yoga": "1.0.0-alpha.29",
41
41
  "@reventlessdev/rescript-node": "2.0.0-alpha.23",
42
42
  "@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
43
- "@reventlessdev/reventless-core": "3.0.0-alpha.305",
44
- "@reventlessdev/reventless-graphql-server": "1.0.0-alpha.153",
45
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.253",
46
- "@reventlessdev/reventless-postgres": "3.0.0-alpha.169",
47
- "@reventlessdev/reventless-infra": "3.0.0-alpha.202",
43
+ "@reventlessdev/reventless-core": "3.0.0-alpha.306",
44
+ "@reventlessdev/reventless-graphql-server": "1.0.0-alpha.154",
45
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.254",
46
+ "@reventlessdev/reventless-postgres": "3.0.0-alpha.170",
48
47
  "@reventlessdev/reventless-seed": "1.0.0-alpha.36",
49
- "@reventlessdev/reventless-spec": "3.0.0-alpha.174"
48
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.203",
49
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.175"
50
50
  },
51
51
  "devDependencies": {
52
52
  "rescript": "12.3.1",
@@ -0,0 +1,61 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
4
+ import * as Capabilities$Reventless from "@reventlessdev/reventless-spec/src/semantic/Capabilities.res.mjs";
5
+ import * as LocalCapabilities$ReventlessLocal from "../../src/adapter/LocalCapabilities.res.mjs";
6
+ import * as Capability_IdentityProvider_UserStore$ReventlessLocal from "../../src/capability/Capability_IdentityProvider_UserStore.res.mjs";
7
+
8
+ let declared = [
9
+ [
10
+ "Geocoding",
11
+ "GeocodeAddress"
12
+ ],
13
+ [
14
+ "Messaging",
15
+ "SendNotification"
16
+ ],
17
+ [
18
+ "IdentityProvider",
19
+ "CreateAccount"
20
+ ]
21
+ ];
22
+
23
+ function reset() {
24
+ LocalCapabilities$ReventlessLocal.registerMessagingSender("");
25
+ LocalCapabilities$ReventlessLocal.registerIdentityProvider(Capabilities$Reventless.none.identityProvider);
26
+ }
27
+
28
+ globalThis.describe("LocalCapabilities.unmetWarning", () => {
29
+ globalThis.test("a bare platform provisions nothing, and the warning names each need once", () => {
30
+ reset();
31
+ globalThis.expect(LocalCapabilities$ReventlessLocal.provisioned()).toEqual([]);
32
+ let message = Stdlib_Option.getOr(LocalCapabilities$ReventlessLocal.unmetWarning(declared), "");
33
+ globalThis.expect(message.includes("Geocoding (GeocodeAddress)")).toBe(true);
34
+ globalThis.expect(message.includes("Capability_Messaging_Log.make()")).toBe(true);
35
+ globalThis.expect(message.includes("Capability_IdentityProvider_UserStore.make()")).toBe(true);
36
+ });
37
+ globalThis.test("a registered provider leaves the warning", () => {
38
+ reset();
39
+ LocalCapabilities$ReventlessLocal.registerMessagingSender("Shop <shop@example.test>");
40
+ LocalCapabilities$ReventlessLocal.registerIdentityProvider(Capability_IdentityProvider_UserStore$ReventlessLocal.make("/nonexistent/users.yaml", undefined));
41
+ globalThis.expect(LocalCapabilities$ReventlessLocal.provisioned()).toEqual([
42
+ "Messaging",
43
+ "IdentityProvider"
44
+ ]);
45
+ let message = Stdlib_Option.getOr(LocalCapabilities$ReventlessLocal.unmetWarning(declared), "");
46
+ globalThis.expect(message.includes("Messaging")).toBe(false);
47
+ globalThis.expect(message.includes("IdentityProvider")).toBe(false);
48
+ globalThis.expect(message.includes("Geocoding")).toBe(true);
49
+ reset();
50
+ });
51
+ globalThis.test("a plugin declaring nothing gets no warning", () => {
52
+ reset();
53
+ globalThis.expect(LocalCapabilities$ReventlessLocal.unmetWarning([])).toEqual(undefined);
54
+ });
55
+ });
56
+
57
+ export {
58
+ declared,
59
+ reset,
60
+ }
61
+ /* Not a pure module */