rip-lang 1.4.3 → 1.4.5
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 +42 -0
- package/README.md +258 -1171
- package/docs/dist/rip.browser.js +68 -71
- package/docs/dist/rip.browser.min.js +147 -142
- package/docs/dist/rip.browser.min.js.br +0 -0
- package/package.json +3 -3
- package/{rip-loader.ts → rip-loader.js} +1 -1
- package/src/codegen.js +13 -9
- package/src/compiler.js +90 -47
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,48 @@ All notable changes to Rip will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.5] - 2025-11-08
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **Renamed rip-loader.ts → rip-loader.js** - Pure JavaScript, no TypeScript
|
|
12
|
+
- Removed fake TypeScript annotation (`err: any` → `err`)
|
|
13
|
+
- Updated `bunfig.toml` to reference `.js` file
|
|
14
|
+
- Updated `package.json` exports and files array
|
|
15
|
+
- Honest about what the file is - simplicity and clarity
|
|
16
|
+
|
|
17
|
+
- **Completed CODEGEN-FINAL-ANALYSIS recommendations**
|
|
18
|
+
- Extracted `isNegativeOneLiteral()` helper method (DRY principle)
|
|
19
|
+
- Removed duplicate negative-one literal checks
|
|
20
|
+
- Deleted analysis document (all work complete)
|
|
21
|
+
|
|
22
|
+
All 938 tests passing (100%) ✅
|
|
23
|
+
|
|
24
|
+
## [1.4.4] - 2025-11-08
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- **S-expression formatter - Clean room rebuild**
|
|
28
|
+
- Complete rewrite of `formatSExpr()` with clear, simple rules
|
|
29
|
+
- Fixed indentation hierarchy: children ALWAYS indented more than parents
|
|
30
|
+
- Fixed method chaining indentation (`.` operator in call heads)
|
|
31
|
+
- Multi-line heads now properly re-indented to maintain hierarchy
|
|
32
|
+
- Block nodes always expand children on separate lines
|
|
33
|
+
- Removed all column-based continuation complexity
|
|
34
|
+
- +89 lines added, -52 lines removed (net +37 for clarity)
|
|
35
|
+
|
|
36
|
+
- **INLINE_FORMS cleanup**
|
|
37
|
+
- Removed legacy MUMPS cruft (tag, entryref, lock-*, newline, etc.)
|
|
38
|
+
- Organized by category with aligned comments
|
|
39
|
+
- Added `new` to inline forms for compact constructor calls
|
|
40
|
+
- Clear documentation of what belongs and why
|
|
41
|
+
|
|
42
|
+
### Improved
|
|
43
|
+
- S-expression output is now beautifully formatted with perfect hierarchy
|
|
44
|
+
- Method chaining like `s.replace().trim()` displays correctly
|
|
45
|
+
- Simple constructors stay compact: `(new (Date))`
|
|
46
|
+
- Complex constructors expand naturally: `(new (Set (...)))`
|
|
47
|
+
|
|
48
|
+
All 938 tests passing (100%) ✅
|
|
49
|
+
|
|
8
50
|
## [1.4.3] - 2025-11-07
|
|
9
51
|
|
|
10
52
|
### Refactored
|