@reventlessdev/reventless-infra 3.0.0-alpha.183 → 3.0.0-alpha.185

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,29 @@
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.185 (2026-10-01)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/reventless-infra
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.184 (2026-10-01)
15
+
16
+ * feat!: roles a plugin declares, groups a platform provides ([43daace](https://github.com/ReventlessDev/reventless-core/commit/43daace6ca588afe22562d079af1e6f1da81942e))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * AllowGroups and AdminGroup are removed — write AllowRoles over
21
+ the plugin's Roles.t, and use Role.admin / Platform.adminGroup(). Spec module
22
+ types declare `type role`, and their rules are Authorization.rule<role>; a spec
23
+ that writes its own rule declares `type role` (Reventless.Role.name for a rule
24
+ over Authorization.permission). Role.name is a private string: make one from a
25
+ string with Role.make.
26
+
27
+
28
+
6
29
  # 3.0.0-alpha.183 (2026-10-01)
7
30
 
8
31
  **Note:** Version bump only for package @reventlessdev/reventless-infra
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-infra",
3
- "version": "3.0.0-alpha.183",
3
+ "version": "3.0.0-alpha.185",
4
4
  "description": "Infrastructure types for Reventless framework",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -16,10 +16,10 @@
16
16
  "sury": "11.0.0",
17
17
  "sury-ppx": "11.0.0",
18
18
  "uuid": "^13.0.0",
19
+ "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.23",
20
+ "@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
19
21
  "@reventlessdev/rescript-effect": "0.1.0-alpha.34",
20
- "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
21
- "@reventlessdev/reventless-spec": "3.0.0-alpha.155",
22
- "@reventlessdev/rescript-uuid": "2.0.0-alpha.1"
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.157"
23
23
  },
24
24
  "devDependencies": {
25
25
  "rescript": "12.3.1",
@@ -145,7 +145,8 @@ module NoDelegate = {
145
145
 
146
146
  let commandSchema = S.unit
147
147
  let moduleUrl: string = %raw(`import.meta.url`)
148
- let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
148
+ type role = Reventless.Role.name
149
+ let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
149
150
  type lifecycleState = unit
150
151
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
151
152
  let traits: array<Reventless.Trait.t> = []