Repository navigation
DeltaScript 1.0.0 Stable
DeltaScript 1.0.0 — Initial Stable Release
- Date: 2025-10-31
- Package: deltascript@1.0.0
- CLI: dsc
Install
You can install globally or locally.
npm
Global:
npm install -g deltascriptProject:
npm install deltascriptHighlights
- Stable initial release of the language, CLI, and tooling.
- Comprehensive documentation and practical examples included.
Features
-
CLI
dsc init: createsdsk.config.dsand ensures src/ exists.dsc build: compiles all.dsto ESM.jsinoutDir.dsc dev: watch mode with per-file debounce and concise output.dsc <file.ds>: transpiles and runs a single.dsusing a temporary.mjs(supports top‑level await and full interactivity).-v/--version: prints DeltaScript version.- Flags:
--no-builtins: disable SpectralLogs integration and console tips.--migrate-to-spec: rewriteconsole.*tospec.*automatically.--spectral-cdn: force CDN imports for SpectralLogs.
-
Language
- Typed annotations with
::. - Types:
num,str,mbool(true/false/maybe). - Arrays:
arr,arr<T>. - Objects:
obj. - Interfaces and classes.
funcinstead offunction.- Default parameters; return types inferred.
- Clear errors with code frames (file:line:col), colorized.
- Typed annotations with
-
Runner (single-file)
- Outputs to a temporary
.mjsto ensure ESM and top‑level await. - Interactive I/O preserved (e.g.,
await spec.input(...)). - Proper Ctrl+C forwarding and cleanup of temp files.
- Outputs to a temporary
-
SpectralLogs Integration
- Auto integration:
- Prefer package imports when available.
--spectral-cdnto use CDN.- No‑await shim fallback with
spec.*(includes asyncspec.input).
- Gentle warnings:
- Concise, yellow warning per session/file for
console.*. - Tip to use
--migrate-to-specwhen frequent.
- Concise, yellow warning per session/file for
- Auto integration:
-
Documentation
- README with logo and quick start.
- docs/: CLI, language, types, config, SpectralLogs, examples.
- Examples demonstrating functions, classes, control flow, interfaces, arrays, and structured logging.
Installation
- npm:
npm i -g deltascriptornpm i -D deltascript - bun:
bun add -g deltascriptorbun add -d deltascript - pnpm:
pnpm add -g deltascriptorpnpm add -D deltascript
Getting Started
- Initialize:
dsc init - Build:
dsc build - Watch:
dsc dev - Run single file:
dsc ./src/main.ds
Status: release notes prepared for 1.0.0 (initial stable).