@saplings/entitlements 0.0.0-stage → 0.1.1

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 ADDED
@@ -0,0 +1,17 @@
1
+ # @saplings/entitlements
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 92e45c0: Add fifteen domain workspaces; five own standalone helpers and ten provide SDK-backed transitional public entry points. Production readiness and publication remain open.
8
+ - Updated dependencies [92e45c0]
9
+ - Updated dependencies [92e45c0]
10
+ - Updated dependencies [92e45c0]
11
+ - Updated dependencies [92e45c0]
12
+ - Updated dependencies [92e45c0]
13
+ - @saplings/sdk@0.19.0
14
+
15
+ ## 0.1.0
16
+
17
+ Initial workspace reference; release qualification pending.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sapling Unified SDK contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,25 @@
1
- # Temporary Holding Version
1
+ # @saplings/entitlements
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Tenant feature entitlement checks for SaaS applications.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @saplings/entitlements
9
+ ```
10
+
11
+ This is a new workspace candidate; publish/install availability has not been verified. This transitional facade depends on @saplings/sdk; the SDK implementation remains authoritative.
12
+
13
+ ## Public API
14
+
15
+ BillingService hasEntitlement and setEntitlement.
16
+
17
+ ## Integration and limitations
18
+
19
+ Use verified actor context and server-side access checks. Seat, plan and add-on composition is still expansion scope.
20
+
21
+ Construct the service with the same trusted SDK dependencies as the unified SDK, or use the existing configured SDK instance. Do not create an independent store or duplicate provider state merely to consume this import path.
22
+
23
+ ## Verification
24
+
25
+ Run `pnpm run build` and `pnpm test tests/saas-domain-entrypoints.test.mjs` in the repository. For a released package, verify the installed tarball and application-level negative cases. A workspace build is not production certification.
@@ -0,0 +1,3 @@
1
+ /** Transitional domain package; SDK remains the canonical implementation. */
2
+ export * from '@saplings/sdk/entitlements';
3
+ export type { ActorContext, Store } from '@saplings/sdk';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ /** Transitional domain package; SDK remains the canonical implementation. */
2
+ export * from '@saplings/sdk/entitlements';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,cAAc,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
2
  "name": "@saplings/entitlements",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Tenant feature entitlement checks",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "CHANGELOG.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">=22"
22
+ },
23
+ "dependencies": {
24
+ "@saplings/sdk": "0.19.0"
25
+ },
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/snrakshith/saplings.git",
30
+ "directory": "packages/entitlements"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ }
6
36
  }