| Feat/add formatting config (#2226) | 1 年前 |
| fix: clean up spam commits | 11 个月前 |
| Chore/use bun as a package manager and script runner (#2148) * chore: use bun for package management * chore: update contributing docs to point to Bun * chore: try to use Bun in CircleCI rather than yarn * chore: use bun in pre-commit hook instead of yarn * chore: update package json scripts to bun * chore: prettier:write on some tests * chore: run publish-docs * fix: circle CI typos * fix: install bun in Circle CI test runners | 2 年前 |
| perf: make model creation faster (#2113) * perf: make model creation faster * test: child models do not modify parent properties | 2 年前 |
| feat: pretty-print and truncate JSON snapshots and type shapes in error messages (#2291) * feat: pretty-print and truncate JSON snapshots and type shapes in error messages Type-checking errors previously serialized the offending snapshot as a single unbroken JSON.stringify line and the target type shape (describe()) as one long line, which is hard to read for large snapshots. - prettyPrintValue: keep small values compact/inline (unchanged), but for large values pretty-print across lines and truncate long strings, big arrays/objects and deep nesting so they don't flood the screen. - prettyPrintDescription: re-indent long model type shapes across lines, while leaving union/array parts inline; defensively falls back to the original string so it can never throw while an error is already being formatted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor: make pretty-printed error formatting opt-in via setErrorFormatting Addresses review feedback: rather than changing the default error output, the multi-line + truncated formatting is now opt-in and configurable, so MST's existing behavior is preserved for everyone who doesn't opt in. - Default behavior is byte-for-byte unchanged (single-line JSON.stringify plus the existing length cap); no existing tests change. - Add setErrorFormatting / getErrorFormatting + ErrorFormattingOptions (enabled, indent, maxStringLength, maxArrayLength, maxPropertyCount, maxDepth), mirroring the setLivelinessChecking global-config precedent. - Truncation and indentation are independent: indent: 0 truncates without reflowing onto multiple lines (serves the "truncate-only" use case). - Type-shape (describe()) re-indentation reuses the same enabled/indent setting. - Dedicated error-formatting.test.ts (config API, default-unchanged regression, truncation, and adversarial type-shape stability tests); docs updated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> | 2 个月前 |
| feat: pretty-print and truncate JSON snapshots and type shapes in error messages (#2291) * feat: pretty-print and truncate JSON snapshots and type shapes in error messages Type-checking errors previously serialized the offending snapshot as a single unbroken JSON.stringify line and the target type shape (describe()) as one long line, which is hard to read for large snapshots. - prettyPrintValue: keep small values compact/inline (unchanged), but for large values pretty-print across lines and truncate long strings, big arrays/objects and deep nesting so they don't flood the screen. - prettyPrintDescription: re-indent long model type shapes across lines, while leaving union/array parts inline; defensively falls back to the original string so it can never throw while an error is already being formatted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor: make pretty-printed error formatting opt-in via setErrorFormatting Addresses review feedback: rather than changing the default error output, the multi-line + truncated formatting is now opt-in and configurable, so MST's existing behavior is preserved for everyone who doesn't opt in. - Default behavior is byte-for-byte unchanged (single-line JSON.stringify plus the existing length cap); no existing tests change. - Add setErrorFormatting / getErrorFormatting + ErrorFormattingOptions (enabled, indent, maxStringLength, maxArrayLength, maxPropertyCount, maxDepth), mirroring the setLivelinessChecking global-config precedent. - Truncation and indentation are independent: indent: 0 truncates without reflowing onto multiple lines (serves the "truncate-only" use case). - Type-shape (describe()) re-indentation reuses the same enabled/indent setting. - Dedicated error-formatting.test.ts (config API, default-unchanged regression, truncation, and adversarial type-shape stability tests); docs updated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> | 2 个月前 |
| docs: enhance API documentation generation and fix source links (#2283) | 5 个月前 |
| feat: pretty-print and truncate JSON snapshots and type shapes in error messages (#2291) * feat: pretty-print and truncate JSON snapshots and type shapes in error messages Type-checking errors previously serialized the offending snapshot as a single unbroken JSON.stringify line and the target type shape (describe()) as one long line, which is hard to read for large snapshots. - prettyPrintValue: keep small values compact/inline (unchanged), but for large values pretty-print across lines and truncate long strings, big arrays/objects and deep nesting so they don't flood the screen. - prettyPrintDescription: re-indent long model type shapes across lines, while leaving union/array parts inline; defensively falls back to the original string so it can never throw while an error is already being formatted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor: make pretty-printed error formatting opt-in via setErrorFormatting Addresses review feedback: rather than changing the default error output, the multi-line + truncated formatting is now opt-in and configurable, so MST's existing behavior is preserved for everyone who doesn't opt in. - Default behavior is byte-for-byte unchanged (single-line JSON.stringify plus the existing length cap); no existing tests change. - Add setErrorFormatting / getErrorFormatting + ErrorFormattingOptions (enabled, indent, maxStringLength, maxArrayLength, maxPropertyCount, maxDepth), mirroring the setLivelinessChecking global-config precedent. - Truncation and indentation are independent: indent: 0 truncates without reflowing onto multiple lines (serves the "truncate-only" use case). - Type-shape (describe()) re-indentation reuses the same enabled/indent setting. - Dedicated error-formatting.test.ts (config API, default-unchanged regression, truncation, and adversarial type-shape stability tests); docs updated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> | 2 个月前 |
| Chore/undo monorepo setup (#2099) * chore: undo the monorepo setup * v5.3.0-alpha.1 * chore: minor touch ups during manual testing steps * fix: remove unused CircleCI test, format it | 2 年前 |
| Chore/version bump (#2290) * chore: version bump to 7.2.0 * docs: regenerate and publish docs | 5 个月前 |
| Starting with docs | 6 年前 |
| cleanup in gitattributes | 7 年前 |
| Chore/undo monorepo setup (#2099) * chore: undo the monorepo setup * v5.3.0-alpha.1 * chore: minor touch ups during manual testing steps * fix: remove unused CircleCI test, format it | 2 年前 |
| chore: add community docs (#2090) | 2 年前 |
| docs: enhance API documentation generation and fix source links (#2283) | 5 个月前 |
| Starting with docs | 6 年前 |
| chore: update GitHub issue templates to focus on bugs (#2017 by @coolsoftwaretyler) To priorize stability of the project, we should encourage folks to use the issue tracker solely for bug reports, and funnel other items to the GitHub discussions board. | 3 年前 |
| Initial project setup | 9 年前 |
| fix: clean up spam commits | 11 个月前 |
| Create SECURITY.md | 2 年前 |
| Chore/version bump and document (#2288) * chore: bump version to 7.1.0 * docs: regenerate and publish docs | 5 个月前 |
| Get `bun test` working locally (#2204) * Use async style tests to avoid tests hanging on failure * Avoid Promise construction in tests if better options available * Avoid any type in filterRelevantStuff * Update snapshots for async test * Introduce action id reset for stable snapshots in tests * Simplify dev/prod testing scripts * Use a global setup script to further simplify testing commands * Detect overlapping view/property names earlier in instantiation. This primarily allows running `bun test` without state leakage. I'm not entirely sure what state is messed up between tests, but before this change the following command would fail: ``` bun test __tests__/core/{env,model}.test.ts ``` | 2 年前 |
| docs: Changelog note and docs publish | 5 年前 |
| Starting with docs | 6 年前 |
| Chore/undo monorepo setup (#2099) * chore: undo the monorepo setup * v5.3.0-alpha.1 * chore: minor touch ups during manual testing steps * fix: remove unused CircleCI test, format it | 2 年前 |
| Chore/version bump (#2290) * chore: version bump to 7.2.0 * docs: regenerate and publish docs | 5 个月前 |
| Fix tsconfig and typechecking (#2200) * Update tsconfig to typecheck tests * Add missing @types/jest to package.json * fix: TS failures in test files missing bun:test imports --------- Co-authored-by: Tyler Williams <tyler@coolsoftware.dev> | 2 年前 |
| Fix tsconfig and typechecking (#2200) * Update tsconfig to typecheck tests * Add missing @types/jest to package.json * fix: TS failures in test files missing bun:test imports --------- Co-authored-by: Tyler Williams <tyler@coolsoftware.dev> | 2 年前 |
| Lazy eventhandlers (#1160) * improve performance by creating EventHandlers object only when needed * small refactor * update change log | 7 年前 |
| docs: enhance API documentation generation and fix source links (#2283) | 5 个月前 |