@checkstack/scripts 0.1.2 → 0.2.0
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/package.json +22 -4
- package/src/cli.ts +31 -5
- package/src/commands/create.ts +17 -0
- package/src/commands/dev-deps-resolver.test.ts +411 -0
- package/src/commands/dev-deps-resolver.ts +215 -0
- package/src/commands/dev-frontend.test.ts +148 -0
- package/src/commands/dev-frontend.ts +198 -0
- package/src/commands/dev-internals.test.ts +506 -0
- package/src/commands/dev-internals.ts +278 -0
- package/src/commands/dev-lifecycle.test.ts +327 -0
- package/src/commands/dev-lifecycle.ts +173 -0
- package/src/commands/dev-server.ts +197 -0
- package/src/commands/plugin-pack.ts +397 -0
- package/src/templates/backend/package.json.hbs +39 -12
- package/src/templates/common/package.json.hbs +32 -8
- package/src/templates/frontend/package.json.hbs +41 -13
- package/src/templates.test.ts +48 -1
- package/CHANGELOG.md +0 -89
- package/tsconfig.json +0 -6
package/CHANGELOG.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# @checkstack/scripts
|
|
2
|
-
|
|
3
|
-
## 0.1.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 67158e2: Standardize package metadata, unify AJV versions to 8.18.0, and enforce monorepo architecture rules via updated ESLint configuration. This ensures consistent package discovery and runtime dependency safety across the platform.
|
|
8
|
-
|
|
9
|
-
## 0.1.1
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 0b9fc58: Fix workspace:\* protocol resolution in published packages
|
|
14
|
-
|
|
15
|
-
Published packages now correctly have resolved dependency versions instead of `workspace:*` references. This is achieved by using `bun publish` which properly resolves workspace protocol references.
|
|
16
|
-
|
|
17
|
-
## 0.1.0
|
|
18
|
-
|
|
19
|
-
### Minor Changes
|
|
20
|
-
|
|
21
|
-
- 9faec1f: # Unified AccessRule Terminology Refactoring
|
|
22
|
-
|
|
23
|
-
This release completes a comprehensive terminology refactoring from "permission" to "accessRule" across the entire codebase, establishing a consistent and modern access control vocabulary.
|
|
24
|
-
|
|
25
|
-
## Changes
|
|
26
|
-
|
|
27
|
-
### Core Infrastructure (`@checkstack/common`)
|
|
28
|
-
|
|
29
|
-
- Introduced `AccessRule` interface as the primary access control type
|
|
30
|
-
- Added `accessPair()` helper for creating read/manage access rule pairs
|
|
31
|
-
- Added `access()` builder for individual access rules
|
|
32
|
-
- Replaced `Permission` type with `AccessRule` throughout
|
|
33
|
-
|
|
34
|
-
### API Changes
|
|
35
|
-
|
|
36
|
-
- `env.registerPermissions()` → `env.registerAccessRules()`
|
|
37
|
-
- `meta.permissions` → `meta.access` in RPC contracts
|
|
38
|
-
- `usePermission()` → `useAccess()` in frontend hooks
|
|
39
|
-
- Route `permission:` field → `accessRule:` field
|
|
40
|
-
|
|
41
|
-
### UI Changes
|
|
42
|
-
|
|
43
|
-
- "Roles & Permissions" tab → "Roles & Access Rules"
|
|
44
|
-
- "You don't have permission..." → "You don't have access..."
|
|
45
|
-
- All permission-related UI text updated
|
|
46
|
-
|
|
47
|
-
### Documentation & Templates
|
|
48
|
-
|
|
49
|
-
- Updated 18 documentation files with AccessRule terminology
|
|
50
|
-
- Updated 7 scaffolding templates with `accessPair()` pattern
|
|
51
|
-
- All code examples use new AccessRule API
|
|
52
|
-
|
|
53
|
-
## Migration Guide
|
|
54
|
-
|
|
55
|
-
### Backend Plugins
|
|
56
|
-
|
|
57
|
-
```diff
|
|
58
|
-
- import { permissionList } from "./permissions";
|
|
59
|
-
- env.registerPermissions(permissionList);
|
|
60
|
-
+ import { accessRules } from "./access";
|
|
61
|
-
+ env.registerAccessRules(accessRules);
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### RPC Contracts
|
|
65
|
-
|
|
66
|
-
```diff
|
|
67
|
-
- .meta({ userType: "user", permissions: [permissions.read.id] })
|
|
68
|
-
+ .meta({ userType: "user", access: [access.read] })
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Frontend Hooks
|
|
72
|
-
|
|
73
|
-
```diff
|
|
74
|
-
- const canRead = accessApi.usePermission(permissions.read.id);
|
|
75
|
-
+ const canRead = accessApi.useAccess(access.read);
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Routes
|
|
79
|
-
|
|
80
|
-
```diff
|
|
81
|
-
- permission: permissions.entityRead.id,
|
|
82
|
-
+ accessRule: access.read,
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## 0.0.2
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- d20d274: Initial release of all @checkstack packages. Rebranded from Checkmate to Checkstack with new npm organization @checkstack and domain checkstack.dev.
|