pgsafe 0.0.0-stage → 2.7.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/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pg-safe-migrate contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,116 @@
1
- # Temporary Holding Version
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.
1
+ \# pgsafe
2
+
3
+
4
+
5
+ PostgreSQL migration safety linter and risk advisor.
6
+
7
+
8
+
9
+ \## Quick Start
10
+
11
+
12
+
13
+ ```bash
14
+
15
+ npx pgsafe
16
+
17
+ ```
18
+
19
+
20
+
21
+ Analyze a migration:
22
+
23
+
24
+
25
+ ```bash
26
+
27
+ npx pgsafe migrations/
28
+
29
+ ```
30
+
31
+
32
+
33
+ Get migration safety advice:
34
+
35
+
36
+
37
+ ```bash
38
+
39
+ npx pgsafe migrations/ --advisor
40
+
41
+ ```
42
+
43
+
44
+
45
+ Check changed migrations:
46
+
47
+
48
+
49
+ ```bash
50
+
51
+ npx pgsafe --changed origin/main
52
+
53
+ ```
54
+
55
+
56
+
57
+ Generate SARIF reports:
58
+
59
+
60
+
61
+ ```bash
62
+
63
+ npx pgsafe migrations/ --format sarif --output report.sarif
64
+
65
+ ```
66
+
67
+
68
+
69
+ \## Features
70
+
71
+
72
+
73
+ \- AST-based PostgreSQL migration analysis
74
+
75
+ \- Destructive operation detection
76
+
77
+ \- Migration safety advisor
78
+
79
+ \- Auditable inline rule suppression
80
+
81
+ \- Enterprise policy enforcement
82
+
83
+ \- JSON, Markdown and SARIF reports
84
+
85
+ \- Prisma and Drizzle migration detection
86
+
87
+ \- CI/CD integration
88
+
89
+ \- VS Code extension
90
+
91
+
92
+
93
+ \## About
94
+
95
+
96
+
97
+ This package provides a shorter command for the official `@subodh001/pg-safe-migrate` engine.
98
+
99
+
100
+
101
+ Migration analysis helps identify risks but does not guarantee zero downtime.
102
+
103
+
104
+
105
+ \- Website: https://www.sukoaa.com/pg-safe-migrate
106
+
107
+ \- GitHub: https://github.com/subodhsingh001/pg-safe-migrate
108
+
109
+
110
+
111
+ \## License
112
+
113
+
114
+
115
+ MIT
116
+
package/bin/pgsafe.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import '@subodh001/pg-safe-migrate/bin/cli.js';
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
- {
2
- "name": "pgsafe",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
1
+ {
2
+ "name": "pgsafe",
3
+ "version": "2.7.0",
4
+ "description": "PostgreSQL migration safety linter and risk advisor",
5
+ "type": "module",
6
+ "bin": {
7
+ "pgsafe": "./bin/pgsafe.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "keywords": [
15
+ "postgresql",
16
+ "postgres",
17
+ "migration",
18
+ "database",
19
+ "sql",
20
+ "linter",
21
+ "prisma",
22
+ "drizzle",
23
+ "ci",
24
+ "migration-safety"
25
+ ],
26
+ "author": "Sukoaa",
27
+ "license": "MIT",
28
+ "homepage": "https://www.sukoaa.com/pg-safe-migrate",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/subodhsingh001/pg-safe-migrate.git",
32
+ "directory": "packages/pgsafe"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/subodhsingh001/pg-safe-migrate/issues"
36
+ },
37
+ "engines": {
38
+ "node": ">=18"
39
+ },
40
+ "dependencies": {
41
+ "@subodh001/pg-safe-migrate": "2.7.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ }
6
46
  }