mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 13:08:32 +00:00
cb1980948db75b60e2db0985f2ac7dbea34f23ff
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cb1980948d |
chore(deps): bump the cargo-patch group across 1 directory with 9 updates
Bumps the cargo-patch group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [log](https://github.com/rust-lang/log) | `0.4.34` | `0.4.35` | | [crc32fast](https://github.com/srijs/rust-crc32fast) | `1.5.3` | `1.5.5` | | [flate2](https://github.com/rust-lang/flate2-rs) | `1.1.10` | `1.1.11` | | [encoding_rs](https://github.com/hsivonen/encoding_rs) | `0.8.42` | `0.8.44` | | [webbrowser](https://github.com/amodm/webbrowser-rs) | `1.2.5` | `1.2.7` | | [unicode-properties](https://github.com/unicode-rs/unicode-properties) | `0.1.4` | `0.1.5` | | [smallvec](https://github.com/smallvec/smallvec) | `1.16.4` | `1.16.5` | | [unicode-script](https://github.com/unicode-rs/unicode-script) | `0.5.8` | `0.5.9` | | [wl-clipboard-rs](https://github.com/YaLTeR/wl-clipboard-rs) | `0.9.4` | `0.9.5` | Updates `log` from 0.4.34 to 0.4.35 - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.34...v0.4.35) Updates `crc32fast` from 1.5.3 to 1.5.5 - [Commits](https://github.com/srijs/rust-crc32fast/compare/v1.5.3...v1.5.5) Updates `flate2` from 1.1.10 to 1.1.11 - [Release notes](https://github.com/rust-lang/flate2-rs/releases) - [Changelog](https://github.com/rust-lang/flate2-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/flate2-rs/compare/1.1.10...v1.1.11) Updates `encoding_rs` from 0.8.42 to 0.8.44 - [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.42...v0.8.44) Updates `webbrowser` from 1.2.5 to 1.2.7 - [Release notes](https://github.com/amodm/webbrowser-rs/releases) - [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/amodm/webbrowser-rs/compare/v1.2.5...v1.2.7) Updates `unicode-properties` from 0.1.4 to 0.1.5 - [Commits](https://github.com/unicode-rs/unicode-properties/commits/v0.1.5) Updates `smallvec` from 1.16.4 to 1.16.5 - [Release notes](https://github.com/smallvec/smallvec/releases) - [Commits](https://github.com/smallvec/smallvec/compare/v1.16.4...v1.16.5) Updates `unicode-script` from 0.5.8 to 0.5.9 - [Commits](https://github.com/unicode-rs/unicode-script/compare/v0.5.8...v0.5.9) Updates `wl-clipboard-rs` from 0.9.4 to 0.9.5 - [Changelog](https://github.com/YaLTeR/wl-clipboard-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/YaLTeR/wl-clipboard-rs/compare/v0.9.4...v0.9.5) --- updated-dependencies: - dependency-name: crc32fast dependency-version: 1.5.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: encoding_rs dependency-version: 0.8.44 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: flate2 dependency-version: 1.1.11 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: log dependency-version: 0.4.35 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: smallvec dependency-version: 1.16.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: unicode-properties dependency-version: 0.1.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: unicode-script dependency-version: 0.5.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: webbrowser dependency-version: 1.2.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: wl-clipboard-rs dependency-version: 0.9.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
283d127e2a |
JavaScript: characters assigned in Unicode 17 are identifier characters
vectorcraft-js and Check Script took identifier categories from unicode-general-category 1.1.0, which carries Unicode 16.0, so letters and marks assigned in Unicode 17.0 (U+088F at the start of a name, U+1ACF after its first character) were refused. Both lexers now read general categories from unicode-properties 0.1.4 (Unicode 17.0), which Cargo.lock already holds. The version is exact because 0.1.5 adds the Unicode-3.0 license, which is not on the license allowlist. The Other_ID_Start, Other_ID_Continue and Pattern_Syntax lists are the same in PropList 17.0. The exhaustive identifier test now expects the DerivedCoreProperties 17.0 totals (145,916 ID_Start, 149,240 ID_Continue), and new tests read U+088F and U+1ACF written out and as escapes in both lexers. |
||
|
|
289401343c |
Script checker: names follow Unicode ID_Start and ID_Continue
Check Script read names with Rust's alphabetic and alphanumeric tests, so it split names at U+2118, U+203F, U+00B7 and the zero width non-joiner and joiner, and took U+00B2 and U+2E2F into names. It now uses the Unicode 16.0 ID_Start and ID_Continue rule that vectorcraft-js uses, with `$` and `_` (https://www.unicode.org/reports/tr31/, https://tc39.es/ecma262/#sec-names-and-keywords). A `\uXXXX` escape is part of a name only when it stands for a character the name may hold where it is: `\u0030abc` no longer becomes `0abc`, and malformed escapes end the name. The engine's lexer comparison test now checks that both crates take the same characters into names, written out and as escapes. |
||
|
|
3374d0778d |
Scripts: Check Script… reports what a .jsx script needs and does, without running it
VectorCraft does not run scripts written for the reference app, and File › Scripts held only the disabled Other Script…. File › Scripts › Check Script… picks a .jsx, .jsxinc or .jsxbin file, reads it without running any of it, and shows a report: what the script needs (the script language's own objects, the document model, files, menu commands, dialogs, or features only the reference app has), what it would do outside the document, the menu-command strings it passes, the document-model member chains and type names it uses, its directives, the files it includes, and the problems that would stop it loading. Copy Report copies the report as JSON. File › Open and drag-and-drop show the report for those files too. - vectorcraft-scriptcheck, a new Standalone crate with no dependencies, holds the checker: a lexer for ECMAScript 3 with E4X literals and the #name and //@name directive lines, and an analysis of the tokens that follows variables, function scopes and the files a script includes. It never recurses: open brackets, the levels of an XML literal and the function bodies being read are kept on stacks capped at 4,096. It reads at most 8 MiB of a file and 32 MiB with the included files, follows 64 included files 16 deep, looks up at most 1,024 paths for them, keeps 1,000 entries in a list, tracks 1,000 variables holding member chains and 1,000 holding File objects, and cuts echoed text to 120 characters. A compiled script is reported as compiled and isn't read. - script.check (engine, a query) takes path, data or dataBase64. With a path and includes: true, it reads the files the #include lines name from inside the script's folder, through the automation read root, and when the script or one of those files assigns a member chain or a File object to a variable, the check treats the variable as holding it in every file. It doesn't follow absolute names, names, folders or links that lead out of the folder, names or folders longer than 4,096 bytes, or JSINCLUDE, and it reads only regular files. - ui.checkScript shows the report (dialog scriptCheck). File › Open lists Scripts (.jsx, .jsxinc, .jsxbin) and sends a script's path to script.check, which reads at most 8 MiB of it. The language rules come from ECMA-262 3rd edition and ECMA-357 2nd edition. The directive, platform and document-model root names come from the public JavaScript Tools Guide and scripting guide pages that catalog.rs cites by URL, and executeMenuCommand, doScript, loadAction, unloadAction and selectTool come from the public forum posts cited there; only names are used. Every script in the tests is written from scratch with invented names. Docs: docs/mcp.md, docs/target-app-parity.md. |