@yannosay/sinth 5.2.0 → 5.2.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 +4 -0
- package/dist/compiler/parser.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.2.1
|
|
4
|
+
|
|
5
|
+
- The E0104 hint now covers projects without a `pages/` folder, where root files are pages.
|
|
6
|
+
|
|
3
7
|
## 5.2.0
|
|
4
8
|
|
|
5
9
|
- **The `page` keyword is removed.** A file that starts with `page` now fails with E0104 and a hint to delete the line. Every `.sinth` file in `pages/` is a page, and files outside it are modules. `page` can still be used as a variable name.
|
package/dist/compiler/parser.js
CHANGED
|
@@ -112,7 +112,7 @@ class Parser {
|
|
|
112
112
|
components: [], styles: [], scripts: [], lifecycle: [], watchers: [], body: [],
|
|
113
113
|
};
|
|
114
114
|
if (this.isIdent("page") && (this.peek(1).kind === "eof" || this.peek(1).newlineBefore)) {
|
|
115
|
-
throw new diagnostics_1.SinthError("E0104", "The 'page' keyword was removed", this.tok.loc, "Delete this line.
|
|
115
|
+
throw new diagnostics_1.SinthError("E0104", "The 'page' keyword was removed", this.tok.loc, "Delete this line. Files in pages/ (or in the project root when there is no pages/ folder) are pages automatically");
|
|
116
116
|
}
|
|
117
117
|
const declared = new Set();
|
|
118
118
|
while (this.tok.kind !== "eof") {
|
package/package.json
CHANGED