@reventlessdev/reventless-infra 3.0.0-alpha.182 → 3.0.0-alpha.184

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.184 (2026-10-01)
7
+
8
+ * feat!: roles a plugin declares, groups a platform provides ([43daace](https://github.com/ReventlessDev/reventless-core/commit/43daace6ca588afe22562d079af1e6f1da81942e))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ * AllowGroups and AdminGroup are removed — write AllowRoles over
13
+ the plugin's Roles.t, and use Role.admin / Platform.adminGroup(). Spec module
14
+ types declare `type role`, and their rules are Authorization.rule<role>; a spec
15
+ that writes its own rule declares `type role` (Reventless.Role.name for a rule
16
+ over Authorization.permission). Role.name is a private string: make one from a
17
+ string with Role.make.
18
+
19
+
20
+
21
+ # 3.0.0-alpha.183 (2026-10-01)
22
+
23
+ **Note:** Version bump only for package @reventlessdev/reventless-infra
24
+
25
+
26
+
27
+
28
+
6
29
  # 3.0.0-alpha.182 (2026-09-29)
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.182",
3
+ "version": "3.0.0-alpha.184",
4
4
  "description": "Infrastructure types for Reventless framework",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -17,9 +17,9 @@
17
17
  "sury-ppx": "11.0.0",
18
18
  "uuid": "^13.0.0",
19
19
  "@reventlessdev/rescript-effect": "0.1.0-alpha.34",
20
- "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
21
20
  "@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
22
- "@reventlessdev/reventless-spec": "3.0.0-alpha.154"
21
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.156",
22
+ "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22"
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> = []