sqlsift-lsp 0.1.3 → 0.1.4
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 +6 -0
- package/README.md +2 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.4](https://github.com/yukikotani231/sqlsift/compare/v0.1.3...v0.1.4) - 2026-03-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- implement E0004 null-violation diagnostics ([#66](https://github.com/yukikotani231/sqlsift/pull/66))
|
|
15
|
+
|
|
10
16
|
## [0.1.3](https://github.com/yukikotani231/sqlsift/compare/v0.1.2...v0.1.3) - 2026-03-04
|
|
11
17
|
|
|
12
18
|
### Added
|
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ sqlsift check --schema schema/*.sql queries/**/*.sql
|
|
|
123
123
|
| E0001 | table-not-found | Referenced table does not exist in schema | ✅ Implemented |
|
|
124
124
|
| E0002 | column-not-found | Referenced column does not exist in table | ✅ Implemented |
|
|
125
125
|
| E0003 | type-mismatch | Type incompatibility in expressions (comparisons, arithmetic) | ✅ Implemented |
|
|
126
|
-
| E0004 | potential-null-violation |
|
|
126
|
+
| E0004 | potential-null-violation | Potential NOT NULL violation (explicit NULL assignment) | ✅ Implemented |
|
|
127
127
|
| E0005 | column-count-mismatch | INSERT column count doesn't match values | ✅ Implemented |
|
|
128
128
|
| E0006 | ambiguous-column | Column reference is ambiguous across tables | ✅ Implemented |
|
|
129
129
|
| E0007 | join-type-mismatch | JOIN condition compares incompatible types | ✅ Implemented |
|
|
@@ -135,6 +135,7 @@ sqlsift check --schema schema/*.sql queries/**/*.sql
|
|
|
135
135
|
- ✅ Arithmetic operations (`SELECT name + 10`)
|
|
136
136
|
- ✅ JOIN conditions (`ON users.id = orders.user_name`)
|
|
137
137
|
- ✅ Set operations column validation (`UNION` / `INTERSECT` / `EXCEPT` column count and type compatibility)
|
|
138
|
+
- ✅ Potential NOT NULL violation checks for explicit `NULL` assignment in `INSERT` / `UPDATE` (`E0004`)
|
|
138
139
|
- ✅ INSERT value type mismatches (`INSERT INTO users (id) VALUES ('text')`)
|
|
139
140
|
- ✅ UPDATE assignment type mismatches (`UPDATE users SET id = 'text'`)
|
|
140
141
|
- ✅ CAST expression type inference (`CAST(name AS INTEGER)`)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "sqlsift-lsp",
|
|
26
|
-
"version": "0.1.
|
|
26
|
+
"version": "0.1.4"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/balanced-match": {
|
|
29
29
|
"engines": {
|
|
@@ -515,5 +515,5 @@
|
|
|
515
515
|
}
|
|
516
516
|
},
|
|
517
517
|
"requires": true,
|
|
518
|
-
"version": "0.1.
|
|
518
|
+
"version": "0.1.4"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/yukikotani231/sqlsift/releases/download/v0.1.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/yukikotani231/sqlsift/releases/download/v0.1.4",
|
|
3
3
|
"bin": {
|
|
4
4
|
"sqlsift-lsp": "run-sqlsift-lsp.js"
|
|
5
5
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"zipExt": ".tar.xz"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"version": "0.1.
|
|
94
|
+
"version": "0.1.4",
|
|
95
95
|
"volta": {
|
|
96
96
|
"node": "18.14.1",
|
|
97
97
|
"npm": "9.5.0"
|