plainscript-lang 0.1.7-rc → 1.0.0-beta

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  PlainScript is an Intent-Oriented Programming Language (IOPL). You describe **what** you want; the compiler decides **how** to implement it in JavaScript.
11
11
 
12
- **Current version:** v0.1.7 — the `plainscript` npm package with a TypeScript-style production build (`plainscript build` → `dist/`, source names preserved).
12
+ **Current version:** v1.0.0-beta — the `plainscript` npm package with a TypeScript-style production build (`plainscript build` → `dist/`, source names preserved).
13
13
 
14
14
  ---
15
15
 
@@ -108,7 +108,7 @@ For projects that need custom output or source directories, add a
108
108
  "build": "plainscript build",
109
109
  "prepare": "plainscript build"
110
110
  },
111
- "devDependencies": { "plainscript": "^0.1.7" }
111
+ "devDependencies": { "plainscript": "^1.0.0-beta" }
112
112
  }
113
113
  ```
114
114
 
@@ -297,6 +297,31 @@ use node-fetch
297
297
  use @scope/package-name
298
298
  ```
299
299
 
300
+ ### TypeScript-parity capabilities (1.0.0-beta)
301
+
302
+ The full capability-gap audit lives in [`docs/CAPABILITY_GAP_AUDIT.md`](docs/CAPABILITY_GAP_AUDIT.md).
303
+ These features close it in PlainScript's own grammar:
304
+
305
+ - **Record kinds (classes):** `define a kind called "Person" with name is "" done`
306
+ + `create a Person with name "Ada" and age 17`. Plain-object instances; unknown
307
+ fields throw.
308
+ - **Concurrency:** `all of [...]`, `any of [...]`, `settled of [...]`,
309
+ `withTimeout(promise, ms)`.
310
+ - **Generators:** `yield` inside `make ... done`; consumed with `for each` or
311
+ `spread of`.
312
+ - **Reflection:** `typeOf`, `fieldsOf`, `valueOf`, `hasField`, `sizeOf`.
313
+ - **Binary:** `base64Encode/Decode`, `textToBytes/bytesToText`, `sha256/sha1/md5`.
314
+ - **Config:** `yamlDecode/yamlEncode`, `load env file ".env"`.
315
+ - **CLI & processes:** `args()`, `runCommand(cmd, [args])`.
316
+ - **Filesystem & paths:** `fileSize`, `fileType`, `lastModified`, `walkFolder`,
317
+ `joinPath`, `baseName`, `folderOf`, `extensionOf`.
318
+ - **Streams:** `writeLine`, `appendLine`.
319
+ - **Collections:** `keyMap/mapSet/mapGet/mapHas/mapDelete`, `newSet/addToSet`.
320
+ - **Dynamic modules:** `loadModule("./m")`.
321
+ - **Native tests:** `test "name" ... done` with `check a equals b`,
322
+ `check a contains b`, `check a is b`, `check <expr> raises "msg"`.
323
+ - **Exports:** `export <name>`.
324
+
300
325
  ---
301
326
 
302
327
  ## Backend Services
package/compiler/cli.js CHANGED
@@ -554,7 +554,7 @@ done
554
554
  start: 'node dist/app.js',
555
555
  },
556
556
  devDependencies: {
557
- plainscript: `^${VERSION}`,
557
+ 'plainscript-lang': `^${VERSION}`,
558
558
  },
559
559
  dependencies: {
560
560
  express: '^4.18.2',