Skip to content

Commit 3d37a2e

Browse files
committed
MeTTaScript 2.2.0
1 parent afec58b commit 3d37a2e

29 files changed

Lines changed: 225 additions & 84 deletions

File tree

RELEASE_NOTES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# MeTTaScript 2.2.0
2+
3+
Exposes the import resolver as a reusable, host-agnostic function. The transitive, cycle-safe import
4+
resolution that 2.1.0 added is now a core primitive that any host can drive with its own module reader.
5+
Behavior is unchanged: every terminating program produces the same output as 2.1.0, validated byte-identical
6+
across the full corpus, so upgrading is safe.
7+
8+
## `resolveImportGraph`
9+
10+
`@mettascript/core` now exports `resolveImportGraph(entrySrc, resolveModule, contextId?)`, the transitive,
11+
cycle-safe import-graph walk, decoupled from the filesystem. The caller supplies a `resolveModule` callback
12+
that maps an import name and a context to a module identity and, when the module is loadable, its source. The
13+
function returns the same import graph the runtime consumes.
14+
15+
`@metta-ts/node`'s `readImports` is now a thin wrapper that supplies a filesystem `resolveModule`, so its
16+
behavior is identical. A tool that resolves modules from somewhere other than the filesystem, such as an
17+
editor working over in-memory workspace files, can build the exact same import graph the runtime uses by
18+
supplying its own reader, rather than reimplementing the resolution.
19+
120
# MeTTaScript 2.1.0
221

322
Imports are now transitive, deduplicated, and cycle-safe. A module you import can itself import other

compat/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/browser",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/core",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/das-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/das-client",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/das-gateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/das-gateway",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/debug",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/edsl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/edsl",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/grapher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/grapher",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/hyperon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/hyperon",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

compat/libraries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metta-ts/libraries",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)