diff --git a/README.md b/README.md index b056bcc..53992d9 100644 --- a/README.md +++ b/README.md @@ -2065,10 +2065,17 @@ a message that says so; none is passed over in silence: ### Coming from 4.0 -Nothing of the language has changed. 4.0.1 builds a script with a long list known when it -is built, such as a video played in the fog: 4.0.0 refused one of more than 16,384 values -wider than six bits ("arrays and stacks of … cells, past the 65536"), and now reads it -where it is in the map, four bytes a value. +A 4.0 script builds into the same map. What 4.1 changed: + +- **Libraries from other plugins.** A plugin can provide TrigScript modules that a script + imports by id (`import { spawnWave } from "waves"`), and the map keeps a copy of each one + it imports, so it still builds where that plugin is missing or at another version + ([Libraries from other plugins](#libraries-from-other-plugins), [Providing a + library](#providing-a-library)). `trigscript.build` is service version 2. +- **Long lists known when the script is built** are built, such as a video played in the + fog: 4.0 refused one of more than 16,384 values wider than six bits ("arrays and stacks + of … cells, past the 65536"), and now reads it where it is in the map, four bytes a + value. ### Coming from 3.12 diff --git a/package-lock.json b/package-lock.json index 2d2fd4f..ededc7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "scmjs-plugin-trigscript", - "version": "4.0.1", + "version": "4.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "scmjs-plugin-trigscript", - "version": "4.0.1", + "version": "4.1.0", "license": "MIT", "devDependencies": { "@scm-js/plugin-api": "^1.61.0", diff --git a/package.json b/package.json index f6e5c7c..4361714 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scmjs-plugin-trigscript", - "version": "4.0.1", + "version": "4.1.0", "private": true, "description": "TrigScript — TypeScript that builds into triggers; a plugin for the scmJS StarCraft map editor.", "author": "Jeany", diff --git a/plugin.json b/plugin.json index 6078255..4a0c08f 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "name": "TrigScript", "id": "trigscript", - "version": "4.0.1", + "version": "4.1.0", "description": "TypeScript kept inside the map. Ordinary TypeScript — files, imports, helpers, loops — runs when the script is applied and records one trigger per trigger() call: ordinary triggers that play on every version. Code inside program(() => { … }) runs in the game — variables, loops, functions, sleep — and is built into the map by TrigScript itself when you save; a map with a program needs StarCraft: Remastered. Checked as you type against the map's own names, with a built-in simulator.", "author": "Jeany", "homepage": "https://github.com/scm-js/plugin-trigscript", diff --git a/version.ts b/version.ts index dbad8a5..817d572 100644 --- a/version.ts +++ b/version.ts @@ -5,4 +5,4 @@ * has been compiled into the editor (`compile.ts`). `tests/script.test.ts` keeps this * equal to the manifest's. */ -export const VERSION = "4.0.1"; +export const VERSION = "4.1.0";