From e66db9fab5220334cd90ddde010fc21534cca42b Mon Sep 17 00:00:00 2001 From: Vincent Vollers <59395529+vvollers@users.noreply.github.com> Date: Mon, 16 Nov 2026 19:33:32 +0100 Subject: [PATCH 1/3] Update dependencies to their latest compatible releases Supersedes Dependabot PRs #78, #79, #80, #81 and #82, taking each package to its newest release rather than the version those PRs proposed. .NET: StyleCop.Analyzers 1.3.180, MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0, PolySharp 1.17.1, MemoryPack 1.22.0, protobuf-net 3.4.40, dotnet-stryker 5.1.0. Actions: actions/setup-dotnet 6.1.0 (pinned by commit). npm: Vite 8.3.8, Vitest 5.1.0, ESLint 10.15.0, eslint-plugin-jsdoc 65.4.9, eslint-plugin-vue 10.12.1, typescript-eslint 8.73.0, vue-tsc 3.3.14, Vue 3.5.45, dockview-vue 8.9.0, @iconify-icons/vscode-icons 2.0.26, @iconify/vue 5.0.5, file-type 22.3.0, Playwright 1.65.1, cspell 10.5.1, tinybench 6.2.3, and markdownlint-cli2 0.24.1, which brings re2js 2.9.1 and clears the high-severity GHSA-gg6h-894w-4m9c audit failure in the documentation toolchain. StyleCop 1.3 adds and tightens rules, so source changes accompany the bump: - Record and primary-constructor parameters gain documentation (SA1600). - Secondary partial declarations use instead of a second (SA1653); tools/quality/CSharpComments.cs accepts that, with tests. - Multi-line conditionals, accessor bodies, member order, extern aliases and file/type names follow SA1143, SA1504, SA1204, SA1200 and SA1649. - SA1315: StructValue.Add/ContainsKey/Remove/TryGetValue name their parameter `key`, matching the implemented interfaces and UnionValue. Breaking for callers using `name:` as a named argument; recorded in the CHANGELOG and the managed API baseline (revision 75, breaking). Stryker 5.1.0: the release adds mutants only in new places (interpolated regex strings, out variables in constructor initializers) and fixes runner bugs, so the reviewed equivalent and non-mutable policies are carried to 5.1.0. One equivalent entry in LayoutCompilation.Normalization.cs was moved by hand after reformatting its conditional for SA1143; its replacement text follows Stryker's printing of the previous form and is confirmed only by the next mutation run. The declarations test now reads the tool version from the manifest instead of hard-coding it. file-type 22.3.0 detects two more formats, so the Inspector catalog gains header layouts for Apple Core Audio Format (.caf: file header plus the required desc chunk) and DSDIFF (.dff: FRM8 form plus the required FVER chunk). Golden outcome changes, all additions: - EngineCorpusTests: new groups detected-caf and detected-dff. - ExpressionDifferentialTests CorpusExpressions_EvaluateLikeTheDictionaryModel ("Inspector"): the same two groups added; no existing hash changed. The Inspector e2e list count moves from 185 to 187. --- .config/dotnet-tools.json | 2 +- .github/workflows/ci.yml | 4 +- .github/workflows/dependency-check.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/mutation.yml | 4 +- .github/workflows/release.yml | 4 +- .github/workflows/site.yml | 2 +- .github/workflows/web.yml | 2 +- CHANGELOG.md | 22 + Directory.Build.props | 2 +- apps/explorer/package.json | 2 +- apps/inspector/package.json | 10 +- apps/inspector/src/schema-catalog/audio.ts | 32 + apps/inspector/tests/e2e/schema-list.spec.ts | 4 +- apps/shared/package.json | 2 +- .../DevelopmentEnvironment.cs | 4 +- .../CStructSharp.Comparison.csproj | 4 +- benchmarks/js/package-lock.json | 24 +- benchmarks/js/package.json | 4 +- .../api/managed/CStructSharp.public-api.txt | 8 +- contracts/api/managed/manifest.json | 24 +- contracts/quality/mutation-equivalents.json | 110 +- contracts/quality/mutation-non-mutable.json | 2 +- docs/package-lock.json | 409 ++++--- docs/package.json | 6 +- package-lock.json | 1086 +++++++++++------ package.json | 20 +- .../Codecs/BitfieldCodecTable.cs | 2 + .../Codecs/CharacterFieldTypes.cs | 8 +- .../Codecs/CustomCodecDescriptor.cs | 3 + .../Codecs/PrimitiveCodec.cs | 131 +- .../Codecs/PrimitiveCodecKind.cs | 127 ++ .../Compilation/CompiledArrayDimension.cs | 2 + .../Compilation/CompiledConstraint.cs | 2 +- .../Compilation/CompiledEnumMember.cs | 2 + .../Compilation/CompiledField.cs | 12 +- .../Compilation/CompiledTypeReference.cs | 3 + .../Compilation/LayoutCompilation.Capture.cs | 2 +- .../LayoutCompilation.Composites.cs | 2 +- .../LayoutCompilation.Introspection.cs | 2 +- .../Compilation/LayoutCompilation.Model.cs | 2 +- .../LayoutCompilation.Normalization.cs | 14 +- .../Compilation/LayoutCompilation.Paths.cs | 2 +- .../Compilation/PlacementCursor.cs | 6 +- .../Compilation/Programs/ProgramExpression.cs | 9 +- .../Programs/ReadProgramCompiler.cs | 24 +- .../Programs/WriteProgramCompiler.cs | 6 +- .../Diagnostics/DebugPath.cs | 2 + .../Expressions/ExpressionEvaluationLimits.cs | 2 + .../Parsing/LayoutParser.Declarations.cs | 2 +- .../Parsing/LayoutParser.Expressions.cs | 2 +- .../Parsing/LayoutParser.Members.cs | 2 +- .../Parsing/LayoutParser.Preprocessor.cs | 2 +- .../Polyfills/IReadOnlySet.cs | 35 - .../Polyfills/ReadOnlySetAdapter.cs | 38 + .../Syntax/ConditionalBranch.cs | 2 + .../CStructSharp.Generators.csproj | 2 +- src/CStructSharp.Generators/ContainingType.cs | 2 + .../DefinitionLiteralShape.cs | 3 + src/CStructSharp.Generators/GeneratedModel.cs | 14 + .../LayoutEmitter.Arrays.cs | 2 +- .../LayoutEmitter.BitfieldReaders.cs | 2 +- .../LayoutEmitter.ByteOrder.cs | 4 +- .../LayoutEmitter.Constants.cs | 4 +- .../LayoutEmitter.DeferredPointers.cs | 4 +- .../LayoutEmitter.FixedBytesChecks.cs | 4 +- .../LayoutEmitter.FixedReaders.cs | 4 +- .../LayoutEmitter.FixedWriters.cs | 4 +- .../LayoutEmitter.Matches.cs | 4 +- .../LayoutEmitter.Operations.cs | 4 +- .../LayoutEmitter.Readers.cs | 4 +- .../LayoutEmitter.Scalar.cs | 4 +- .../LayoutEmitter.Sequences.cs | 4 +- .../LayoutEmitter.Types.cs | 2 +- .../LayoutEmitter.ValueTypes.cs | 4 +- .../LayoutEmitter.ViewPlacement.cs | 4 +- .../LayoutEmitter.Views.cs | 4 +- .../LayoutEmitter.Writers.cs | 4 +- src/CStructSharp.Generators/LayoutRequest.cs | 48 +- src/CStructSharp.Generators/MappedMember.cs | 10 + src/CStructSharp.Generators/MappedRequest.cs | 11 + src/CStructSharp.Generators/SourceSpan.cs | 7 + .../CStructInteropBoundary.cs | 2 +- .../CStructJsonConversion.cs | 2 +- src/CStructSharp.Wasm/InteropEnvelope.cs | 4 +- src/CStructSharp.Wasm/StaticPlanExport.cs | 4 +- src/CStructSharp/CStructAccessors.cs | 4 +- src/CStructSharp/CStructDirectReads.cs | 4 +- src/CStructSharp/CStructDirectWrites.cs | 4 +- src/CStructSharp/CStructEngineReads.cs | 4 +- src/CStructSharp/CStructEngineUpdate.cs | 4 +- src/CStructSharp/CStructIntrospection.cs | 4 +- src/CStructSharp/CStructMatches.cs | 4 +- src/CStructSharp/CStructMemoryIo.cs | 4 +- src/CStructSharp/CStructOperations.Async.cs | 4 +- .../CStructOperations.AsyncWrite.cs | 4 +- .../CStructOperations.Sequences.cs | 4 +- src/CStructSharp/CStructOperations.cs | 4 +- src/CStructSharp/CStructPrimitiveCodecs.cs | 2 +- src/CStructSharp/CStructSyntheticRoots.cs | 4 +- src/CStructSharp/CStructValueDecoding.cs | 4 +- src/CStructSharp/CStructValueReader.cs | 2 +- src/CStructSharp/CStructWriter.StaticPlan.cs | 4 +- src/CStructSharp/CStructWriter.cs | 4 +- .../Codecs/BoundedTextCodec.Read.cs | 2 +- .../Codecs/BoundedTextCodec.Write.cs | 2 +- src/CStructSharp/Codecs/PrimitiveCodec.IO.cs | 2 +- src/CStructSharp/Codecs/PrimitiveCodecs.IO.cs | 4 +- .../CompiledCompositeType.Matches.cs | 2 +- .../CompiledCompositeType.Runtime.cs | 2 +- src/CStructSharp/Engine/MemoryWriteBuffer.cs | 6 +- src/CStructSharp/Engine/ReadEngine.Debug.cs | 4 +- src/CStructSharp/Engine/ReadEngine.Paths.cs | 4 +- .../Engine/ReadEngine.PlanChecks.cs | 2 +- .../Engine/ReadEngine.Pointers.cs | 4 +- src/CStructSharp/Engine/ReadEngine.Values.cs | 2 +- .../Engine/TargetResolver.Counts.cs | 2 +- .../Engine/TargetResolver.Measure.cs | 2 +- src/CStructSharp/Engine/WriteEngine.Unions.cs | 4 +- src/CStructSharp/Engine/WriteEngine.Values.cs | 2 +- .../Generated/ReadCursor.Arrays.cs | 2 +- .../Generated/ReadCursor.Buffers.cs | 4 +- .../Generated/ReadCursor.Failures.cs | 2 +- .../Generated/ReadCursor.Nesting.cs | 2 +- src/CStructSharp/Generated/ReadCursor.Text.cs | 2 +- .../Generated/ReadCursor.Values.cs | 2 +- src/CStructSharp/Generated/ReadCursor.cs | 6 +- src/CStructSharp/Generated/WriteCursor.cs | 6 +- src/CStructSharp/MappedTypes.Fixed.cs | 2 +- .../Memory/MemoryAccessContext.cs | 24 +- src/CStructSharp/Memory/MemoryRegionStream.cs | 6 +- src/CStructSharp/Memory/MemoryScalarCodec.cs | 5 +- .../Memory/MemorySchema.Selection.cs | 2 +- .../Memory/MemorySession.Arrays.cs | 2 +- .../Memory/MemorySession.Selection.cs | 2 +- src/CStructSharp/Memory/MemoryWalker.cs | 4 +- .../Memory/Metadata/BtfMetadata.Projection.cs | 2 +- .../Memory/Metadata/IsfMetadata.Projection.cs | 2 +- src/CStructSharp/ReadLimits.cs | 44 +- src/CStructSharp/ReadOptions.cs | 43 +- .../Reading/PrimitiveArrayReader.cs | 24 +- .../Reading/ReadOperationSettings.cs | 56 +- src/CStructSharp/Reading/RecordRoot.cs | 2 + .../Streams/BufferWriterStream.cs | 38 +- src/CStructSharp/Streams/FixedBufferStream.cs | 54 +- .../Streams/SparseUpdateStream.cs | 6 +- src/CStructSharp/Values/StructValue.cs | 38 +- src/CStructSharp/Values/ValuePath.cs | 13 +- .../Writing/NoStaticWriteCaptures.cs | 6 +- .../CStructSharp.Generated.Parity.csproj | 4 +- .../StreamFailureTests.cs | 6 +- ...StructSharp.Generators.Modern.Tests.csproj | 4 +- .../AnalyzerTests.cs | 4 +- .../BenchmarkFixture.cs | 10 + .../CStructSharp.Generators.Tests.csproj | 4 +- .../ConstraintAnalyzerTests.cs | 4 +- .../GeneratorFrameTests.cs | 4 +- .../GeneratorRunner.cs | 4 +- .../LayoutUsageAnalyzerTests.cs | 4 +- .../ManualFixture.cs | 11 + .../Api/CancellationTests.cs | 13 +- .../Arrays/CompositeArrayTests.cs | 6 +- .../TerminatedRecordExtentOverflowTests.cs | 6 +- .../Async/AsyncStreamBufferTests.cs | 1 + .../Async/AsyncWriteBoundaryTests.cs | 6 +- .../CStructSharpTests.csproj | 4 +- .../Engine/Golden/EngineCorpusTests.txt | 8 + .../Golden/ExpressionDifferentialTests.txt | 4 + .../Engine/ReadProgramDump.cs | 8 +- .../Generated/ReadCursorTextBoundaryTests.cs | 6 +- .../Io/AlignmentOriginTests.cs | 4 +- .../Io/ExceptionTranslatingStreamTests.cs | 6 +- .../Paths/AddressTraversalBoundaryTests.cs | 6 +- .../Quality/FeatureOperationMatrixTests.cs | 3 +- .../Reading/PartialMemoryReadCursorTests.cs | 2 +- .../TestStreams/PositionCountingStream.cs | 5 +- .../TestStreams/RecordingStream.cs | 6 +- .../Text/PrimitiveTextBoundaryTests.cs | 6 +- .../Writing/UpdateAtomicityTests.cs | 6 +- tools/build/PublicDocumentation/Program.cs | 5 +- tools/quality/CSharpComments.cs | 10 +- tools/quality/changed-documentation.test.mjs | 8 +- tools/quality/mutation-declarations.test.mjs | 3 +- 183 files changed, 1891 insertions(+), 1235 deletions(-) create mode 100644 src/CStructSharp.Core/Codecs/PrimitiveCodecKind.cs create mode 100644 src/CStructSharp.Core/Polyfills/ReadOnlySetAdapter.cs diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index a910d07e..116a1ae3 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "dotnet-stryker": { - "version": "5.0.0", + "version": "5.1.0", "commands": [ "dotnet-stryker" ], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfd0a44b..6c98ef52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: fetch-depth: 0 - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 @@ -188,7 +188,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml index d0bfe062..a9022578 100644 --- a/.github/workflows/dependency-check.yml +++ b/.github/workflows/dependency-check.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e838147e..d5f5263f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -78,7 +78,7 @@ jobs: ref: ${{ github.sha }} - name: Set up .NET from global.json - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 41f180ca..001274ed 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -38,7 +38,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + - uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 @@ -95,7 +95,7 @@ jobs: timeout-minutes: 195 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + - uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cd16e01..aafaac71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,7 +87,7 @@ jobs: fetch-depth: 0 - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: | @@ -416,7 +416,7 @@ jobs: - name: Confirm npm publication integrity run: node tools/release/npm-release.mjs --require-published - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: | diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 20a43afc..928defdb 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -21,7 +21,7 @@ jobs: - name: Check out source uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up .NET - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: | diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index b68a247a..3773275c 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -115,7 +115,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + - uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: # An exact version skips the aka.ms redirect of dotnet-install, which points at a retired storage account (HTTP 409). dotnet-version: 10.0.403 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a49997e..3f87cd30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,28 @@ Related changes are consolidated; routine formatting and benchmark bookkeeping a headings in this order and omits the empty ones: *Breaking changes* (each with its migration), *Added*, *Changed*, *Fixed*, *Performance*, and *Documentation and tooling*. +## Unreleased + +### Breaking changes + +- `StructValue.Add`, `ContainsKey`, `Remove` and `TryGetValue` name their first parameter `key`, matching the + dictionary interfaces they implement and `UnionValue`. Migration: callers that pass it as a named argument write + `key:` instead of `name:`; positional calls are unchanged. + +### Added + +- The Inspector recognizes Apple Core Audio Format (`.caf`) and DSDIFF (`.dff`) files, newly detected by `file-type` + 22.3.0, and shows each file header with its required first chunk (`desc` and `FVER`). + +### Documentation and tooling + +- Update build, test, documentation, benchmark and app dependencies to their latest compatible releases, including + StyleCop.Analyzers 1.3.180, MSTest 4.5.3, Stryker.NET 5.1.0, Vite 8.3.8, Vitest 5.1.0, ESLint 10.15.0, Playwright + 1.65.1, cspell 10.5.1, markdownlint-cli2 0.24.1 and `actions/setup-dotnet` 6.1.0. Source documentation now meets + StyleCop 1.3's rules for record parameters and partial types; the changed-documentation check accepts `` + on secondary partial declarations. The markdownlint-cli2 update removes a high-severity `re2js` advisory + (GHSA-gg6h-894w-4m9c) from the documentation toolchain. + ## 0.18.0 — 2026-10-28 ### Added diff --git a/Directory.Build.props b/Directory.Build.props index 5fd65ba7..c5a94acc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -22,7 +22,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/apps/explorer/package.json b/apps/explorer/package.json index 931a6e86..bbf7cf7b 100644 --- a/apps/explorer/package.json +++ b/apps/explorer/package.json @@ -26,7 +26,7 @@ "dependencies": { "@cstructsharp/app-shared": "*", "monaco-editor": "^0.57.0", - "vue": "^3.5.44", + "vue": "^3.5.45", "vuehex": "^0.7.0" } } diff --git a/apps/inspector/package.json b/apps/inspector/package.json index 06bd49ce..33274e1a 100644 --- a/apps/inspector/package.json +++ b/apps/inspector/package.json @@ -21,15 +21,15 @@ }, "dependencies": { "@cstructsharp/app-shared": "*", - "@iconify-icons/vscode-icons": "^2.0.17", - "@iconify/vue": "^5.0.3", + "@iconify-icons/vscode-icons": "^2.0.26", + "@iconify/vue": "^5.0.5", "@vueuse/core": "^15.0.0", - "dockview-vue": "^8.6.0", - "file-type": "22.1.1", + "dockview-vue": "^8.9.0", + "file-type": "22.3.0", "json-editor-vue": "^0.19.2", "monaco-editor": "^0.57.0", "vanilla-jsoneditor": "^3.13.0", - "vue": "^3.5.44", + "vue": "^3.5.45", "vuehex": "^0.7.0" } } diff --git a/apps/inspector/src/schema-catalog/audio.ts b/apps/inspector/src/schema-catalog/audio.ts index dcef4617..27130c0e 100644 --- a/apps/inspector/src/schema-catalog/audio.ts +++ b/apps/inspector/src/schema-catalog/audio.ts @@ -83,6 +83,38 @@ uint64 chunk_size; uint64 file_size; uint64 metadata_offset;`, }, + { + extensions: ["dff"], + family: "DSDIFF", + scope: + "DSDIFF FRM8 form header and the required first FVER version chunk. Later property and sound-data chunks are not followed.", + fields: `char signature[4]; +uint64 form_size; +char form_type[4]; +char version_chunk_type[4]; +uint64 version_chunk_size; +uint32 format_version;`, + littleEndian: false, + }, + { + extensions: ["caf"], + family: "Core Audio Format", + scope: + "CAF file header and the required first audio description chunk. Later chunks and audio packets are not followed.", + fields: `char signature[4]; +uint16 file_version; +uint16 file_flags; +char description_chunk_type[4]; +int64 description_chunk_size; +float64 sample_rate; +char format_id[4]; +uint32 format_flags; +uint32 bytes_per_packet; +uint32 frames_per_packet; +uint32 channels_per_frame; +uint32 bits_per_channel;`, + littleEndian: false, + }, { extensions: ["wv"], family: "WavPack", diff --git a/apps/inspector/tests/e2e/schema-list.spec.ts b/apps/inspector/tests/e2e/schema-list.spec.ts index d928eefe..8e2c672a 100644 --- a/apps/inspector/tests/e2e/schema-list.spec.ts +++ b/apps/inspector/tests/e2e/schema-list.spec.ts @@ -6,7 +6,7 @@ test("all detector types are listed and the filter searches extensions and names }) => { await page.goto("/"); const list = page.getByRole("navigation", { name: "Binary format examples" }).locator("ul"); - await expect(list.getByRole("button")).toHaveCount(185); + await expect(list.getByRole("button")).toHaveCount(187); const labels = await list.locator(".example-title").allTextContents(); for (const extension of supportedExtensions) expect(labels).toContain(extension.toUpperCase()); const filter = page.getByRole("searchbox", { name: "Filter file types" }); @@ -18,7 +18,7 @@ test("all detector types are listed and the filter searches extensions and names await filter.fill("no-such-file-type"); await expect(page.getByText("No matching file types.")).toBeVisible(); await page.getByRole("button", { name: "Clear file type filter" }).click(); - await expect(list.getByRole("button")).toHaveCount(185); + await expect(list.getByRole("button")).toHaveCount(187); }); test("a catalog schema can be selected before loading a file and preserves that file on selection", async ({ diff --git a/apps/shared/package.json b/apps/shared/package.json index 6719f42b..1ef20bb2 100644 --- a/apps/shared/package.json +++ b/apps/shared/package.json @@ -19,6 +19,6 @@ }, "peerDependencies": { "monaco-editor": "^0.57.0", - "vue": "^3.5.44" + "vue": "^3.5.45" } } diff --git a/benchmarks/CStructSharp.Benchmarks/DevelopmentEnvironment.cs b/benchmarks/CStructSharp.Benchmarks/DevelopmentEnvironment.cs index a787012f..de767cc3 100644 --- a/benchmarks/CStructSharp.Benchmarks/DevelopmentEnvironment.cs +++ b/benchmarks/CStructSharp.Benchmarks/DevelopmentEnvironment.cs @@ -40,7 +40,7 @@ public static Job Apply(Job job, string artifactsPath) if (requested == "auto") { var cpus = new List(); - for (int cpu = 0; cpu < (IntPtr.Size * 8) - 1; cpu++) + for (int cpu = 0; cpu < (nint.Size * 8) - 1; cpu++) { if ((allowed & (1UL << cpu)) != 0) { @@ -56,7 +56,7 @@ public static Job Apply(Job job, string artifactsPath) selectedCpu = cpus[cpus.Count / 2]; } else if (int.TryParse(requested, NumberStyles.None, CultureInfo.InvariantCulture, out int cpu) && - cpu >= 0 && cpu < (IntPtr.Size * 8) - 1 && (allowed & (1UL << cpu)) != 0) + cpu >= 0 && cpu < (nint.Size * 8) - 1 && (allowed & (1UL << cpu)) != 0) { selectedCpu = cpu; } diff --git a/benchmarks/CStructSharp.Comparison/CStructSharp.Comparison.csproj b/benchmarks/CStructSharp.Comparison/CStructSharp.Comparison.csproj index 47603933..e239f6ff 100644 --- a/benchmarks/CStructSharp.Comparison/CStructSharp.Comparison.csproj +++ b/benchmarks/CStructSharp.Comparison/CStructSharp.Comparison.csproj @@ -20,9 +20,9 @@ - + - + diff --git a/benchmarks/js/package-lock.json b/benchmarks/js/package-lock.json index e05be6d2..19c8682e 100644 --- a/benchmarks/js/package-lock.json +++ b/benchmarks/js/package-lock.json @@ -8,21 +8,21 @@ "name": "cstructsharp-js-benchmarks", "version": "0.0.0", "devDependencies": { - "playwright": "1.64.1", - "tinybench": "6.2.2" + "playwright": "1.65.1", + "tinybench": "6.2.3" }, "engines": { "node": ">=22.14.0" } }, "node_modules/playwright": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz", - "integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", + "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.64.1" + "playwright-core": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -32,9 +32,9 @@ } }, "node_modules/playwright-core": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz", - "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", + "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -45,9 +45,9 @@ } }, "node_modules/tinybench": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.2.tgz", - "integrity": "sha512-nIZ2N2dFpjBsg2hgitKu7mA+FvsIJuGJOwysRngmVRRmWgR/UyPjwJj8c/fT/dhm8EkHnF5EOogRf+0Z2qrimA==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.3.tgz", + "integrity": "sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==", "dev": true, "license": "MIT", "engines": { diff --git a/benchmarks/js/package.json b/benchmarks/js/package.json index ad5538d7..cdf29bed 100644 --- a/benchmarks/js/package.json +++ b/benchmarks/js/package.json @@ -16,7 +16,7 @@ "profile:browser": "node bench/profile-browser.mjs" }, "devDependencies": { - "playwright": "1.64.1", - "tinybench": "6.2.2" + "playwright": "1.65.1", + "tinybench": "6.2.3" } } diff --git a/contracts/api/managed/CStructSharp.public-api.txt b/contracts/api/managed/CStructSharp.public-api.txt index 57a29e04..8c039748 100644 --- a/contracts/api/managed/CStructSharp.public-api.txt +++ b/contracts/api/managed/CStructSharp.public-api.txt @@ -1363,19 +1363,19 @@ namespace CStructSharp.Values public object? this[string name] { get; set; } public System.Collections.Generic.ICollection Keys { get; } public System.Collections.Generic.ICollection Values { get; } - public void Add(string name, object? value) { } + public void Add(string key, object? value) { } public void Clear() { } - public bool ContainsKey(string name) { } + public bool ContainsKey(string key) { } public T Get(string path) { } public CStructSharp.Values.StructValue.Enumerator GetEnumerator() { } public T GetOrDefault(string path, T fallback) { } - public bool Remove(string name) { } + public bool Remove(string key) { } public T ToMapped() where T : CStructSharp.ICStructMapped { } public override string ToString() { } public bool TryGet(string path, [System.Diagnostics.CodeAnalysis.MaybeNullWhen(false)] out T value) { } public bool TryGet(string path, [System.Diagnostics.CodeAnalysis.MaybeNullWhen(false)] out T value, out CStructSharp.Diagnostics.CStructException? failure) { } - public bool TryGetValue(string name, out object? value) { } + public bool TryGetValue(string key, out object? value) { } public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable { public System.Collections.Generic.KeyValuePair Current { get; } diff --git a/contracts/api/managed/manifest.json b/contracts/api/managed/manifest.json index 58cf313e..000d9905 100644 --- a/contracts/api/managed/manifest.json +++ b/contracts/api/managed/manifest.json @@ -1,8 +1,8 @@ { "schemaVersion": 1, "baselineId": "managed", - "baselineRevision": 74, - "packageVersion": "0.17.0", + "baselineRevision": 75, + "packageVersion": "0.18.0", "assembly": "CStructSharp.dll", "exportedTypes": 123, "generator": { @@ -13,21 +13,21 @@ "canonical": { "path": "contracts/api/managed/CStructSharp.public-api.txt", "lines": 1413, - "normalizedSha256": "6B6A8400AC0DB6BB2007194B1D0476CD1B4785248827013FF10C7FF4AD0E8188" + "normalizedSha256": "C334414B441F5637211CEED1915C04CB8EB0564C0345F1B5185253E9119A5461" }, "frameworks": [ { "tfm": "net8.0", "targetFramework": ".NETCoreApp,Version=v8.0", "frameworkDisplayName": ".NET 8.0", - "normalizedSha256": "A4374F093979B3050482FA9D51E6348212D8C442DF733C8EB13DE8D77B6D0264", + "normalizedSha256": "49064DC87A53B52E0FAF9344CBCA55DDE26A9725D2983B5C7F8466BE357B75D9", "aotCompatible": false }, { "tfm": "net10.0", "targetFramework": ".NETCoreApp,Version=v10.0", "frameworkDisplayName": ".NET 10.0", - "normalizedSha256": "FDDA57B35D95312A8D44E2EE78A6E92E4AAB10A58B55755716773150CA5E98CF", + "normalizedSha256": "A45655BD92BBA4C5D1A93A8FE0077C91CC7C89EF94EE6E77C0BAFCAFF6ED413A", "aotCompatible": true } ], @@ -472,12 +472,18 @@ }, { "revision": 74, - "kind": "additive", "date": "2026-10-28", "packageVersion": "0.17.0", - "combinedSha256": "338C96526AE37ACD8F088E5CA384158B1159D7D41BA968437F3F1409CC80CB26", - "rationale": "Prepared recognition and bounded validity-aware discovery mechanisms", - "releaseImpact": "Existing calls retain behavior; clients may opt into prepared matching, raw bytes, sparse scans, selected capture, dynamic provenance and streaming graphs" + "combinedSha256": "338C96526AE37ACD8F088E5CA384158B1159D7D41BA968437F3F1409CC80CB26" + }, + { + "revision": 75, + "kind": "breaking", + "date": "2026-11-16", + "packageVersion": "0.18.0", + "combinedSha256": "5B21A03B4C63AB91716225141B90F2F074DFC76CC177D594FAFF53DEC3CC35FF", + "rationale": "StyleCop.Analyzers 1.3 enforces SA1315: StructValue's IDictionary/IReadOnlyDictionary implementations now use the inherited parameter name key, matching UnionValue.", + "releaseImpact": "Callers that pass these StructValue arguments by name (name:) must use key: instead; positional calls are unaffected." } ] } diff --git a/contracts/quality/mutation-equivalents.json b/contracts/quality/mutation-equivalents.json index f7368da1..0104299f 100644 --- a/contracts/quality/mutation-equivalents.json +++ b/contracts/quality/mutation-equivalents.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "strykerVersion": "5.0.0", + "strykerVersion": "5.1.0", "files": [ { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.cs", @@ -19,7 +19,7 @@ }, { "pattern": "CStructValueReader.cs", - "sourceSha256": "38de28a40256f833acee8de1f1193308444aacb83af40a9a2c7a0261f01695cb", + "sourceSha256": "7b7f68b6147ef4a70a99411925aaf71b04bb79fbc492024bcbbf0df188249358", "mutants": [ { "mutatorName": "Linq method mutation (Single() to SingleOrDefault())", "replacement": "values.Values.SingleOrDefault", "location": {"start":{"line":36,"column":20},"end":{"line":36,"column":40}}, @@ -58,7 +58,7 @@ }, { "pattern": "CStructPrimitiveCodecs.cs", - "sourceSha256": "4909575204c48d82f8df443ca962323cbf97a20d0576724e24c232edc18e86a0", + "sourceSha256": "835f278c89b235ea776e894ade9f1499b51b0bfae775756d1d1bd330ec2e3872", "mutants": [ { "mutatorName": "Statement mutation", "replacement": ";", "location": {"start":{"line":67,"column":13},"end":{"line":67,"column":132}}, @@ -154,7 +154,7 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.Paths.cs", - "sourceSha256": "ce79c7bb10786a6c6c7c9f16e9f7cb0d7bd9967b6728dbd61e8ff4c801f32675", + "sourceSha256": "390c9d4f38068171d8eb26e89cff8235ca2a5c1190927cf80b97085e0f25e472", "mutants": [ { "mutatorName": "Statement mutation", "replacement": ";", "location": {"start":{"line":131,"column":9},"end":{"line":131,"column":91}}, @@ -169,79 +169,79 @@ }, { "pattern": "Streams/SparseUpdateStream.cs", - "sourceSha256": "3baf0ee72a815f7e4278ab3c28a510f6a26016054d7e093c095ca9f89284efb9", + "sourceSha256": "96bfd3a1707e8f4b0abe1e6e23d1d4183a0c16a0dde6c0d7e290328ef6ff8c78", "mutants": [ { "mutatorName": "Logical mutation", "replacement": "disposing || !this.disposed", - "location": {"start":{"line":315,"column":13},"end":{"line":315,"column":40}}, + "location": {"start":{"line":319,"column":13},"end":{"line":319,"column":40}}, "reason": "This sealed internal stream has no finalizer. Its only production owner is UpdateStreamCore's local using declaration; the instance does not escape, so disposal always requests managed cleanup and no operation writes after disposal. The first Dispose(true) enters the same body. On completion chunks is null or empty and rangeBytes is null; a repeated Dispose(true) can only clear an already empty map and assign the same flag, with no rental returns or baseline calls. If cleanup throws, both versions still have disposed=false and retry identically. Dispose(false) cannot be invoked by a subclass or finalizer. This changes no supported lifetime or resource ownership; the individual returns and clearing remain required." }, { "mutatorName": "Boolean mutation", "replacement": "false", - "location": {"start":{"line":334,"column":29},"end":{"line":334,"column":33}}, + "location": {"start":{"line":338,"column":29},"end":{"line":338,"column":33}}, "reason": "The private disposed flag is read only by this cleanup guard, not by reads, writes or commits. The sealed internal stream is confined to UpdateStreamCore's using lifetime and never written after disposal. The original first cleanup still returns every rental, clears chunks and nulls rangeBytes before this assignment. Leaving the flag false merely allows a repeated cleanup to visit an empty map and null range; no resource can be returned twice and no baseline operation is added. A throwing cleanup reaches neither assignment in either version. This proof does not permit removing any actual rental return or metadata clearing." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":338,"column":9},"end":{"line":338,"column":33}}, + "location": {"start":{"line":342,"column":9},"end":{"line":342,"column":33}}, "reason": "SparseUpdateStream directly inherits System.IO.Stream. Stream.Dispose(bool) has an empty body on both supported runtimes (dotnet/runtime tags v8.0.0 and v10.0.0, src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs). This base-qualified call cannot dispatch to a caller override or dispose the baseline. Removing it leaves all actual cleanup in the preceding derived body intact, including pooled returns, clearing, range reset and the disposed flag. Stream.Close still calls the derived Dispose(true) and suppresses finalization. This proof does not qualify removal of any derived cleanup operation." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":392,"column":25},"end":{"line":392,"column":46}}, + "location": {"start":{"line":396,"column":25},"end":{"line":396,"column":46}}, "reason": "This Dispose call targets only an exact private new MemoryStream(length) scratch wrapper, not the baseline, destination or a pooled page. CreateStagedRange exposes its backing byte array, which remains valid after MemoryStream disposal; the wrapper itself never escapes. After this call the wrapper is either overwritten by the next scratch stream or the iterator ends, without another read/write through that wrapper. MemoryStream owns no external handle and disposal neither returns a pooled buffer nor releases its backing array. Omitting this exact call changes no emitted bytes, stream I/O, buffer ownership or managed backing-array lifetime. The real pooled-page and contiguous-rental returns remain required." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":407,"column":13},"end":{"line":407,"column":34}}, + "location": {"start":{"line":411,"column":13},"end":{"line":411,"column":34}}, "reason": "This Dispose call targets only an exact private new MemoryStream(length) scratch wrapper, not the baseline, destination or a pooled page. CreateStagedRange exposes its backing byte array, which remains valid after MemoryStream disposal; the wrapper itself never escapes. After this call the wrapper is either overwritten by the next scratch stream or the iterator ends, without another read/write through that wrapper. MemoryStream owns no external handle and disposal neither returns a pooled buffer nor releases its backing array. Omitting this exact call changes no emitted bytes, stream I/O, buffer ownership or managed backing-array lifetime. The real pooled-page and contiguous-rental returns remain required." }, { "mutatorName": "Block removal mutation", "replacement": "{}", - "location": {"start":{"line":359,"column":9},"end":{"line":361,"column":10}}, + "location": {"start":{"line":363,"column":9},"end":{"line":365,"column":10}}, "reason": "TryGetPosition returns nullable Int64. If Position throws, the original catch returns null. Removing its body still catches that exception, and Stryker 5.0.0's EndingReturnEngine appends default(long?), also null. The caller therefore retains the same attempted-offset fallback and original commit failure. Tool implementation: https://github.com/stryker-mutator/stryker-net/blob/6e77a3451bac4793e9c839c3ff4055c1b30ca3af/src/Stryker.Core/Stryker.Core/Instrumentation/EndingReturnEngine.cs." }, { "mutatorName": "Equality mutation", "replacement": "this.rangeLength >= 0", - "location": {"start":{"line":415,"column":17},"end":{"line":415,"column":37}}, + "location": {"start":{"line":419,"column":17},"end":{"line":419,"column":37}}, "reason": "Only the empty-range case is newly admitted by rangeLength >= 0. The unchanged following bounds require address >= rangeStart and address < rangeStart + 0 simultaneously, which is impossible. The body never indexes the null buffer; the same false result and zero out value follow. Nonempty ranges behave identically." }, { "mutatorName": "CoalesceAssignmentExpression to SimpleAssignmentExpression mutation", "replacement": "this.rangeBytes = this.pool.Rent(Math.Max(source.Length, 64))", - "location": {"start":{"line":449,"column":13},"end":{"line":449,"column":76}}, + "location": {"start":{"line":453,"column":13},"end":{"line":453,"column":76}}, "reason": "TryStageInRange is called only while chunks is null. Before its first successful write rangeLength is zero and rangeBytes is null, so assignment and null-coalescing assignment rent the same buffer. Subsequent contiguous writes have positive rangeLength; promotion sets chunks non-null and this helper is never called again. Public updates own this internal staging stream in one using scope and never write after disposal. No supported operation reaches this line with an existing range buffer." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":452,"column":17},"end":{"line":452,"column":69}}, + "location": {"start":{"line":456,"column":17},"end":{"line":456,"column":69}}, "reason": "On every supported entry to this initial-range branch, rangeBytes is null and the preceding Rent requests at least source.Length. The ArrayPool contract guarantees at least that capacity. Its Length < source.Length branch therefore cannot execute; removing this unreachable return does not lose a rental. This does not qualify any return on the reachable contiguous-growth or promotion paths." }, { "mutatorName": "Boolean mutation", "replacement": "false", - "location": {"start":{"line":452,"column":63},"end":{"line":452,"column":67}}, + "location": {"start":{"line":456,"column":63},"end":{"line":456,"column":67}}, "reason": "The initial-range branch rents at least source.Length when rangeBytes is null. This is the only supported pre-write state with zero rangeLength and no chunks: later writes are positive-length or use the chunk map. ArrayPool guarantees at least the requested capacity, so the smaller-buffer branch cannot execute and changing its unreachable clearArray argument has no effect." }, { "mutatorName": "Equality mutation", "replacement": "this.rangeLength >= 0", - "location": {"start":{"line":487,"column":13},"end":{"line":487,"column":33}}, + "location": {"start":{"line":491,"column":13},"end":{"line":491,"column":33}}, "reason": "PromoteRangeToChunks is called only after TryStageInRange returns false. That helper always handles rangeLength == 0 and returns true; only a gap outside an existing positive-length range returns false. Thus promotion always sees rangeLength > 0. Replacing > with >= leaves its copy, return and reset operations unchanged." }, { "mutatorName": "Equality mutation", "replacement": "offset <= this.maximumWrittenExclusive", - "location": {"start":{"line":556,"column":20},"end":{"line":556,"column":57}}, + "location": {"start":{"line":560,"column":20},"end":{"line":560,"column":57}}, "reason": "The bitmap's maximumWrittenExclusive is one past its last written byte. After the last emitted run offset equals that bound. Changing the outer loop to <= enters one extra iteration, but the unchanged inner loop short-circuits and the following equality immediately yields break. It emits no extra range and performs no bitmap lookup or I/O." }, { "mutatorName": "Equality mutation", "replacement": "offset <= this.maximumWrittenExclusive", - "location": {"start":{"line":558,"column":24},"end":{"line":558,"column":61}}, + "location": {"start":{"line":562,"column":24},"end":{"line":562,"column":61}}, "reason": "The unchanged outer loop starts this gap scan strictly below maximumWrittenExclusive. Every chunk is populated by a nonempty Write, which sets the bit at maximumWrittenExclusive - 1. The gap scan therefore encounters a written byte before reaching the exclusive bound. Changing only its < comparison to <= never evaluates IsWritten at the bound and yields identical runs." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":565,"column":21},"end":{"line":565,"column":33}}, + "location": {"start":{"line":569,"column":21},"end":{"line":569,"column":33}}, "reason": "Within the unchanged outer loop offset starts below maximumWrittenExclusive. The gap scan cannot pass the last written byte at maximumWrittenExclusive - 1, because Write sets that bit whenever it extends the maximum. Thus offset == maximumWrittenExclusive is false at this point on every reachable iteration; removing this defensive yield break changes no run or I/O." }, { "mutatorName": "Equality mutation", "replacement": "this.position > this.baselineLength", - "location": {"start":{"line":152,"column":31},"end":{"line":152,"column":67}}, + "location": {"start":{"line":156,"column":31},"end":{"line":156,"column":67}}, "reason": "Changing >= to > differs only when position equals the captured baselineLength. At that exact boundary Read computes available = Math.Min(buffer.Length, baselineLength - position) = 0, never enters its loop, adds zero to position and returns zero. Empty buffers also return zero. No baseline query or read occurs on either path." }, { "mutatorName": "Logical mutation", "replacement": "!bytes.TryGetBuffer(out ArraySegment segment) && segment.Array is null", - "location": {"start":{"line":366,"column":13},"end":{"line":366,"column":89}}, + "location": {"start":{"line":370,"column":13},"end":{"line":370,"column":89}}, "reason": "CreateStagedRange is private and receives only the exact MemoryStream instances constructed with new MemoryStream(length) in GetStagedRanges. These expandable streams expose their managed backing arrays, including the non-null empty array. TryGetBuffer therefore returns true with a non-null Array on every reachable call. Replacing OR with AND leaves the defensive branch unentered." }, { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":368,"column":13},"end":{"line":368,"column":108}}, + "location": {"start":{"line":372,"column":13},"end":{"line":372,"column":108}}, "reason": "CreateStagedRange receives only private new MemoryStream(length) instances from GetStagedRanges. Their backing arrays are publicly exposable and non-null, so the defensive hidden-buffer throw is unreachable. No caller-owned stream or subclass reaches this helper." }, { "mutatorName": "String mutation", "replacement": "\"\"", - "location": {"start":{"line":368,"column":49},"end":{"line":368,"column":106}}, + "location": {"start":{"line":372,"column":49},"end":{"line":372,"column":106}}, "reason": "The hidden-buffer diagnostic belongs to an unreachable branch: GetStagedRanges constructs every input with new MemoryStream(length), which exposes its non-null backing array. Changing only that defensive message cannot affect an emitted StagedRange or a caller-visible failure." }, { "mutatorName": "Remove checked expression", "replacement": "(int)bytes.Length", - "location": {"start":{"line":371,"column":54},"end":{"line":371,"column":80}}, + "location": {"start":{"line":375,"column":54},"end":{"line":375,"column":80}}, "reason": "The input is an owned, expandable MemoryStream created in GetStagedRanges, never a caller subclass. Its length is bounded by its single managed array and Int32 capacity; a write beyond that supported capacity fails before CreateStagedRange. Converting its successfully constructed Length to int cannot overflow." }, { "mutatorName": "UnaryMinusExpression to UnaryPlusExpression mutation", "replacement": "+1", - "location": {"start":{"line":377,"column":27},"end":{"line":377,"column":29}}, + "location": {"start":{"line":381,"column":27},"end":{"line":381,"column":29}}, "reason": "The initial rangeStart sentinel is never emitted. On the first written run rangeBytes is null, so the branch assigns rangeStart = start before creating the first stream. Every subsequent replacement also assigns the start before creating that stream; with no runs the final emission is skipped. Initializing the sentinel to +1 instead of -1 is unobservable." }, { "mutatorName": "UnaryMinusExpression to UnaryPlusExpression mutation", "replacement": "+1", - "location": {"start":{"line":378,"column":32},"end":{"line":378,"column":34}}, + "location": {"start":{"line":382,"column":32},"end":{"line":382,"column":34}}, "reason": "The initial expectedAddress is ignored because rangeBytes is null and the first operand of the branch short-circuits. The first run assigns expectedAddress = start + length before any later comparison. With no runs it is never read. Changing only its initial sentinel has no effect." }, { "mutatorName": "Remove checked expression", "replacement": "entry.Key * ChunkSize", - "location": {"start":{"line":383,"column":31},"end":{"line":383,"column":61}}, + "location": {"start":{"line":387,"column":31},"end":{"line":387,"column":61}}, "reason": "Chunk keys are created only by WriteToChunks as nonnegative address / 1024. Write validates position + buffer.Length with checked arithmetic and rejects ends beyond baselineLength before staging; promotion copies an already validated range. Therefore key * 1024 is no greater than an actual staged address and fits Int64. Removing checked from this multiplication cannot change behavior." }, { "mutatorName": "Remove checked expression", "replacement": "chunkStart + offset", - "location": {"start":{"line":386,"column":30},"end":{"line":386,"column":58}}, + "location": {"start":{"line":390,"column":30},"end":{"line":390,"column":58}}, "reason": "Each written run's offset identifies bytes previously copied by WriteToChunks, whose chunk key and offset come from one nonnegative extent-validated address. The sum chunkStart + offset recovers a staged address strictly below a successfully checked write end, so it cannot exceed Int64.MaxValue. Removing checked preserves values and failures." }, { "mutatorName": "Remove checked expression", "replacement": "start + length", - "location": {"start":{"line":400,"column":35},"end":{"line":400,"column":58}}, + "location": {"start":{"line":404,"column":35},"end":{"line":404,"column":58}}, "reason": "GetWrittenRuns returns only contiguous bytes marked by successful extent-validated writes. The exclusive end start + length is at most the greatest checked end of those writes, even when adjacent writes merge. Every write end is at most baselineLength and Int64.MaxValue. Removing checked from the recovered run end cannot overflow." } ] }, @@ -259,7 +259,7 @@ }, { "pattern": "CStructOperations.AsyncWrite.cs", - "sourceSha256": "d14fdeb31990cc3b59430f2d4565e5d5a29a8a0a68321f211271e39b047c24c5", + "sourceSha256": "82acce2f5248774598c0cac9eaa7952a551d96fd8456786a707b3fa798644371", "mutants": [ { "mutatorName": "Conditional (true) mutation", "replacement": "(true?(options ?? new UpdateOptions()) with { CancellationToken = token, } :options)", "location": {"start":{"line":95,"column":40},"end":{"line":95,"column":140}}, @@ -310,10 +310,10 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/CompiledField.cs", - "sourceSha256": "1809ee390dfb8e6d76e543f1f4319b3d8981d94bb9309ca80708e58a150d0b2b", + "sourceSha256": "6f6b4d4f5621f2b0c4527f63766d9319f598c1a852945179b60df3acead49ccd", "mutants": [ { "mutatorName": "Remove checked expression", "replacement": "elementSize * remainingCount", - "location": {"start":{"line":554,"column":43},"end":{"line":554,"column":80}}, + "location": {"start":{"line":562,"column":43},"end":{"line":562,"column":80}}, "reason": "This multiplication is reached only when peeling a multidimensional field with a known nonnegative element size. Multidimensional dimensions have dependency-free fixed counts; LayoutCompilation.Model and CompileSyntheticRootField already checked the complete count and element-size product when constructing such a field. All production SelectArrayElement callers are the read/address and write path resolvers, which first reject indices outside the current dimension. A reachable peeled dimension therefore has a positive outer count, so its remaining byte extent cannot exceed its already validated parent's extent. A zero outer count cannot be indexed; variable-sized elements skip this multiplication entirely. Repeated peeling preserves the bound, and pointer-target views are scalar. Removing only this checked wrapper cannot change a supported result; the separate checked total-count calculations remain required, including for arrays of variable-sized records." } ] }, @@ -334,7 +334,7 @@ }, { "pattern": "CStructOperations.Async.cs", - "sourceSha256": "5a0b99aa31c597bfea44afab9021c71ed8e67728a0e8caa032f92ca15767e55a", + "sourceSha256": "415fbc846072231c43c21b11ae9ac80c26d4a603021daf662a2c31ac8c9eb8ce", "mutants": [ { "mutatorName": "Conditional (false) mutation", "replacement": "(false?origin :origin + consumed)", "location": {"start":{"line":421,"column":31},"end":{"line":421,"column":73}}, @@ -367,7 +367,7 @@ }, { "pattern": "CStructWriter.cs", - "sourceSha256": "73728b92fecfb59f37cec397a6b5c72d24a5cec30b2624af446d6977f2348b72", + "sourceSha256": "45be0b13e24e4ea27ee6c2c68c5e77b42b47400f7e487667800f0002dc1d528e", "mutants": [ { "mutatorName": "Logical mutation", "replacement": "rootData is not null || !WriteDataBinding.IsMemberSource(rootData)", "location": {"start":{"line":340,"column":13},"end":{"line":340,"column":79}}, @@ -544,10 +544,10 @@ }, { "pattern": "Generated/ReadCursor.cs", - "sourceSha256": "abf43ddea8342d8c9b0daccfa473292827171a1b2280854520f14ecc0dbd5d66", + "sourceSha256": "b4694f8f67adabbe72cb61be90e0951670737de8dca9036da979283feeb4f7d1", "mutants": [ { "mutatorName": "Equality mutation", "replacement": "count < 0", - "location": {"start":{"line":228,"column":13},"end":{"line":228,"column":23}}, + "location": {"start":{"line":232,"column":13},"end":{"line":232,"column":23}}, "reason": "Only count zero newly reaches budget arithmetic. bytesRead starts at zero and only accepted charges update it, so it never exceeds the nonnegative fixed limit. Adding zero cannot overflow or fail the limit check and reassigns the same value; position is unchanged. Negative counts still return early." } ] }, @@ -577,7 +577,7 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.Model.cs", - "sourceSha256": "a2c129df997ea86b644feaa43ff98fcb35d62d267190ebe4af8fb3a425a13c53", + "sourceSha256": "1f22f1eb3ddaa6154d5773929b17b11627902e79c874007523c4fc3fe24be16b", "mutants": [ { "mutatorName": "Logical mutation", "replacement": "exception.SourceOffset < 0 || exception.Message.StartsWith(\"Unknown field type: \", StringComparison.Ordinal)", "location": {"start":{"line":322,"column":56},"end":{"line":322,"column":164}}, @@ -598,16 +598,16 @@ }, { "pattern": "Generated/WriteCursor.cs", - "sourceSha256": "7e65e43782528aeeb2d6a8b96d6fc2525a24a6259927c1576d80ae3fe974f882", + "sourceSha256": "032d28f99fc7db061d702df0281c06517877ff4e7f87f0a6d9c07791a0e353b6", "mutants": [ { "mutatorName": "Statement mutation", "replacement": ";", - "location": {"start":{"line":197,"column":13},"end":{"line":197,"column":20}}, + "location": {"start":{"line":201,"column":13},"end":{"line":201,"column":20}}, "reason": "A successful forward seek starts Reserve at the old length and reserves requested position minus that length, leaving position exactly equal to the requested position. Without the return, the following assignment writes that same value. A failing Reserve still throws before either path can continue." }, { "mutatorName": "Arithmetic mutation", "replacement": "Math.Min(int.MaxValue / 2, this.destination.Length) / 2", - "location": {"start":{"line":537,"column":43},"end":{"line":537,"column":98}}, + "location": {"start":{"line":541,"column":43},"end":{"line":541,"column":98}}, "reason": "Grow is called only when required exceeds the old destination length. Math.Max still makes the requested rental at least required after this mutation; copying the written prefix, clearing the remaining capacity and replacing/returning buffers are unchanged. Future reservations remain capacity-checked. Only the private spare-capacity policy and resulting allocation frequency change, not encoded bytes, positions, limits or buffer ownership." }, { "mutatorName": "Equality mutation", "replacement": "this.position >= this.length", - "location": {"start":{"line":163,"column":13},"end":{"line":163,"column":40}}, + "location": {"start":{"line":167,"column":13},"end":{"line":167,"column":40}}, "reason": "The only newly entered case is position equal to length. Its body only assigns length = position, leaving the same integer state. Both versions return the same reserved span and perform identical capacity and budget checks." } ] }, @@ -676,7 +676,7 @@ }, { "pattern": "**/CStructSharp.Core/Parsing/LayoutParser.Declarations.cs", - "sourceSha256": "a12e992ffb3fccb9485eed5523d6d4bc4d2d3b612d7aa28070023a2e64a3bb0d", + "sourceSha256": "09410a8ad9d02e14531754de78a120ce08fbd0d840daeb84c42eeb22c9b2e732", "mutants": [ { "mutatorName": "Conditional (true) mutation", "replacement": "(true?\"flag\" :\"enum\")", "location": {"start":{"line":192,"column":26},"end":{"line":192,"column":50}}, @@ -697,7 +697,7 @@ }, { "pattern": "**/CStructSharp.Core/Parsing/LayoutParser.Expressions.cs", - "sourceSha256": "cdd08084af0e22deb36eddbd107d1186c855287033d6d3e7e704819d32a47a75", + "sourceSha256": "2824c93446fcb0e3641e1e27b34a70c83983920f51e426bea86e8d44f88f92bd", "mutants": [ { "mutatorName": "Equality mutation", "replacement": "length >= 0", "location": {"start":{"line":122,"column":16},"end":{"line":122,"column":26}}, @@ -706,7 +706,7 @@ }, { "pattern": "**/CStructSharp.Core/Parsing/LayoutParser.Members.cs", - "sourceSha256": "e480d3c95ae3d1b2abe1c772dbb56aed5d2e0224f76c7e3fa7c24c961bf675b5", + "sourceSha256": "a1af9f1a5073961e325e53c77b13c559d2f36e89611cb722b155764aa58fd829", "mutants": [ { "mutatorName": "Boolean mutation", "replacement": "true", "location": {"start":{"line":398,"column":20},"end":{"line":398,"column":25}}, @@ -727,7 +727,7 @@ }, { "pattern": "**/CStructSharp.Core/Parsing/LayoutParser.Preprocessor.cs", - "sourceSha256": "9c6a8434cc7ad521fc7c1c1d17369dd3e6393ba3d46592c0b8f8dc5736853747", + "sourceSha256": "bbec3b1c1b9063e93b52e131a16d540e63c3de68dd22ad5c1028950dbbb20c9c", "mutants": [ { "mutatorName": "Statement mutation", "replacement": ";", "location": {"start":{"line":200,"column":13},"end":{"line":200,"column":37}}, @@ -754,7 +754,7 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.Capture.cs", - "sourceSha256": "433c74b40bf627acc41e53ecf4b469e49c77c6b77c64616c94eedca7d992183d", + "sourceSha256": "af428122cb781a54282aba46373a25bda140efd4856d333acf626f39a5563af5", "mutants": [ { "mutatorName": "Statement mutation", "replacement": ";", "location": {"start":{"line":118,"column":9},"end":{"line":118,"column":77}}, @@ -784,7 +784,7 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.Composites.cs", - "sourceSha256": "bfdcb86aa287abddfe1c57ef3e3d99e287432097e9e70e2d8f103e90990d5a50", + "sourceSha256": "a2d92b006cdc790e72a25dd7897230515421e20fc1a0e49eae693634cfc43737", "mutants": [ { "mutatorName": "Remove checked expression", "replacement": "field.PointerDepth + type.PointerDepth", "location": {"start":{"line":315,"column":36},"end":{"line":315,"column":83}}, @@ -805,7 +805,7 @@ }, { "pattern": "**/CStructSharp.Core/Compilation/LayoutCompilation.Normalization.cs", - "sourceSha256": "a91e2a5eb80c7ab17e922358cd7565e2ce52a5496dccdb527d23b81b76c495f5", + "sourceSha256": "9b266bbdd93037559e2f425bc6f0d6fec7e64efbfda823a3c2d80b70f539143e", "mutants": [ { "mutatorName": "Equality mutation", "replacement": "remainingDeclarations-- >= 0", "location": {"start":{"line":181,"column":16},"end":{"line":181,"column":43}}, @@ -825,8 +825,8 @@ { "mutatorName": "Statement mutation", "replacement": ";", "location": {"start":{"line":369,"column":17},"end":{"line":369,"column":61}}, "reason": "RejectNonIntegerConstants is the immediate next call, and its first operation is expressionEvaluator.GetDependencies(dimension). That method obtains the same GetProgram used by Compile, so compilation and all syntax-tree limits still run before constant validation or evaluation, with no intervening state change. The same cached program, dependencies and exceptions result. This removes only a redundant cache warm-up, not dimension validation." }, - { "mutatorName": "Conditional (false) mutation", "replacement": "(false?Array.Empty() :field.BranchConditions.Select(item =>\n new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray())", - "location": {"start":{"line":431,"column":40},"end":{"line":432,"column":145}}, + { "mutatorName": "Conditional (false) mutation", "replacement": "(false?Array.Empty()\n:field.BranchConditions.Select(item =>\n new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray())", + "location": {"start":{"line":431,"column":40},"end":{"line":434,"column":149}}, "reason": "Only the empty branch list changes arms. Selecting and materializing an empty list produces another empty branch array without invoking the projection, so NormalizeConditionalGroup is not called and a null normalizedGroups value is never accessed. All consumers inspect branch contents/counts, not array reference identity. Nonempty lists execute the identical projection in both versions. No condition, selector, arm or field visibility changes." } ] }, @@ -916,7 +916,7 @@ }, { "pattern": "Generated/ReadCursor.Arrays.cs", - "sourceSha256": "b3421dc5908fc1a650c68c81dee07d33b0ed5f330c817c6e12f18f87e8df291e", + "sourceSha256": "5c7f92d2f6028fa56bb022de1d29f1f84330fede5f42c7c34231edd64b11afbe", "mutants": [ { "mutatorName": "Equality mutation", "replacement": "count < 0", "location": {"start":{"line":90,"column":13},"end":{"line":90,"column":23}}, @@ -925,7 +925,7 @@ }, { "pattern": "Generated/ReadCursor.Failures.cs", - "sourceSha256": "6b1498732813b3fed4222ef1b579256c6a8c24f5a5c4ac45857e782e8e195639", + "sourceSha256": "da5f7dc846eed507fb22be34a40e4f94ab28a5b79e0471440314c09daa908bcf", "mutants": [ { "mutatorName": "Conditional (false) mutation", "replacement": "(false?new CStructReadException(message) :new CStructReadException(message, cause))", "location": {"start":{"line":214,"column":25},"end":{"line":214,"column":117}}, @@ -934,7 +934,7 @@ }, { "pattern": "Generated/ReadCursor.Nesting.cs", - "sourceSha256": "d1a749214bb888f4a4f3dc0b2e01969825c8fd3ed9b732661d22eba313495b4d", + "sourceSha256": "8346f4f6acb2b6485680a0bf51437bbaf842e104b40a24d80b4273276e0f8a13", "mutants": [ { "mutatorName": "Equality mutation", "replacement": ">= 0", "location": {"start":{"line":128,"column":48},"end":{"line":128,"column":51}}, @@ -943,7 +943,7 @@ }, { "pattern": "Generated/ReadCursor.Text.cs", - "sourceSha256": "ef815c190b782849ff14632da82ddf3e85ac078824281485416fd6adce695eb6", + "sourceSha256": "67793973fa970c2fbf7717b9cef3d3f1e287f459ebb303df81c7800407f223c0", "mutants": [ { "mutatorName": "Arithmetic mutation", "replacement": "unitSize + (encodedByteCount % unitSize)", "location": {"start":{"line":176,"column":42},"end":{"line":176,"column":82}}, @@ -958,7 +958,7 @@ }, { "pattern": "Codecs/PrimitiveCodecs.IO.cs", - "sourceSha256": "3048cf11cbc4bac7338e9430006a23f7c4f1685d04c9bd069dc1634e778e73a1", + "sourceSha256": "6373f028b55df088a2b9b9b53a77c4110fafed111c41dc80548a9e79fb937b0d", "mutants": [ { "mutatorName": "Remove checked expression", "replacement": "(long)valueBytes + terminatorBytes", "location": {"start":{"line":384,"column":37},"end":{"line":384,"column":80}}, diff --git a/contracts/quality/mutation-non-mutable.json b/contracts/quality/mutation-non-mutable.json index 20e102a3..3622b46f 100644 --- a/contracts/quality/mutation-non-mutable.json +++ b/contracts/quality/mutation-non-mutable.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "strykerVersion": "5.0.0", + "strykerVersion": "5.1.0", "declarations": [ { "pattern": "Values/ReadAttempt.cs", diff --git a/docs/package-lock.json b/docs/package-lock.json index 0e35dc01..4af8b8e2 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -9,9 +9,9 @@ "version": "0.0.0", "devDependencies": { "@axe-core/playwright": "4.14.0", - "@playwright/test": "1.64.1", - "cspell": "10.4.0", - "markdownlint-cli2": "0.24.0" + "@playwright/test": "1.65.1", + "cspell": "10.5.1", + "markdownlint-cli2": "0.24.1" }, "engines": { "node": ">=24 <27" @@ -34,9 +34,9 @@ } }, "node_modules/@cspell/cspell-bundled-dicts": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-10.4.0.tgz", - "integrity": "sha512-ey23dut7NdnOsQQinQhROFZUh4LvLhJnnZCiq7y+KXMngdqXnIAZuEnnwXk3IfdOX+tycDC8OuMssLXDJ3Fnxw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-10.5.1.tgz", + "integrity": "sha512-ydZ8qwJDW4KvU0EsGKUG+gSVYNyKinTV6PfL8JBzC05cjPLiYeZQzyTyMN60QpUahFmw8XdMYVt7A4mLnJBY2w==", "dev": true, "license": "MIT", "dependencies": { @@ -44,20 +44,20 @@ "@cspell/dict-al": "^1.1.1", "@cspell/dict-aws": "^4.0.17", "@cspell/dict-bash": "^4.2.3", - "@cspell/dict-companies": "^3.2.13", - "@cspell/dict-cpp": "^7.1.3", + "@cspell/dict-companies": "^3.2.14", + "@cspell/dict-cpp": "^7.2.0", "@cspell/dict-cryptocurrencies": "^5.0.5", "@cspell/dict-csharp": "^4.0.8", "@cspell/dict-css": "^4.1.2", "@cspell/dict-dart": "^2.3.2", - "@cspell/dict-data-science": "^2.0.16", + "@cspell/dict-data-science": "^2.0.17", "@cspell/dict-django": "^4.1.7", "@cspell/dict-docker": "^1.1.17", "@cspell/dict-dotnet": "^5.0.15", "@cspell/dict-elixir": "^4.0.8", - "@cspell/dict-en_us": "^4.4.41", - "@cspell/dict-en-common-misspellings": "^2.2.5", - "@cspell/dict-en-gb-mit": "^3.1.30", + "@cspell/dict-en_us": "^4.4.43", + "@cspell/dict-en-common-misspellings": "^2.2.6", + "@cspell/dict-en-gb-mit": "^3.1.32", "@cspell/dict-filetypes": "^3.0.18", "@cspell/dict-flutter": "^1.1.1", "@cspell/dict-fonts": "^4.0.6", @@ -81,17 +81,17 @@ "@cspell/dict-markdown": "^2.0.18", "@cspell/dict-monkeyc": "^1.1.2", "@cspell/dict-node": "^5.0.9", - "@cspell/dict-npm": "^5.2.54", + "@cspell/dict-npm": "^5.2.56", "@cspell/dict-php": "^4.1.3", "@cspell/dict-powershell": "^5.0.17", "@cspell/dict-public-licenses": "^2.0.17", - "@cspell/dict-python": "^4.5.2", + "@cspell/dict-python": "^4.5.3", "@cspell/dict-r": "^2.1.1", "@cspell/dict-ruby": "^5.1.4", "@cspell/dict-rust": "^4.1.2", "@cspell/dict-scala": "^5.0.11", "@cspell/dict-shell": "^1.2.0", - "@cspell/dict-software-terms": "^5.4.8", + "@cspell/dict-software-terms": "^5.4.9", "@cspell/dict-sql": "^2.2.1", "@cspell/dict-svelte": "^1.0.7", "@cspell/dict-swift": "^2.0.6", @@ -105,22 +105,22 @@ } }, "node_modules/@cspell/cspell-json-reporter": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-10.4.0.tgz", - "integrity": "sha512-P4v7z0QbOaM7UiKvhws+/Vn5XSEtJLv9DyJCvPXoAn5it4U76hme646DvM/ChMlSG23BnrYGuryqufdxqQPuZQ==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-10.5.1.tgz", + "integrity": "sha512-ILox4CPt8aHbxYhys8ULSKJzBonCN5c+JC+6Hp6lOOJn0O1XI90XMRQlTYRNzrltIBUBsvxo8EVslKcC6n0c/w==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-types": "10.4.0" + "@cspell/cspell-types": "10.5.1" }, "engines": { "node": ">=22.18.0" } }, "node_modules/@cspell/cspell-performance-monitor": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-performance-monitor/-/cspell-performance-monitor-10.4.0.tgz", - "integrity": "sha512-0hCqI8pR0waFKKOR3SZ4VtWddx7HZTr0v7MPCPG0IpaqMzzaibrXn9AtFCe+9T1+UDQrM109YKS+yr0c6xVvMQ==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-performance-monitor/-/cspell-performance-monitor-10.5.1.tgz", + "integrity": "sha512-4ddFvBuvHtgiAm21KcCKGr3vfy7ux77easo+NXnkFo9/jDxgDdpejaR4/uKI2yZzRrZQRyq2wZ51EmICu3/v+g==", "dev": true, "license": "MIT", "engines": { @@ -128,9 +128,9 @@ } }, "node_modules/@cspell/cspell-pipe": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-10.4.0.tgz", - "integrity": "sha512-cXHgST9ySpECyiE5ZK7TcwBqrCb3h9X49j/lSDcWNAVp7GkwnPfcdylH+Zq/VfYMlHad24z8CNXd5H91O9DhEA==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-10.5.1.tgz", + "integrity": "sha512-WW6dXr/GooCnCNC4eyIEJRoqSOvaavv7gxBjpUe6RXMKY+Kz9By1H9GhGz5ZmYgOsHCT4Iq6ba3AM/a6S0/Avw==", "dev": true, "license": "MIT", "engines": { @@ -138,9 +138,9 @@ } }, "node_modules/@cspell/cspell-resolver": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-10.4.0.tgz", - "integrity": "sha512-uyI9qX8hagtcFtRTElYGXXyVhhnVxPBSf1Ltds9AlU9cktPOFYeTXQOfBR+Dpt9dCruzX29ZJbd3hR1i5yryZg==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-10.5.1.tgz", + "integrity": "sha512-gW89eP7HbBWo9CVTBkYjwsOUsIkt1QIJbjoFbKIiz4xJKfalNXEyOMdTrDB9AGVyTEylY/Us1fFfPpWv8nfRsQ==", "dev": true, "license": "MIT", "dependencies": { @@ -151,9 +151,9 @@ } }, "node_modules/@cspell/cspell-service-bus": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-10.4.0.tgz", - "integrity": "sha512-IZzx+EWADkN5xbFrW+VS+JQ52+w5tWaZNxDgGa+0Mv79hks6wNa2Vcnce+9vGcBJYgA24VcuAfekI38tYzcDtw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-10.5.1.tgz", + "integrity": "sha512-D99QG/KiW0gwW8z6dK1V1YvR7zY6+tBuZ69UEYJzgKy36KTwq71ZeWdxl1qwZPQRvQy9B+uObHQmU/KZFtXt9A==", "dev": true, "license": "MIT", "engines": { @@ -161,9 +161,9 @@ } }, "node_modules/@cspell/cspell-types": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-10.4.0.tgz", - "integrity": "sha512-LTOrZcDSHj5BkeNSvimuV3AMF7gWjxzXUdQ7zYT/h/57/5flHuE6NPKSXS69ty8vJM0WrVh35L5aDxnCPfDzXA==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-10.5.1.tgz", + "integrity": "sha512-Kz1w5YZysZNtDwp67kmPftI7Od2ZQMVbZerjnzPLVyWDsSg8KNImLYCMF+/va08WHq1wVi3tvedP0vb/LuZHkA==", "dev": true, "license": "MIT", "engines": { @@ -171,13 +171,13 @@ } }, "node_modules/@cspell/cspell-worker": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-worker/-/cspell-worker-10.4.0.tgz", - "integrity": "sha512-3Y1+nF1Wyyh4kwlpooNhfGSbYXK4LIYLa5xOusig2X/LmCznfN2g5wIqh8K2zSDsmjrm9PLq11MUDDXJ4ZjMKw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/cspell-worker/-/cspell-worker-10.5.1.tgz", + "integrity": "sha512-UEiZO8Jc+gzU9uv+HyqEZApoqbz5suwCetApjWuZlKutiKZitlm2d6wu7L5R8drQaTFlR19R3vyUWzU2qXdflA==", "dev": true, "license": "MIT", "dependencies": { - "cspell-lib": "10.4.0" + "cspell-lib": "10.5.1" }, "engines": { "node": ">=22.18.0" @@ -215,16 +215,16 @@ } }, "node_modules/@cspell/dict-companies": { - "version": "3.2.13", - "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.2.13.tgz", - "integrity": "sha512-mBJeYzCkiiWgNQxKg7zyQOpFPwcXO4IAzXGbOEFfcQ4Q0G5Fa7Kqd8z+gvnvSK7NPWKJaFmiApC6I0cka02qmQ==", + "version": "3.2.14", + "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.2.14.tgz", + "integrity": "sha512-3EeCXEjd6ocbKNEHsPHViHJrDduJsVo9ixr0EMrzUO6OVCXlLSCLosDUzeANQidu/u6WA1ln63uRJ9fAGAKHzw==", "dev": true, "license": "MIT" }, "node_modules/@cspell/dict-cpp": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-cpp/-/dict-cpp-7.1.3.tgz", - "integrity": "sha512-2d2MSh+C+xzzdqjLwtt40TdXWDR/pK0q1Q9L5zC+1EPSCIZxlN7CHbhlXWpl0JqUSdy2xaWaWucwnoGznMTneA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@cspell/dict-cpp/-/dict-cpp-7.2.0.tgz", + "integrity": "sha512-hxz+OyQKV96/Bk2JYGsDuSOheYA5gd8KybXnoZMMu/mhZPnwhPi+qiS0Kjc0gLNbXjJ6wbBuXIQWi1UWpQBU/g==", "dev": true, "license": "MIT" }, @@ -257,9 +257,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-data-science": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-2.0.16.tgz", - "integrity": "sha512-M72mxv5asuAnORurz4iXRJ+Tw9XBq6eu7D2Ne7biP0Z1RciKGNxXWu9JycA/KlVvK1hAlKj/fANlXhuEWpXKFg==", + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-2.0.17.tgz", + "integrity": "sha512-6KuM1tXc1PROGu2VJjRMIkFI3lf/1c3ReFqbjV148m5w8SwNVej4Jp6nJa2f64xyaR5Z+LSRTr5RvDDJVovP8A==", "dev": true, "license": "MIT" }, @@ -292,23 +292,23 @@ "license": "MIT" }, "node_modules/@cspell/dict-en_us": { - "version": "4.4.41", - "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.41.tgz", - "integrity": "sha512-PsfGqN/dSSPpaSl1vKaPI4DHAmgbFITON398YUEvoduDM1mWXnDOL+qBQ/ZjpWs5+aaShPq5c1vpJg8fuQFOQw==", + "version": "4.4.43", + "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.43.tgz", + "integrity": "sha512-RK0zfFXSPi0G/zmV9YgUhS2xw9eTV/8DtQ+ouLIiRZ8ejWRt2zhAonu5di+qmIhzhQ62fg7d3tMz3WwRy82yJA==", "dev": true, "license": "MIT" }, "node_modules/@cspell/dict-en-common-misspellings": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-en-common-misspellings/-/dict-en-common-misspellings-2.2.5.tgz", - "integrity": "sha512-c1bj+HXT8fafxrBT/nmVLwr7ILVomgVSGlWsb2wjJYanqvLJHXkCVmr0sM97F9FJeWQFIgwrRi5MWSYbNQAQ6A==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/@cspell/dict-en-common-misspellings/-/dict-en-common-misspellings-2.2.6.tgz", + "integrity": "sha512-RMOmCPOJuBfcC8IVLKjs9aqssjLKmhwVI8Yw/xgEnO9trWAiUzESassDATE229xqi1sdtRIIMGHyuxlkL75Xjg==", "dev": true, "license": "CC BY-SA 4.0" }, "node_modules/@cspell/dict-en-gb-mit": { - "version": "3.1.30", - "resolved": "https://registry.npmjs.org/@cspell/dict-en-gb-mit/-/dict-en-gb-mit-3.1.30.tgz", - "integrity": "sha512-wmsPqPrO+GRfD8iA2jSKzRdEVd46ZbnDttRWM8RC4a8DkeiIanTtIgqX5V23jJibSgpsRVAtY+ktTw2nOK/Yvw==", + "version": "3.1.32", + "resolved": "https://registry.npmjs.org/@cspell/dict-en-gb-mit/-/dict-en-gb-mit-3.1.32.tgz", + "integrity": "sha512-bEASyTAzXLowmFWrZIJjeAeCpY9g3jcYDO3tVyFDL/UaAuz0UvCVgOEyg+Ym7bclijqvXmj0xXOD/cW2XWG8iw==", "dev": true, "license": "MIT" }, @@ -480,9 +480,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-npm": { - "version": "5.2.54", - "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.2.54.tgz", - "integrity": "sha512-7jQPRZL1XnZ0HPk5iYAq5WpJ5dpgKHRDBl9aB6uQQBJdo90mCF4bjPGSVl2HrWgx+IXlafiyx/QNO2XII/hgYg==", + "version": "5.2.56", + "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.2.56.tgz", + "integrity": "sha512-VqN/f97X64gYR7zVXLu2PN6t5Sm6EljZEFp4htmbOL9tGqs0XVErl9B9kwfaLlKJqfLU6vYcupjRBjqTQ6rQ4Q==", "dev": true, "license": "MIT" }, @@ -508,13 +508,13 @@ "license": "MIT" }, "node_modules/@cspell/dict-python": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.5.2.tgz", - "integrity": "sha512-CFcTDGN/ycn45WXC5ZZ06pG09WbGKMpPm1rkMuqMP98/jwjw3iiK8c0izWRd8x027n1rOZ9kJ8f9Sd+bQ22HJg==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.5.3.tgz", + "integrity": "sha512-I226HEEJW4fleE0HMxRaecnzcJICFK6TOqIjqVkOJZzaVZTTjE7fojM+f5XECAwhf4BImW7HVOKMu4rMtza6ZA==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/dict-data-science": "^2.0.16" + "@cspell/dict-data-science": "^2.0.17" } }, "node_modules/@cspell/dict-r": { @@ -553,9 +553,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-software-terms": { - "version": "5.4.8", - "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-5.4.8.tgz", - "integrity": "sha512-7Fv/jgRghpcEcvpmrRR54gPp1l85pPLmlMua74hjhMJoWklAp905V742XR6u5HwvGRH7aBTW9euNsJULav1E6A==", + "version": "5.4.9", + "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-5.4.9.tgz", + "integrity": "sha512-bB5L+OGW0F8Vt83j0XFcMEWCbCNqquLgjlQjm/iCp1jcYi/pQbqDLkXIPbINgbeG0vRqiu5yCPDFCsv4Qb6miQ==", "dev": true, "license": "MIT" }, @@ -609,13 +609,13 @@ "license": "MIT" }, "node_modules/@cspell/dynamic-import": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-10.4.0.tgz", - "integrity": "sha512-scSwtJDqpRT/Kqzo64XR8OWzXYfdpp9Yneq99Drhqm5gXXI2BAlgjzhBnMGKa+x7eIJZVM2+D2uFeDI2xQYM2w==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-10.5.1.tgz", + "integrity": "sha512-SJycERkcVwnB8XgI0cfYJ9zzw132Ez7Op66+F4h/woEFNkv8Nzw2Ng2LDtf0wrdVWlKE5LrcTHe0cG0ZaonYmA==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/url": "10.4.0", + "@cspell/url": "10.5.1", "import-meta-resolve": "^4.2.0" }, "engines": { @@ -623,9 +623,9 @@ } }, "node_modules/@cspell/filetypes": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-10.4.0.tgz", - "integrity": "sha512-ez0MyFxnpYN9eMkH8vGGseQPsCRwD7ZlsR+ivQ2rPx04CX7ctp015nWv71P7m+T6V05AsyAwyEGZP9vrTlB4Ig==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-10.5.1.tgz", + "integrity": "sha512-HS6KRk25IfowrHxbw3RgMHNjkFX/e9Lp9c44lKs1oGF08cFAa5u5l6dWFj7THZPOItt/0vnKOkwk2pm9dBmPMQ==", "dev": true, "license": "MIT", "engines": { @@ -633,9 +633,9 @@ } }, "node_modules/@cspell/rpc": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/rpc/-/rpc-10.4.0.tgz", - "integrity": "sha512-tX1YLQYPQz+p73U5OTLmOxIrsmRkpaaKrPnfrVIpK5yv3erWE8ELVZD0zK01rursbL1rW3gyOv0ShHlmoE5VNA==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/rpc/-/rpc-10.5.1.tgz", + "integrity": "sha512-WtEiqdneESOk+fxaBwCqpJQbbnAhLmytCz38hGxMIqqHMNBnFlpAr8sOgu8IN1OpGe8iq58eBRTm6I1ubO9AOQ==", "dev": true, "license": "MIT", "engines": { @@ -643,9 +643,9 @@ } }, "node_modules/@cspell/strong-weak-map": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-10.4.0.tgz", - "integrity": "sha512-y8+Hk90mA3UY4HYEWBJokvNcixQOKkRDLEr+yXSYyOJnt6MhAu8D7N567HjEVNj0e7oirXl62wpNglPfo7qAcQ==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-10.5.1.tgz", + "integrity": "sha512-arwqtPy9o/IhKep1gfeyggYTCybUmVsJWTfIJKw+r2ZPaxoo3vYEy+s25JxQwFRpo2ZHIDOS6V2pKKvD9eHLsA==", "dev": true, "license": "MIT", "engines": { @@ -653,9 +653,9 @@ } }, "node_modules/@cspell/url": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/url/-/url-10.4.0.tgz", - "integrity": "sha512-8NvDv8h3eaxejAvD+crMsSEgGq6LiunfS6iD2TBAcDqskNsIpN43AMHNNRf7T7Fd/3Y413nQDBH4RmsHcNsiqg==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/@cspell/url/-/url-10.5.1.tgz", + "integrity": "sha512-XIV8qZtR/FWgQerEGOBIQp2Si3GAQ/5Efr8TxtOeGvs7obuYB5Py+lx+q7nZlbXmYBst02NjuMXUe8tGNfg31Q==", "dev": true, "license": "MIT", "engines": { @@ -701,13 +701,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.1.tgz", - "integrity": "sha512-IaYGml/nSOiZWROfPtuIL7neuu9qDOZ3TNvNljUIrhDMxiGTgPjzj/g9p9RxpS2tSepPDRY+UwAaEeiKtUvIAg==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.1.tgz", + "integrity": "sha512-y+NCIRm2LvY4slUVWvGh1nujJ8RF/hEisIsq2mtUPgdQC4L701bq5hZGMhrpeXjACvwvO9tj5dJqhvM6TP9lbw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.64.1" + "playwright": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -729,6 +729,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@streetsidesoftware/unindent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@streetsidesoftware/unindent/-/unindent-1.0.1.tgz", + "integrity": "sha512-ZXfg7MT3AT9ZOq/hgzbqNc01zVPG+PFkr+kbB2OHlMcNrtvK10ZPkNgy38MqTErjNeajh4VG1sSSv5zIyjOXxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.18.0" + } + }, "node_modules/@types/debug": { "version": "4.1.13", "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", @@ -761,9 +771,9 @@ "license": "MIT" }, "node_modules/ansi-regex": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz", - "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", "dev": true, "license": "MIT", "engines": { @@ -886,9 +896,9 @@ } }, "node_modules/commander": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", - "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz", + "integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==", "dev": true, "license": "MIT", "engines": { @@ -910,31 +920,32 @@ } }, "node_modules/cspell": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell/-/cspell-10.4.0.tgz", - "integrity": "sha512-fr7PD9nDXtOwJmW8vk2MOXBuc+oGsYF9uLgUtg+1pWiPo2TwxJVLePfCIKmL6x4AAYSYqaRTrNGppYCDKcHOYw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell/-/cspell-10.5.1.tgz", + "integrity": "sha512-nqXOFQyHlSBDwWqQHmXvR0vomrjrTctFs73SJCSAvtIgPahq0SVyRWZS856TGDBY63z0gS/h4+GKymLKnLoZ8w==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-json-reporter": "10.4.0", - "@cspell/cspell-performance-monitor": "10.4.0", - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-types": "10.4.0", - "@cspell/cspell-worker": "10.4.0", - "@cspell/dynamic-import": "10.4.0", - "@cspell/url": "10.4.0", - "ansi-regex": "^6.4.0", + "@cspell/cspell-json-reporter": "10.5.1", + "@cspell/cspell-performance-monitor": "10.5.1", + "@cspell/cspell-pipe": "10.5.1", + "@cspell/cspell-types": "10.5.1", + "@cspell/cspell-worker": "10.5.1", + "@cspell/dynamic-import": "10.5.1", + "@cspell/url": "10.5.1", + "@streetsidesoftware/unindent": "^1.0.1", + "ansi-regex": "^6.6.0", "chalk": "^6.0.1", "chalk-template": "^1.1.3", - "commander": "^15.0.0", - "cspell-config-lib": "10.4.0", - "cspell-dictionary": "10.4.0", - "cspell-gitignore": "10.4.0", - "cspell-glob": "10.4.0", - "cspell-io": "10.4.0", - "cspell-lib": "10.4.0", + "commander": "^15.1.0", + "cspell-config-lib": "10.5.1", + "cspell-dictionary": "10.5.1", + "cspell-gitignore": "10.5.1", + "cspell-glob": "10.5.1", + "cspell-io": "10.5.1", + "cspell-lib": "10.5.1", "flatted": "^3.4.4", - "semver": "^7.8.5", + "semver": "^7.8.6", "tinyglobby": "^0.2.17" }, "bin": { @@ -949,13 +960,13 @@ } }, "node_modules/cspell-config-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-10.4.0.tgz", - "integrity": "sha512-1P0xmWIlGqwsHf8he9BWNdqV2bvRBkxCv5ctj3oHBraRFS6CPjdJBptyjuM0dgTwxmxPFcuWhTG8miTvFMje5g==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-10.5.1.tgz", + "integrity": "sha512-VnqnlHFKEmIEkLSp62UDFoQ7/tVfliIdiiYFcX8O3OQ5lj+D2RjEnKUOhSW7qHITI8CAFa0LpYPPoHJhGM/rYw==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-types": "10.4.0", + "@cspell/cspell-types": "10.5.1", "comment-json": "^5.0.0", "smol-toml": "^1.9.1", "yaml": "^2.9.1" @@ -965,32 +976,32 @@ } }, "node_modules/cspell-dictionary": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-10.4.0.tgz", - "integrity": "sha512-FwCQBzqOxjAg+GhymrY288As9DmJqHVrkAr++0tCQ1wWFVw2Nt1W3cCKn9W987Dr+giSuNREdQFpGbQ/cHluTg==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-10.5.1.tgz", + "integrity": "sha512-4dHK2v4U5H57XK2Iq8Fb81agcbTvnMGePpv417AVJQwKCQbGmjOWhzQ6lbanhbH/j9zlz3HaCiHryrdc8jKwQw==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-performance-monitor": "10.4.0", - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-types": "10.4.0", - "cspell-trie-lib": "10.4.0", - "fast-equals": "^6.1.1" + "@cspell/cspell-performance-monitor": "10.5.1", + "@cspell/cspell-pipe": "10.5.1", + "@cspell/cspell-types": "10.5.1", + "cspell-trie-lib": "10.5.1", + "fast-equals": "^6.2.2" }, "engines": { "node": ">=22.18.0" } }, "node_modules/cspell-gitignore": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-10.4.0.tgz", - "integrity": "sha512-2jwooVHqRvWYr21V8lOASOYGnf8wEMXiy5ifob1oqotVZ3PfucuWAYpVaeTm3bFz6uU4yqFUU/HdizAEKWt6zg==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-10.5.1.tgz", + "integrity": "sha512-sN1+zPJUF6QciUQNH0LI3Eg5Cffz+opyf4K29nN3V00pQ0jSAy3tbF6Ps6++yQM+tsZxORZ5LB9BHK4bQBHNVQ==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/url": "10.4.0", - "cspell-glob": "10.4.0", - "cspell-io": "10.4.0" + "@cspell/url": "10.5.1", + "cspell-glob": "10.5.1", + "cspell-io": "10.5.1" }, "bin": { "cspell-gitignore": "bin.mjs" @@ -1000,13 +1011,13 @@ } }, "node_modules/cspell-glob": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-10.4.0.tgz", - "integrity": "sha512-XnctlpRbhln7dTmJyISw7HdsXM38CW+S7Ygm5kkAEixSyceim8RJfRj2rhtofL7B6Ra6YdRmJnm2/PWDOIVzLw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-10.5.1.tgz", + "integrity": "sha512-spW2LJLuRegMdnzjeMBv1zgUtYgZmMIpdkLNsMuRiGS3ovlcHUfg9nuW+VdynTV/8RewA9j6gmuBdXXdKs5E2Q==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/url": "10.4.0", + "@cspell/url": "10.5.1", "picomatch": "^4.0.7" }, "engines": { @@ -1014,14 +1025,14 @@ } }, "node_modules/cspell-grammar": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-10.4.0.tgz", - "integrity": "sha512-zWxN9g0oh2tzJDM3C11prpsqF2nTw5AHpXtOslTm3D5d4ZL4BfBHRj5PFxbz3Px4fKz/KptPhxSP5yGDCNtjJg==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-10.5.1.tgz", + "integrity": "sha512-8AuX8APLSYEn4rB9GpkgZ5a+VXsdR+WF/imCz2QaXqTepWINXdLszeERwX7k/G2euLbULn9oHAWwXOMNq7pw9g==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-types": "10.4.0" + "@cspell/cspell-pipe": "10.5.1", + "@cspell/cspell-types": "10.5.1" }, "bin": { "cspell-grammar": "bin.mjs" @@ -1031,47 +1042,47 @@ } }, "node_modules/cspell-io": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-10.4.0.tgz", - "integrity": "sha512-EunMcHZbgA7PYj6172t2nPFVVWo0L7xi4awIhMay27c3vYGiA+ajowIBtIdy2MLOTSqL+XOfcjkuahXh8L8BzQ==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-10.5.1.tgz", + "integrity": "sha512-llte96Q2s3MicWNtA+8McvzUXee1XDmmKSdA8J4bZMllUBNo1UG/mKs+vFU1uqRcxoJ2AxyPY9NySpTmvLTM4w==", "dev": true, "license": "MIT", "dependencies": { - "@cspell/cspell-service-bus": "10.4.0", - "@cspell/url": "10.4.0" + "@cspell/cspell-service-bus": "10.5.1", + "@cspell/url": "10.5.1" }, "engines": { "node": ">=22.18.0" } }, "node_modules/cspell-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-10.4.0.tgz", - "integrity": "sha512-wfqmn19pfEUjWy7UJ4xPeRwyb/LFXHxFVJ6maX87OLRuSE9fTP+cr74VANpKycd/rieuB2ffKta7l38n+Xhj/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@cspell/cspell-bundled-dicts": "10.4.0", - "@cspell/cspell-performance-monitor": "10.4.0", - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-resolver": "10.4.0", - "@cspell/cspell-types": "10.4.0", - "@cspell/dynamic-import": "10.4.0", - "@cspell/filetypes": "10.4.0", - "@cspell/rpc": "10.4.0", - "@cspell/strong-weak-map": "10.4.0", - "@cspell/url": "10.4.0", - "cspell-config-lib": "10.4.0", - "cspell-dictionary": "10.4.0", - "cspell-glob": "10.4.0", - "cspell-grammar": "10.4.0", - "cspell-io": "10.4.0", - "cspell-trie-lib": "10.4.0", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-10.5.1.tgz", + "integrity": "sha512-o6/M+w8ynF9MoiWvETzo7aGrVoKR7zuNpC7IKNLMZ0A4QwBe2uTGsXMta28g71sEFRejYxmGcX+IHMavLgCjTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspell/cspell-bundled-dicts": "10.5.1", + "@cspell/cspell-performance-monitor": "10.5.1", + "@cspell/cspell-pipe": "10.5.1", + "@cspell/cspell-resolver": "10.5.1", + "@cspell/cspell-types": "10.5.1", + "@cspell/dynamic-import": "10.5.1", + "@cspell/filetypes": "10.5.1", + "@cspell/rpc": "10.5.1", + "@cspell/strong-weak-map": "10.5.1", + "@cspell/url": "10.5.1", + "cspell-config-lib": "10.5.1", + "cspell-dictionary": "10.5.1", + "cspell-glob": "10.5.1", + "cspell-grammar": "10.5.1", + "cspell-io": "10.5.1", + "cspell-trie-lib": "10.5.1", "env-paths": "^4.0.0", "gensequence": "^8.0.8", "import-fresh": "^4.0.1", "resolve-from": "^5.0.0", - "vscode-languageserver-textdocument": "^1.0.15", + "vscode-languageserver-textdocument": "^1.0.16", "vscode-uri": "^3.2.0", "xdg-basedir": "^5.1.0" }, @@ -1080,16 +1091,16 @@ } }, "node_modules/cspell-trie-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-10.4.0.tgz", - "integrity": "sha512-3APfmYOrYEcoiDjupm3JsxLWvqa6IbJ76CqUTuIgXQH2EK0nOJ5SRKSTNP6AplDtalCs0o6VllbiRX6S81g8yw==", + "version": "10.5.1", + "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-10.5.1.tgz", + "integrity": "sha512-nB6MLCzJfStH88MjvzpMfXvg7sdp1fvAPFv+f174UobwCPUheA9BmCxPlxXphhxU+zQ4n082rn+OLq6aUifXVA==", "dev": true, "license": "MIT", "engines": { "node": ">=22.18.0" }, "peerDependencies": { - "@cspell/cspell-types": "10.4.0" + "@cspell/cspell-types": "10.5.1" } }, "node_modules/debug": { @@ -1192,9 +1203,9 @@ } }, "node_modules/fast-equals": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.2.1.tgz", - "integrity": "sha512-s7KFkLPAAbIDGTh+nVYhjTiwKGvgMXAUG5vwzg8vQKj7NSRZ4eEGExBQ4rq9V90fTYVWd1cb/Wr4ffCNBmLQMQ==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.2.2.tgz", + "integrity": "sha512-n+XqoarWCgcar0O3om3DeNYx6xTuLWGTUF1bRZ9iuO00tsPepzP1L4V7rqtxxZ4PEya34UCESReimFvxmEVwIA==", "dev": true, "license": "MIT", "engines": { @@ -1624,9 +1635,9 @@ "license": "PSF-2.0" }, "node_modules/markdownlint": { - "version": "0.42.0", - "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.42.0.tgz", - "integrity": "sha512-kzsCV/rPWRFn3jUhcB919YF4Qgeh0g9tcogoXFadGSo6Zxj6662YOqWXv0jDn8nv5KCCxDfMKJZv6N4HkNkvTg==", + "version": "0.42.1", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.42.1.tgz", + "integrity": "sha512-Otolm9JX12iO2NG5cetlKfzGygpiLSlHuqXKxoT6HGhN5HtbxprJPicKZqqCQd88qOvUi/TEs3o1AmcYioVscA==", "dev": true, "license": "MIT", "dependencies": { @@ -1638,7 +1649,7 @@ "micromark-extension-gfm-table": "2.1.2", "micromark-extension-math": "3.1.0", "micromark-util-types": "2.0.3", - "re2js": "2.8.6", + "re2js": "2.9.1", "string-width": "8.3.0" }, "engines": { @@ -1649,18 +1660,18 @@ } }, "node_modules/markdownlint-cli2": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.24.0.tgz", - "integrity": "sha512-c5hU2MDoTlS230MLzdNlkIyxImXq5acxGKz4nYz4aDhH/2BgFtpsA7iK9/OoTHMgZ4FuR0wedTQA31K6Lp9I/Q==", + "version": "0.24.1", + "resolved": "https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.24.1.tgz", + "integrity": "sha512-nLhes/MIPJQLm+Gmh+3jQEnwMOaalaN0wfCD2qz1247zNZ7R3r2WDHJB191x4hcy6soKAUTybp1bFK7aJGw/WA==", "dev": true, "license": "MIT", "dependencies": { "globby": "16.2.4", - "js-yaml": "5.4.3", + "js-yaml": "5.5.0", "jsonc-parser": "3.3.1", "jsonpointer": "5.0.1", "markdown-it": "15.0.3", - "markdownlint": "0.42.0", + "markdownlint": "0.42.1", "markdownlint-cli2-formatter-default": "0.0.6", "micromatch": "4.0.8", "smol-toml": "1.9.1" @@ -2331,13 +2342,13 @@ } }, "node_modules/playwright": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz", - "integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", + "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.64.1" + "playwright-core": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -2347,9 +2358,9 @@ } }, "node_modules/playwright-core": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz", - "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", + "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -2391,13 +2402,13 @@ "license": "MIT" }, "node_modules/re2js": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/re2js/-/re2js-2.8.6.tgz", - "integrity": "sha512-xLgQil4kIUCrAzVk9fRSkxkFNwmygLFjVxXrLc65aE1F0+Zsb8rxumFBy4XKyvgMCTL6kilDq3EZ0piE2dP/Dg==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/re2js/-/re2js-2.9.1.tgz", + "integrity": "sha512-JIT3bEEUZTOR2YS1walNEIfH4cF/cQeZcBUFq7ldqO6lR6g0X5CBq/S8rsa9omzZcsNf8qc36jCkWpKKtncrZg==", "dev": true, "license": "MIT", "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/resolve-from": { @@ -2446,9 +2457,9 @@ } }, "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -2568,9 +2579,9 @@ } }, "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.15.tgz", - "integrity": "sha512-Gsfr9S8LU3S6885cS+NaleasJ0n3V5y/SOTqHCifQiXWFw3G9w9/YItDfwHrlCz+dSZWWZ8ilYVMcJe7Sz7Sxw==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz", + "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==", "dev": true, "license": "MIT" }, diff --git a/docs/package.json b/docs/package.json index 73af248a..62e229f3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,9 +15,9 @@ }, "devDependencies": { "@axe-core/playwright": "4.14.0", - "@playwright/test": "1.64.1", - "cspell": "10.4.0", - "markdownlint-cli2": "0.24.0" + "@playwright/test": "1.65.1", + "cspell": "10.5.1", + "markdownlint-cli2": "0.24.1" }, "overrides": { "js-yaml": "5.4.2", diff --git a/package-lock.json b/package-lock.json index b63ba1da..193d00ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,21 +13,21 @@ ], "devDependencies": { "@eslint/js": "^10.0.1", - "@playwright/test": "^1.64.1", - "@types/node": "^26.6.5", + "@playwright/test": "^1.65.1", + "@types/node": "^26.6.6", "@vitejs/plugin-vue": "^6.0.10", "@vue/test-utils": "2.5.1", - "eslint": "^10.13.0", - "eslint-plugin-jsdoc": "^65.3.11", - "eslint-plugin-vue": "^10.11.1", - "globals": "^17.13.0", + "eslint": "^10.15.0", + "eslint-plugin-jsdoc": "^65.4.9", + "eslint-plugin-vue": "^10.12.1", + "globals": "^17.14.0", "happy-dom": "^21.0.3", "prettier": "^3.9.10", "typescript": "^6.0.3", - "typescript-eslint": "^8.71.2", - "vite": "^8.3.4", - "vitest": "^5.0.5", - "vue-tsc": "^3.3.13" + "typescript-eslint": "^8.73.0", + "vite": "^8.3.8", + "vitest": "^5.1.0", + "vue-tsc": "^3.3.14" }, "engines": { "node": ">=22.14.0", @@ -40,7 +40,7 @@ "dependencies": { "@cstructsharp/app-shared": "*", "monaco-editor": "^0.57.0", - "vue": "^3.5.44", + "vue": "^3.5.45", "vuehex": "^0.7.0" }, "engines": { @@ -53,15 +53,15 @@ "version": "0.18.0", "dependencies": { "@cstructsharp/app-shared": "*", - "@iconify-icons/vscode-icons": "^2.0.17", - "@iconify/vue": "^5.0.3", + "@iconify-icons/vscode-icons": "^2.0.26", + "@iconify/vue": "^5.0.5", "@vueuse/core": "^15.0.0", - "dockview-vue": "^8.6.0", - "file-type": "22.1.1", + "dockview-vue": "^8.9.0", + "file-type": "22.3.0", "json-editor-vue": "^0.19.2", "monaco-editor": "^0.57.0", "vanilla-jsoneditor": "^3.13.0", - "vue": "^3.5.44", + "vue": "^3.5.45", "vuehex": "^0.7.0" }, "engines": { @@ -69,53 +69,18 @@ "npm": ">=10.0.0" } }, - "apps/inspector/node_modules/@tokenizer/inflate": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz", - "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.3", - "token-types": "^6.1.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "apps/inspector/node_modules/file-type": { - "version": "22.1.1", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-22.1.1.tgz", - "integrity": "sha512-sEB0oStmeLGtpmSAD88RDNuLsvhv4iC3u0lE25CUvfCULvj49xoQ3l3K525Vn+ZzsZ6DOLajQCV6RmhwwhqiJg==", - "license": "MIT", - "dependencies": { - "@tokenizer/inflate": "^0.4.1", - "strtok3": "^10.3.5", - "token-types": "^6.1.2", - "uint8array-extras": "^1.5.0" - }, - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://github.com/sindresorhus/file-type?sponsor=1" - } - }, "apps/shared": { "name": "@cstructsharp/app-shared", "version": "0.18.0", "peerDependencies": { "monaco-editor": "^0.57.0", - "vue": "^3.5.44" + "vue": "^3.5.45" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", + "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -131,12 +96,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", - "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", + "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", "license": "MIT", "dependencies": { - "@babel/types": "^7.29.8" + "@babel/types": "^7.29.14" }, "bin": { "parser": "bin/babel-parser.js" @@ -146,12 +111,12 @@ } }, "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", + "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-string-parser": "^7.29.14", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -159,9 +124,9 @@ } }, "node_modules/@borewit/text-codec": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.2.tgz", - "integrity": "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.3.tgz", + "integrity": "sha512-49CycTz1aAZmvFcwkeFyhud1HUmRIB5Tabf7ALV+VA4Iu85MTfz2cUwzPagMFAdVBvrWdkCxG67I30tUwwpKsw==", "license": "MIT", "funding": { "type": "github", @@ -287,18 +252,100 @@ "resolved": "apps/shared", "link": true }, + "node_modules/@emnapi/core": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", + "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "2.2.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", + "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", + "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@es-joy/escodegen": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@es-joy/escodegen/-/escodegen-5.0.1.tgz", + "integrity": "sha512-0sOnDSVMt7Zg5qmXz4ab1yOXrUi0QmSPqpm5d547puNdJxT0J+Xdip2F/5j07nuE1pW131AX5jFUvOIfZPYNRg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@es-joy/estraverse": "^7.1.1", + "@es-joy/esutils": "^3.0.0", + "@es-joy/jsdoccomment": "^1.1.0", + "@types/estree": "^1.0.10", + "esprima": "^4.0.1", + "optionator": "^0.9.4" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": "^22.16.0 || >=24.0.0" + }, + "optionalDependencies": { + "source-map": "~0.8.0" + } + }, + "node_modules/@es-joy/estraverse": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@es-joy/estraverse/-/estraverse-7.1.1.tgz", + "integrity": "sha512-h2d737iS0LFAqypZOmXizu54qAbHofI/RpD30Zom03O6BCXKHuFevWKPcGarZbGq82h7qSBb5G6kLdhTMO+caw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@es-joy/esutils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@es-joy/esutils/-/esutils-3.0.0.tgz", + "integrity": "sha512-K8M2b2ixqOiF5B+qYJIWIznFtvbD8biX2mj31pXmXAaTRUUd2x6anAFZk4GVGXz7sX9tOkx+z6TaQc/paeVCeg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/estree": "^1.0.9" + }, + "engines": { + "node": "^22.16.0 || >=24.0.0" + } + }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.98.0", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.98.0.tgz", - "integrity": "sha512-QS+b7I2aaSM+gZfDz1b9E4B367JJ2qTjFXRKF289iKkh9sYdZ21Q5MiF/Duzouy3J0C4VhM3I/8f2F4+zT8gYQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-1.2.0.tgz", + "integrity": "sha512-EcF8gDd175MRIYEt7ktoe9AUijBba3SSSvnGJ96HQaK1BxjVK8l1QdksVEAY34Lp0byn51FnTszlVMYmD5TI/w==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.9", - "@typescript-eslint/types": "^8.70.0", + "@types/estree": "^1.0.10", + "@typescript-eslint/types": "^8.72.2", "comment-parser": "1.4.9", "esquery": "^1.7.0", - "jsdoc-type-pratt-parser": "~9.2.2" + "jsdoc-type-pratt-parser": "~9.5.0" }, "engines": { "node": "^22.22.2 || >=24.15.0" @@ -357,20 +404,37 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.23.5", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", - "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "version": "0.23.6", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz", + "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^3.0.5", "debug": "^4.3.1", - "minimatch": "^10.2.4" + "minimatch": "^11.0.5" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" } }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "11.0.8", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", + "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@eslint/config-helpers": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", @@ -542,9 +606,9 @@ } }, "node_modules/@iconify-icons/vscode-icons": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@iconify-icons/vscode-icons/-/vscode-icons-2.0.17.tgz", - "integrity": "sha512-29K8L6hbZWWURN+JdxGopPmdZ6u9nqzgmulaixISgY7gV5Ahom00m4oYHW/pl4ml/zQ5TVQIidPgHub788Ym6A==", + "version": "2.0.26", + "resolved": "https://registry.npmjs.org/@iconify-icons/vscode-icons/-/vscode-icons-2.0.26.tgz", + "integrity": "sha512-4ewQMVJMlBa6x+EK/4hOXn0CGcc26PZSvm3aR1Cb2QTQ/w/i5bMqCxtDXBXoGOLLPrGf2sres7FW381tiSKahw==", "license": "MIT", "dependencies": { "@iconify/types": "*" @@ -557,9 +621,9 @@ "license": "MIT" }, "node_modules/@iconify/vue": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.3.tgz", - "integrity": "sha512-e9x6QZe2/HyeHUog0jzZJSZts7m/YntPYp/p4OqtZEXpHznxWnQpcX30YpuaUH43h69l3YeR1FCJ8V1t3qd7qA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.5.tgz", + "integrity": "sha512-O4SHjEKCQ2KTupa0tOd7MIuDdi8Pg6y9fCvsqccX8nYW8Wuy+ZbEgpzw7gZTN3ThyFjY9uo29ZLZ8MQjjMJRBw==", "license": "MIT", "dependencies": { "@iconify/types": "^2.0.0" @@ -571,6 +635,13 @@ "vue": ">=3.0.0" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -714,6 +785,28 @@ "integrity": "sha512-Wy0V7+SGUjnF9/TkiM1hKVDPj7jKXduPNboMVtHTA8dySMURWqfg/JZ9E2Sq8JgSJmkl7k7Qe9FLeMSrSraWmQ==", "license": "MIT" }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", + "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" + } + }, "node_modules/@one-ini/wasm": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.2.1.tgz", @@ -722,9 +815,9 @@ "license": "MIT" }, "node_modules/@oxc-project/types": { - "version": "0.153.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.153.0.tgz", - "integrity": "sha512-jSNrRIyvPVLL5E1z/tS5zLAprosGz/FuI1PWwEOz59j3E4TTTzSpqKb/RDGqJhhW0QHYISGXxq582wGx6T11Tw==", + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", "dev": true, "license": "MIT", "funding": { @@ -732,13 +825,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.1.tgz", - "integrity": "sha512-IaYGml/nSOiZWROfPtuIL7neuu9qDOZ3TNvNljUIrhDMxiGTgPjzj/g9p9RxpS2tSepPDRY+UwAaEeiKtUvIAg==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.1.tgz", + "integrity": "sha512-y+NCIRm2LvY4slUVWvGh1nujJ8RF/hEisIsq2mtUPgdQC4L701bq5hZGMhrpeXjACvwvO9tj5dJqhvM6TP9lbw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.64.1" + "playwright": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -759,9 +852,9 @@ } }, "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.13.tgz", - "integrity": "sha512-Vu/NICrgdRvUOeaJZIyB2FP63s6fO/4ud5l8dXmxDx9yDyn+mN0y+gsvsVviSli+T361Aqo0h46EuMoobrwawA==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz", + "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==", "cpu": [ "arm" ], @@ -776,9 +869,9 @@ } }, "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.13.tgz", - "integrity": "sha512-6LEoIrGy5vvCd2boNnv2soPSUZj/PRvhp8R/t9KlX+mIZxThIE/ZqxrGXxmuNX0FuvQFvLdZr7S4HrYpYBVhEQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz", + "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==", "cpu": [ "arm64" ], @@ -793,9 +886,9 @@ } }, "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.13.tgz", - "integrity": "sha512-CaJSRzlQ6Q+zkDMVA9OkVxBjVoPRCDEE3v0FSJ9kIQBgRjFApA3Si4ijhbNVUji7ZJt+PfO0e46qy4nPInHUPA==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz", + "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==", "cpu": [ "arm64" ], @@ -810,9 +903,9 @@ } }, "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.13.tgz", - "integrity": "sha512-e4r340I5hxSzJkD3YJBxgzq/rJ3wwxwdLLb2FPt1Zpyem20nrQPT11DDEEkazwxaHumH8wpglsp/Ozgj/wT6mw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz", + "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==", "cpu": [ "x64" ], @@ -827,9 +920,9 @@ } }, "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.13.tgz", - "integrity": "sha512-hoBWDZ4/K/mJKVMbsgUd1jfpA2DiOrJ54mpegObU9TBHBBrtX4FLIXJJQRDPZ/2Dn91GvPob+Z2hwKJzf4E5SQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz", + "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==", "cpu": [ "x64" ], @@ -844,9 +937,9 @@ } }, "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.13.tgz", - "integrity": "sha512-oF9fZu3vTWnTiVAkDFxU9PJLt1nh20K9RRpuHsR7ZnE2L7XookBbDBVLojCVSLGbvtSlxeUNnjAj6DbNsKyzbg==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz", + "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==", "cpu": [ "arm" ], @@ -861,9 +954,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.13.tgz", - "integrity": "sha512-DTpb/+jMiqWMPgphn4ksW1zW+XLJ6dJJ9FMvnIk9I291LhCctMPhMYJrP5t9p6C9qa3KXadDdUEZHBaPh3kNxQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz", + "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==", "cpu": [ "arm64" ], @@ -881,9 +974,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.13.tgz", - "integrity": "sha512-xU+Kvv9N2A3SY35zFh1FWWNjxbadE/BKeqnkXe7vScU4GZsw757BlVmDLITZEq8DPpk6m7uoDYkK7P+x/uU5Ow==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz", + "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==", "cpu": [ "arm64" ], @@ -901,9 +994,9 @@ } }, "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.13.tgz", - "integrity": "sha512-XMk/hnhh25oQ756Lclb1Q11h4ll0xC0Esa5w4Vzp+mAE2S3AGJgeM0SonrIgY8fHhjarb6hcoTuwoFG0VVP2ig==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz", + "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==", "cpu": [ "ppc64" ], @@ -921,9 +1014,9 @@ } }, "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.13.tgz", - "integrity": "sha512-U1BoTHYmlywE2n3HUWjzZ+8EQsKr+OwpxYuDWaubx42tUL8QSL7nOqRz/NVHanibbFP3M1Rxuprz/wNcbMKjqw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz", + "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==", "cpu": [ "s390x" ], @@ -941,9 +1034,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.13.tgz", - "integrity": "sha512-J4cm80Pc6wEwV5AZ42o62sIQgDk+Y7R2s646jIwuvO+4V46QB58N4vVuMPWCBaNgursXLpmUWJV//WQAkPvHBQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz", + "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==", "cpu": [ "x64" ], @@ -961,9 +1054,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.13.tgz", - "integrity": "sha512-W0euZS40U4V6JkmEnVCIX9mcsL6cbXQ4X8c2w+MMOIjFg68TXUW+u3RT+2e1t1pv9mg/EP3pDtK3POXdQ7Rxyw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz", + "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==", "cpu": [ "x64" ], @@ -981,9 +1074,9 @@ } }, "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.13.tgz", - "integrity": "sha512-do/AF/4n9MRshia3a5aXoy8xM2c6mgfT6D7H/dY6my5z+hfCIR4ab7mk4IRj++nsEQpKy39kd0DQnDq+r692tw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz", + "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==", "cpu": [ "arm64" ], @@ -997,10 +1090,29 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz", + "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "2.0.0-beta.2", + "@emnapi/runtime": "2.0.0-beta.2", + "@napi-rs/wasm-runtime": "1.2.6" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.13.tgz", - "integrity": "sha512-6FtUf2cJZobutJdxnGYX8z0vtbgqU0b2v8vfBhkXb9wp2MppMFtkunE+IaOntyi01rkIQoPW2GHABtfzsC0BRQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz", + "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==", "cpu": [ "arm64" ], @@ -1015,9 +1127,9 @@ } }, "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.13.tgz", - "integrity": "sha512-UKhFaZTeTcbKrb3iU82m17jVcPEAoqDkCN5MBqgPyZSwp/cQmib21crTS0DdH7T1B7wZRWEI89YQAOJMet5yhg==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz", + "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==", "cpu": [ "x64" ], @@ -1066,12 +1178,41 @@ "acorn": "^8.9.0" } }, + "node_modules/@tokenizer/inflate": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.6.1.tgz", + "integrity": "sha512-EuqSyHdOXN61cc5/rsW6uUn1TJZJGZr56jlkUbsLwVJ6uHgvwQyFkYfOCf+zzPFAYjftPk1WeJnEhpLVvzbm1A==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "strtok3": "^10.8.0", + "token-types": "^6.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/@tokenizer/token": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", "license": "MIT" }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz", + "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/chai": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", @@ -1098,9 +1239,9 @@ "license": "MIT" }, "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", "license": "MIT" }, "node_modules/@types/json-schema": { @@ -1111,9 +1252,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "26.6.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz", - "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==", + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", "dev": true, "license": "MIT", "dependencies": { @@ -1151,17 +1292,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.2.tgz", - "integrity": "sha512-K72/pvT7qpm8q3k8G5u93NCSN1RcLxX5h7Gw0bQpbMXviBHeY6Nx1WEwmk9wP+eKTSQ8ecxvcgt/ZX/rB938xQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz", + "integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/type-utils": "8.71.2", - "@typescript-eslint/utils": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/type-utils": "8.73.0", + "@typescript-eslint/utils": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -1174,15 +1315,15 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.71.2", + "@typescript-eslint/parser": "^8.73.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz", - "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==", + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", "dev": true, "license": "MIT", "engines": { @@ -1190,16 +1331,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.2.tgz", - "integrity": "sha512-aTtmZjp/x3gsGHkDs04/1I8kNogBJkpQaeGaN0PfiG43NzDEmW2n+OP5im9wfsvyX0yP1UZWBrAGtDBfH9jEVw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.73.0.tgz", + "integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3" }, "engines": { @@ -1215,14 +1356,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.2.tgz", - "integrity": "sha512-Pd68GsLVh5ZXlcEccFPdhSOvtHZ/2WU0XsA8zmXOS3F158lVlcTLhfQ6qvtL1RzbMie0Kp8xtbVwAg4nejKPHw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz", + "integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.71.2", - "@typescript-eslint/types": "^8.71.2", + "@typescript-eslint/tsconfig-utils": "^8.73.0", + "@typescript-eslint/types": "^8.73.0", "debug": "^4.4.3" }, "engines": { @@ -1237,14 +1378,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.2.tgz", - "integrity": "sha512-YF4wgg5iUX5Obywoac27B56FhozMNFhdJSbh11H5GBAwmBtfyRhmgTQqW9tRNNmHDvsZ2CX6UGzoz+YfYn2Leg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz", + "integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2" + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1255,9 +1396,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.2.tgz", - "integrity": "sha512-jz49TAWokm/7yWD9/o837nYax9DyALxIPOImdImvVzo6canBCZYzin8zJyqNR5k1j9K1DE0bVvr0XYB+99uAdg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz", + "integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==", "dev": true, "license": "MIT", "engines": { @@ -1272,15 +1413,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.2.tgz", - "integrity": "sha512-cC8UaalCViJkb3rH/xLIvidEwoFRtMZMUqDjjJMGEKaTFwYRHYBcoczlEGHuvkHEO8svRDrgZ0yQgOArFmwang==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz", + "integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -1297,9 +1438,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.2.tgz", - "integrity": "sha512-y5Ukl3oVp7e/VGxqIoEXoeb/Roj71PAJ4WG/N/RGj+eeDvKRLM15kGr9MijLbN0i03S52zxu31Z98E5gWChJKw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz", + "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", "devOptional": true, "license": "MIT", "engines": { @@ -1311,18 +1452,18 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.2.tgz", - "integrity": "sha512-DgNOEsl4pdYzwSL+N/Cl33tX1Hlw3FvId73LnKXfq7jnrF2viOEn7X+P7RBkkSWCVm92gnWd28GIC5vJuLREeA==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", + "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.71.2", - "@typescript-eslint/tsconfig-utils": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", + "@typescript-eslint/project-service": "8.73.0", + "@typescript-eslint/tsconfig-utils": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3", - "minimatch": "^10.2.2", + "minimatch": "^11.0.1", "semver": "^7.7.3", "tinyglobby": "^0.2.15", "ts-api-utils": "^2.5.0" @@ -1335,20 +1476,43 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { + "@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev", "typescript": ">=4.8.4 <6.1.0" + }, + "peerDependenciesMeta": { + "@typescript/native": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "11.0.8", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", + "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.2.tgz", - "integrity": "sha512-RyKa1G1M9rKHDhrk+HJtiF1MvLD5Ux2JW3TSkzw+02pRALdpJb+QzG1Y5em+LvCgzGwgg8H7mBRFKljNz7ImPw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.73.0.tgz", + "integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2" + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1363,13 +1527,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.2.tgz", - "integrity": "sha512-zozlN0UA32bSG2zkKAgQyRYSbEISVoyU6vvkKYo2aSny74D8Jh4e+POkJ6Lk0dlezZi5x7TtD+88Xb06IB8nhg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz", + "integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.71.2", + "@typescript-eslint/types": "8.73.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -1398,14 +1562,14 @@ } }, "node_modules/@vitest/mocker": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.5.tgz", - "integrity": "sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.0.tgz", + "integrity": "sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.31", - "@vitest/spy": "5.0.5", + "@vitest/spy": "5.1.0", "estree-walker": "^3.0.3", "magic-string": "^1.4.3" }, @@ -1436,9 +1600,9 @@ } }, "node_modules/@vitest/mocker/node_modules/magic-string": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz", - "integrity": "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", "dev": true, "license": "MIT", "dependencies": { @@ -1446,9 +1610,9 @@ } }, "node_modules/@vitest/spy": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.5.tgz", - "integrity": "sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz", + "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==", "dev": true, "license": "MIT", "funding": { @@ -1456,92 +1620,122 @@ } }, "node_modules/@volar/language-core": { - "version": "2.4.28", - "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz", - "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.30.tgz", + "integrity": "sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw==", "dev": true, "license": "MIT", "dependencies": { - "@volar/source-map": "2.4.28" + "@volar/source-map": "2.4.30" + } + }, + "node_modules/@volar/language-service": { + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.4.30.tgz", + "integrity": "sha512-w/xDsASiqC71ggCOm7sTDXDNk/l72XEptodeRC68tgZ0e5QM4hM3zAqBGC7mBctvhrpYwKfMG+t9xcUo2hEFtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.30", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/@volar/source-map": { - "version": "2.4.28", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz", - "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.30.tgz", + "integrity": "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg==", "dev": true, "license": "MIT" }, "node_modules/@volar/typescript": { - "version": "2.4.28", - "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz", - "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.30.tgz", + "integrity": "sha512-/DgA5tgYFPfrLFuSjIMXMGHk1LQv2+P8eny6+BhGNzFJELWIW7UZlc56ZLIRFhLsPpMfIFxM8/HvOPBggrjTZg==", "dev": true, "license": "MIT", "dependencies": { - "@volar/language-core": "2.4.28", + "@volar/language-core": "2.4.30", + "@volar/language-service": "2.4.30", "path-browserify": "^1.0.1", "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/@vue/compiler-core": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.44.tgz", - "integrity": "sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.45.tgz", + "integrity": "sha512-XGHJrM6ufZARAc/w+tyOswStw9tdKiqCKBScI4gGaNxD+aaGu/HQWgKJ+JItjRLPqenQ7iE7G8AJC7T5ew1p+g==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.9", - "@vue/shared": "3.5.44", + "@babel/parser": "^7.29.12", + "@vue/shared": "3.5.45", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.2" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.44.tgz", - "integrity": "sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.45.tgz", + "integrity": "sha512-LbP2d19GSOYGPmvMBBCVJVlv7TKtjM1Cfeyu3cYia720pknZP+1cLX7H5MVatvruT6MuJhiPuNbQBW/MDn/EwA==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.5.44", - "@vue/shared": "3.5.44" + "@vue/compiler-core": "3.5.45", + "@vue/shared": "3.5.45" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.44.tgz", - "integrity": "sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.45.tgz", + "integrity": "sha512-MKFjb2UX0M/l/jhfzqMLrI8VM4pfvFKG3pqFZkSZFHRLtNld/O4RtUPZFWSwhro/14qP88UQEkWzHxAZAQ0tsw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.9", - "@vue/compiler-core": "3.5.44", - "@vue/compiler-dom": "3.5.44", - "@vue/compiler-ssr": "3.5.44", - "@vue/shared": "3.5.44", + "@babel/parser": "^7.29.12", + "@vue/compiler-core": "3.5.45", + "@vue/compiler-dom": "3.5.45", + "@vue/compiler-ssr": "3.5.45", + "@vue/shared": "3.5.45", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", - "postcss": "^8.5.29", + "postcss": "^8.5.32", "source-map-js": "^1.2.2" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.44.tgz", - "integrity": "sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.45.tgz", + "integrity": "sha512-RF5sbZOfYz5AK00tOJUn2PwFXR2fS1u2HVzI8D9VF9rGAFxuGBqg2bB1kJ3ZHMprqSltXnT9MZE1IsqjSM8oew==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.44", - "@vue/shared": "3.5.44" + "@vue/compiler-dom": "3.5.45", + "@vue/shared": "3.5.45" } }, "node_modules/@vue/language-core": { - "version": "3.3.13", - "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.13.tgz", - "integrity": "sha512-axA0Xemn5LuUKuKWob0/kVq7xQ2mJJM6VqA9Exvt35nM9yRC31goWVve/G/Zb2ZCLsXC8FHYjjfXlnshknSCew==", + "version": "3.3.14", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.14.tgz", + "integrity": "sha512-kRB+3hHg0c+BdD1XLAvwjVMQd5pC05zijSlPDRI3ERvC/s04JlRs5upy2KjeMg/9m9oD5zuMVh9yVvkKfZqoJg==", "dev": true, "license": "MIT", "dependencies": { - "@volar/language-core": "2.4.28", + "@volar/language-core": "2.4.30", "@vue/compiler-dom": "^3.5.0", "@vue/shared": "^3.5.0", "alien-signals": "^3.2.1", @@ -1551,51 +1745,51 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.44.tgz", - "integrity": "sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.45.tgz", + "integrity": "sha512-WqkyubNWpI4OYBOipSrjIssMdJO8K1i9Zts/Wm8Er10/0msOEwCyWWWvZnAI7WW3kQsTong6DJp8Cbb+vd4cPA==", "license": "MIT", "dependencies": { - "@vue/shared": "3.5.44" + "@vue/shared": "3.5.45" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.44.tgz", - "integrity": "sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.45.tgz", + "integrity": "sha512-bzIO3+FABjpj85uIKSc+Qnj36/sxDNI3tcH9i6w6xKA1k6e0ejv0G0jMCfeJBvK3yGL5XbJ3DMZj+ClqyCHFYw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.44", - "@vue/shared": "3.5.44" + "@vue/reactivity": "3.5.45", + "@vue/shared": "3.5.45" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.44.tgz", - "integrity": "sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.45.tgz", + "integrity": "sha512-ZvRTFMDgfqTDYWvJfoVpQTJx1RN5M6l7Pyd6wfdY2NaXzbPQVh9ezeQYFbNPP6bIcRVn2SqSSR25N/jSW69BFw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.44", - "@vue/runtime-core": "3.5.44", - "@vue/shared": "3.5.44", + "@vue/reactivity": "3.5.45", + "@vue/runtime-core": "3.5.45", + "@vue/shared": "3.5.45", "csstype": "^3.2.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.44.tgz", - "integrity": "sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.45.tgz", + "integrity": "sha512-1fNXUHhhsWf4EVL4XixbGBU5mKdiIXJAB82feHRTyPPo6ZUEYWIJuEeUl3mVV6QDBp50HJOX4obLhxYXlrjrzA==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.5.44", - "@vue/runtime-dom": "3.5.44", - "@vue/shared": "3.5.44" + "@vue/compiler-ssr": "3.5.45", + "@vue/runtime-dom": "3.5.45", + "@vue/shared": "3.5.45" } }, "node_modules/@vue/shared": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", - "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.45.tgz", + "integrity": "sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ==", "license": "MIT" }, "node_modules/@vue/test-utils": { @@ -1899,19 +2093,6 @@ "node": ">= 8" } }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "license": "MIT", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -1980,27 +2161,27 @@ } }, "node_modules/dockview": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/dockview/-/dockview-8.6.0.tgz", - "integrity": "sha512-8vB79viOgyYSes8VzPeHKcnZWFt81hX3ibOYnf2yBbegNm9SgoR8nU3n3xDH3Cnkq5t2xl5X4hlBVRZeI5s8HA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/dockview/-/dockview-8.9.0.tgz", + "integrity": "sha512-uZYPtKEOb7j8rrSeT1PqfPP9z5OEiM9+NhLgn9lZ3hVhVpmrWoAWckY7MFGsnQINR3on9mza4RlJQ9lYyq0Ivg==", "license": "MIT", "dependencies": { - "dockview-core": "^8.6.0" + "dockview-core": "^8.9.0" } }, "node_modules/dockview-core": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/dockview-core/-/dockview-core-8.6.0.tgz", - "integrity": "sha512-BTj0mCIdP5rtshAhVA9bqy14NOKYns+fBJJvFbU2xy2vkK9aiDMf8rQCvfeG+qF1D+TIDc+OLT8h9mlgQ6PHFA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/dockview-core/-/dockview-core-8.9.0.tgz", + "integrity": "sha512-qsXM+9wFik5WSEBq8x4KP041v19iM6cgSKVFrQpIgkJSXTM00+zEb66hI1kG3e+O7L4IKUfSziMUyZrofwetlg==", "license": "MIT" }, "node_modules/dockview-vue": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/dockview-vue/-/dockview-vue-8.6.0.tgz", - "integrity": "sha512-2ZYS5xMdSuTxK9tmaSqAmKTaB5Rxn2ij4gNt0gyg37RBxZyVG4FdZNjZU1U8d2JbzetlH1AXlLoPJAFPwC8EVg==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/dockview-vue/-/dockview-vue-8.9.0.tgz", + "integrity": "sha512-djwq2UWX3AW4YuuC0ESJQWSO0NfCPHXGB/VQIvRThfynaQaI4k611MLfpX16VwKvwL2tYsei0RMr/PA3LDDszg==", "license": "MIT", "dependencies": { - "dockview": "^8.6.0" + "dockview": "^8.9.0" }, "peerDependencies": { "vue": "^3.4.0" @@ -2067,9 +2248,9 @@ } }, "node_modules/eslint": { - "version": "10.13.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.13.0.tgz", - "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==", + "version": "10.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz", + "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", "dev": true, "license": "MIT", "workspaces": [ @@ -2078,11 +2259,11 @@ "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.5", + "@eslint/config-array": "^0.23.6", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", - "@humanfs/node": "^0.16.6", + "@humanfs/node": "^0.16.8", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", @@ -2103,7 +2284,7 @@ "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "minimatch": "^10.2.5", + "minimatch": "^11.0.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, @@ -2126,15 +2307,16 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "65.3.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-65.3.11.tgz", - "integrity": "sha512-gBHU5ansRN+aQTVuLbpXaLlSKChRfBtfDDEeVHDdjSfbUAhVxMNAI/gESSnOCuUlpYlfPUIdIFWDVCNka95mRw==", + "version": "65.4.9", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-65.4.9.tgz", + "integrity": "sha512-ttYiKRxtHfYh8blmYcP+5B7XO/nm4Az57X7sW7NO4MJ9EEM3SaOsMCP1QgLVK+Q9SjF5GdQyu95POHJ+Z8rHtA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@es-joy/jsdoccomment": "~0.98.0", + "@es-joy/escodegen": "^5.0.1", + "@es-joy/jsdoccomment": "~1.2.0", "@es-joy/resolve.exports": "1.2.0", - "@typescript-eslint/utils": "^8.70.1", + "@typescript-eslint/utils": "^8.72.2", "are-docs-informative": "^0.1.1", "comment-parser": "1.4.9", "debug": "^4.4.3", @@ -2144,7 +2326,7 @@ "html-entities": "^2.6.0", "object-deep-merge": "^2.0.1", "parse-imports-exports": "^0.2.4", - "semver": "^7.8.5", + "semver": "^7.8.6", "spdx-expression-parse": "^5.0.0", "to-valid-identifier": "^1.0.0" }, @@ -2175,16 +2357,16 @@ } }, "node_modules/eslint-plugin-vue": { - "version": "10.11.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.11.1.tgz", - "integrity": "sha512-pasVXhl7wUmIvhujoqs/m0mJ9r59QW1IR9XXYKGR0FETzSM+Hhlf4qKIYgWiDDP+9YKv4YfbwskD7LqIdVcgQw==", + "version": "10.12.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.12.1.tgz", + "integrity": "sha512-Z5hmchVWq4EEOCn131J2p/uS4hjkrC+goPV5c/YApTY68xTqV3K5IYqD0mYGupDvZ6iYoTSuhSZUoWN+gZIqZQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", "natural-compare": "^1.4.0", "nth-check": "^2.1.1", - "postcss-selector-parser": "^7.1.4", + "postcss-selector-parser": "^7.1.7", "semver": "^7.8.5", "xml-name-validator": "^5.0.0" }, @@ -2238,6 +2420,23 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/minimatch": { + "version": "11.0.8", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", + "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/esm-env": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz", @@ -2262,6 +2461,20 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/esquery": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", @@ -2405,6 +2618,24 @@ "flat-cache": "^6.1.23" } }, + "node_modules/file-type": { + "version": "22.3.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-22.3.0.tgz", + "integrity": "sha512-PrPedgnnWl5bWz3JHgar0QSzRvzeyFh7dZ9JpYOgcPZu4KALS9zw4MMa6qXRYyjeBsAlpaWB2boLuG991+0HIQ==", + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.6.0", + "strtok3": "^10.6.3", + "token-types": "^6.1.2", + "uint8array-extras": "^1.6.0" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -2488,9 +2719,9 @@ } }, "node_modules/globals": { - "version": "17.13.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.13.0.tgz", - "integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==", + "version": "17.14.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz", + "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==", "dev": true, "license": "MIT", "engines": { @@ -2687,14 +2918,13 @@ "license": "MIT" }, "node_modules/jsdoc-type-pratt-parser": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-9.2.2.tgz", - "integrity": "sha512-eFY7Rlscvv/BpY6UsVsjKwMhu1tJO/F4U/vC9g3yeRy/JqszuO1UP6Vdq+85G+3FP6fEw/sWR8a5ftPFY86csw==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-9.5.0.tgz", + "integrity": "sha512-Qu/AuBJocEUhxq187P4Ud7xGBHB+NhtrclSrS7Utkr6uNeeh8BrZ5+Ax/AGe8VXQLGY+4oYgbUp04hY8iGsIWA==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.9", - "@types/node": "^26.4.0" + "@types/estree": "^1.0.9" }, "engines": { "node": "^22.22.2 || >=24.15.0" @@ -3213,9 +3443,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.19", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", - "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", "funding": [ { "type": "github", @@ -3424,13 +3654,13 @@ } }, "node_modules/playwright": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz", - "integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", + "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.64.1" + "playwright-core": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -3440,9 +3670,9 @@ } }, "node_modules/playwright-core": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz", - "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", + "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3453,9 +3683,9 @@ } }, "node_modules/postcss": { - "version": "8.5.29", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.29.tgz", - "integrity": "sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ==", + "version": "8.5.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", "funding": [ { "type": "opencollective", @@ -3472,7 +3702,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.19", + "nanoid": "^3.3.20", "picocolors": "^1.1.1", "source-map-js": "^1.2.2" }, @@ -3481,13 +3711,12 @@ } }, "node_modules/postcss-selector-parser": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz", - "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz", + "integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==", "dev": true, "license": "MIT", "dependencies": { - "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" }, "engines": { @@ -3580,13 +3809,13 @@ } }, "node_modules/rolldown": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.13.tgz", - "integrity": "sha512-/5apOkwWxtACcQtZ5WlrAsKS4JwXVThQPJZ3RqIruRY9UG9M8e0VlXN068xum/JRKA4aIUoJ13ghe/kGCvidiQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz", + "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==", "dev": true, "license": "MIT", "dependencies": { - "@oxc-project/types": "=0.153.0", + "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "bin": { @@ -3596,27 +3825,28 @@ "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.13", - "@rolldown/binding-android-arm64": "1.2.13", - "@rolldown/binding-darwin-arm64": "1.2.13", - "@rolldown/binding-darwin-x64": "1.2.13", - "@rolldown/binding-freebsd-x64": "1.2.13", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.13", - "@rolldown/binding-linux-arm64-gnu": "1.2.13", - "@rolldown/binding-linux-arm64-musl": "1.2.13", - "@rolldown/binding-linux-ppc64-gnu": "1.2.13", - "@rolldown/binding-linux-s390x-gnu": "1.2.13", - "@rolldown/binding-linux-x64-gnu": "1.2.13", - "@rolldown/binding-linux-x64-musl": "1.2.13", - "@rolldown/binding-openharmony-arm64": "1.2.13", - "@rolldown/binding-win32-arm64-msvc": "1.2.13", - "@rolldown/binding-win32-x64-msvc": "1.2.13" + "@rolldown/binding-android-arm-eabi": "1.2.19", + "@rolldown/binding-android-arm64": "1.2.19", + "@rolldown/binding-darwin-arm64": "1.2.19", + "@rolldown/binding-darwin-x64": "1.2.19", + "@rolldown/binding-freebsd-x64": "1.2.19", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", + "@rolldown/binding-linux-arm64-gnu": "1.2.19", + "@rolldown/binding-linux-arm64-musl": "1.2.19", + "@rolldown/binding-linux-ppc64-gnu": "1.2.19", + "@rolldown/binding-linux-s390x-gnu": "1.2.19", + "@rolldown/binding-linux-x64-gnu": "1.2.19", + "@rolldown/binding-linux-x64-musl": "1.2.19", + "@rolldown/binding-openharmony-arm64": "1.2.19", + "@rolldown/binding-wasm32-wasi": "1.2.19", + "@rolldown/binding-win32-arm64-msvc": "1.2.19", + "@rolldown/binding-win32-x64-msvc": "1.2.19" } }, "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -3649,6 +3879,17 @@ "node": ">=8" } }, + "node_modules/source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0.tgz", + "integrity": "sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">= 12" + } + }, "node_modules/source-map-js": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", @@ -3691,9 +3932,9 @@ "license": "MIT" }, "node_modules/strtok3": { - "version": "10.6.1", - "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.6.1.tgz", - "integrity": "sha512-p8ynRS8lXnvA3tsdcUYFjbzwh2MsdBZgxrFT2G+Yb7vNvUfPF+GgHCt/0jkayfsRXA1TwtZstf+JA0V+iQXdHA==", + "version": "10.8.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.8.0.tgz", + "integrity": "sha512-e6bW3fD6V01DPmcbLfNtn0cjsiHvTKS/hivgbzqYMfHb/nLes4QQ0H5QBxlkPQayF4xv08AvlSgptGwN86Eemw==", "license": "MIT", "dependencies": { "@tokenizer/token": "^0.3.0" @@ -3793,12 +4034,12 @@ } }, "node_modules/token-types": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.2.tgz", - "integrity": "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.2.0.tgz", + "integrity": "sha512-s9euYHM//T3loJtbNUYdbAzsMlvKBeRS+XCLFy+UGosMQH19Hwjap5k19i4PPAEJJBsVIpMpVTxl4fIqCuNfUg==", "license": "MIT", "dependencies": { - "@borewit/text-codec": "^0.2.1", + "@borewit/text-codec": "^0.2.3", "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" }, @@ -3823,6 +4064,14 @@ "typescript": ">=4.8.4" } }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD", + "optional": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -3851,16 +4100,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.2.tgz", - "integrity": "sha512-Rz4effbMy2g9wnvOJZG6SbVavX313Lap1vNEbk1RUochzickvzP8P4HB+bkNg5e50eVz1hQGjh9K1omI1xB4Bw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.73.0.tgz", + "integrity": "sha512-+EnKy9rkYPun4l+kG2bDuYWQ6y1tGVgdR/tY1U9AC6h21CjEwOoc7gsjwe0FXB8uWFzk4QiCFbuRWgX758PiAg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.71.2", - "@typescript-eslint/parser": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2" + "@typescript-eslint/eslint-plugin": "8.73.0", + "@typescript-eslint/parser": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3976,16 +4225,16 @@ } }, "node_modules/vite": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.4.tgz", - "integrity": "sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==", + "version": "8.3.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz", + "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==", "dev": true, "license": "MIT", "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", - "postcss": "^8.5.29", - "rolldown": "~1.2.12", + "postcss": "^8.5.32", + "rolldown": "~1.2.18", "tinyglobby": "^0.2.17" }, "bin": { @@ -4002,7 +4251,7 @@ }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.7.1", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", @@ -4054,14 +4303,14 @@ } }, "node_modules/vitest": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.5.tgz", - "integrity": "sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.0.tgz", + "integrity": "sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", - "@vitest/mocker": "5.0.5", + "@vitest/mocker": "5.1.0", "chai": "^6.3.0", "es-module-lexer": "^2.3.2", "expect-type": "^1.4.0", @@ -4087,12 +4336,12 @@ "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "5.0.5", - "@vitest/browser-preview": "5.0.5", + "@vitest/browser-playwright": "5.1.0", + "@vitest/browser-preview": "5.1.0", "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", - "@vitest/coverage-istanbul": "5.0.5", - "@vitest/coverage-v8": "5.0.5", - "@vitest/ui": "5.0.5", + "@vitest/coverage-istanbul": "5.1.0", + "@vitest/coverage-v8": "5.1.0", + "@vitest/ui": "5.1.0", "happy-dom": "*", "jsdom": "*", "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" @@ -4146,6 +4395,41 @@ "@jridgewell/sourcemap-codec": "^1.6.0" } }, + "node_modules/vscode-jsonrpc": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-10.0.0.tgz", + "integrity": "sha512-USSfxg0vDIpTQqlQBGxF3mBARyoS8cU7LHLpbYNh6dOJt32dlskxPWB0Irrh5TllTmyf7oNLAvqDqzklbwwnpA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.17.0" + } + }, + "node_modules/vscode-languageserver-protocol": { + "version": "3.18.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.5.tgz", + "integrity": "sha512-FW4fBMzZ99N8xeob4py0l050wgCoRgTpEq5Xcsb9lM1bc29UKGR/wSV+4knaqFxssFHajy7OzNiKP/m3U1ZEuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "vscode-jsonrpc": "10.0.0", + "vscode-languageserver-types": "3.18.5" + } + }, + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz", + "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-languageserver-types": { + "version": "3.18.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.18.5.tgz", + "integrity": "sha512-kPd6+JQNz3HMJvjKlqUxERSlZHAntl/aGpsk7ImwIh0ewDKDcjgAEyVSYciPiOJD3ftbK9IrfiqUeTZLSbCizw==", + "dev": true, + "license": "MIT" + }, "node_modules/vscode-uri": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz", @@ -4154,16 +4438,16 @@ "license": "MIT" }, "node_modules/vue": { - "version": "3.5.44", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.44.tgz", - "integrity": "sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==", + "version": "3.5.45", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.45.tgz", + "integrity": "sha512-3cvsib8m9c0vB24+MDKsgcW4+Da4xaBl9Z/5Tbm2pmSIsRPxcil4cdXjXlVsmJ2g64XJo5h+IRd7rsdGT9pZaw==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.44", - "@vue/compiler-sfc": "3.5.44", - "@vue/runtime-dom": "3.5.44", - "@vue/server-renderer": "3.5.44", - "@vue/shared": "3.5.44" + "@vue/compiler-dom": "3.5.45", + "@vue/compiler-sfc": "3.5.45", + "@vue/runtime-dom": "3.5.45", + "@vue/server-renderer": "3.5.45", + "@vue/shared": "3.5.45" }, "peerDependencies": { "typescript": "*" @@ -4207,14 +4491,14 @@ } }, "node_modules/vue-tsc": { - "version": "3.3.13", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.13.tgz", - "integrity": "sha512-jE4/bXdOMSHVxEGgQCqNllJy+9N3Gx6tfSAsg0yhFK/MAN6eXqISihupnDEKSCt12VVnjN2gI3AqLYcqoh5x/A==", + "version": "3.3.14", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.14.tgz", + "integrity": "sha512-URAu2H9AuMZMg9GCgnqbaHHHd8pBZRAwNV2e2yYS8VDsoTVXHiOSo663OS6DkEvauQ2yixn5TPFJ9WV9QIspkA==", "dev": true, "license": "MIT", "dependencies": { - "@volar/typescript": "2.4.28", - "@vue/language-core": "3.3.13" + "@volar/typescript": "2.4.30", + "@vue/language-core": "3.3.14" }, "bin": { "vue-tsc": "bin/vue-tsc.js" diff --git a/package.json b/package.json index 8c74a856..e61ec26d 100644 --- a/package.json +++ b/package.json @@ -33,21 +33,21 @@ }, "devDependencies": { "@eslint/js": "^10.0.1", - "@playwright/test": "^1.64.1", - "@types/node": "^26.6.5", + "@playwright/test": "^1.65.1", + "@types/node": "^26.6.6", "@vitejs/plugin-vue": "^6.0.10", "@vue/test-utils": "2.5.1", - "eslint": "^10.13.0", - "eslint-plugin-jsdoc": "^65.3.11", - "eslint-plugin-vue": "^10.11.1", - "globals": "^17.13.0", + "eslint": "^10.15.0", + "eslint-plugin-jsdoc": "^65.4.9", + "eslint-plugin-vue": "^10.12.1", + "globals": "^17.14.0", "happy-dom": "^21.0.3", "prettier": "^3.9.10", "typescript": "^6.0.3", - "typescript-eslint": "^8.71.2", - "vite": "^8.3.4", - "vitest": "^5.0.5", - "vue-tsc": "^3.3.13" + "typescript-eslint": "^8.73.0", + "vite": "^8.3.8", + "vitest": "^5.1.0", + "vue-tsc": "^3.3.14" }, "overrides": { "monaco-editor": { diff --git a/src/CStructSharp.Core/Codecs/BitfieldCodecTable.cs b/src/CStructSharp.Core/Codecs/BitfieldCodecTable.cs index 027383a9..22a0ffc0 100644 --- a/src/CStructSharp.Core/Codecs/BitfieldCodecTable.cs +++ b/src/CStructSharp.Core/Codecs/BitfieldCodecTable.cs @@ -229,6 +229,8 @@ private void Register( } /// Describes the fixed-width integer storage facts needed by every bitfield executor. + /// The storage unit's width in bytes. + /// Whether the storage unit is read least-significant byte first. public readonly record struct Entry(int ByteSize, bool IsLittleEndian) { /// The storage unit's width in bits, the widest bitfield it can hold. diff --git a/src/CStructSharp.Core/Codecs/CharacterFieldTypes.cs b/src/CStructSharp.Core/Codecs/CharacterFieldTypes.cs index eeb9d235..58d144ad 100644 --- a/src/CStructSharp.Core/Codecs/CharacterFieldTypes.cs +++ b/src/CStructSharp.Core/Codecs/CharacterFieldTypes.cs @@ -42,10 +42,10 @@ public static string GetStringPointerHandlerKey(string typeName) return typeName; } - return typeName == WcharBigEndianType.Name ? "string>" - : typeName == WcharLittleEndianType.Name ? "string<" - : typeName == WcharType.Name ? StringType.Name - : CstringType.Name; + return typeName == WcharBigEndianType.Name ? "string>" : + typeName == WcharLittleEndianType.Name ? "string<" : + typeName == WcharType.Name ? StringType.Name : + CstringType.Name; } /// Returns whether a non-pointer field is a fixed array of narrow or wide characters. diff --git a/src/CStructSharp.Core/Codecs/CustomCodecDescriptor.cs b/src/CStructSharp.Core/Codecs/CustomCodecDescriptor.cs index 76d29f46..b2119c54 100644 --- a/src/CStructSharp.Core/Codecs/CustomCodecDescriptor.cs +++ b/src/CStructSharp.Core/Codecs/CustomCodecDescriptor.cs @@ -1,4 +1,7 @@ namespace CStructSharp.Codecs; /// What the compiler needs to know about a custom codec: its name, fixed size (null when variable), and alignment. +/// The type name layouts use for the codec. +/// The encoded size in bytes, or when each value determines its own size. +/// The codec's alignment in bytes. internal readonly record struct CustomCodecDescriptor(string Name, int? FixedSize, int Alignment); diff --git a/src/CStructSharp.Core/Codecs/PrimitiveCodec.cs b/src/CStructSharp.Core/Codecs/PrimitiveCodec.cs index be866c17..b135e987 100644 --- a/src/CStructSharp.Core/Codecs/PrimitiveCodec.cs +++ b/src/CStructSharp.Core/Codecs/PrimitiveCodec.cs @@ -3,137 +3,16 @@ namespace CStructSharp.Codecs; using System; using CStructSharp.Diagnostics; -/// Identity of a primitive codec, resolved once per compiled field. -internal enum PrimitiveCodecKind : byte -{ - /// Not a primitive (composite, pointer, unknown). - None, - - /// Unsigned 8-bit integer (byte, uint8), 1 byte. - UInt8, - - /// Signed 8-bit integer (int8), 1 byte. - Int8, - - /// Boolean stored in 1 byte; any nonzero byte reads as true. - Bool, - - /// One-byte character (char). - Char, - - /// One ISO-8859-1 (Latin-1) code unit, 1 byte. - Latin1, - - /// One IBM code page 437 code unit, 1 byte. - Cp437, - - /// One UTF-8 code unit, 1 byte; arrays of it decode as bounded UTF-8 text. - Utf8Unit, - - /// UTF-16 little-endian text counted in bytes (utf16le); arrays decode as bounded text. - Utf16LeUnit, - - /// UTF-16 big-endian text counted in bytes (utf16be); arrays decode as bounded text. - Utf16BeUnit, - - /// One 2-byte wide character (wchar) in the field's byte order. - WChar, - - /// Signed 16-bit integer, 2 bytes. - Int16, - - /// Unsigned 16-bit integer, 2 bytes. - UInt16, - - /// Signed 24-bit integer, 3 bytes. - Int24, - - /// Unsigned 24-bit integer, 3 bytes. - UInt24, - - /// Signed 32-bit integer, 4 bytes. - Int32, - - /// Unsigned 32-bit integer, 4 bytes. - UInt32, - - /// Signed 64-bit integer, 8 bytes. - Int64, - - /// Unsigned 64-bit integer, 8 bytes. - UInt64, - - /// IEEE 754 single-precision float, 4 bytes. - Float32, - - /// IEEE 754 double-precision float, 8 bytes. - Float64, - - /// Variable-length unsigned LEB128 value limited to 32 bits. - ULeb128_32, - - /// Variable-length unsigned LEB128 value limited to 64 bits. - ULeb128_64, - - /// Variable-length signed LEB128 value limited to 32 bits. - SLeb128_32, - - /// Variable-length signed LEB128 value limited to 64 bits. - SLeb128_64, - - /// Signed 16.16 fixed-point number, 4 bytes. - Fixed16_16, - - /// Unsigned 16.16 fixed-point number, 4 bytes. - UFixed16_16, - - /// Signed 2.30 fixed-point number, 4 bytes. - Fixed2_30, - - /// Unsigned 8.8 fixed-point number, 2 bytes. - UFixed8_8, - - /// 16-byte UUID stored in network (big-endian) order. - Uuid, - - /// 16-byte GUID in Windows order (first three groups little-endian). - Guid, - - /// ASCII text ended by a terminator character (NUL or newline). - TerminatedAscii, - - /// UTF-8 text ended by a terminator character (NUL or newline). - TerminatedUtf8, - - /// UTF-16 text ended by a terminator code unit (NUL or newline). - TerminatedUtf16, - - // Wide and narrow numerics past the bulk/static-plan range: read through their delegates, never span-decoded. - - /// Signed 48-bit integer, 6 bytes. - Int48, - - /// Unsigned 48-bit integer, 6 bytes. - UInt48, - - /// Signed 128-bit integer, 16 bytes. - Int128, - - /// Unsigned 128-bit integer, 16 bytes. - UInt128, - - /// IEEE 754 half-precision float, 2 bytes. - Float16, - - /// A caller-supplied : delegate path only, size from the codec. - Custom, -} - /// /// Everything the hot paths need to know about a field's primitive codec without touching its name again: /// the kind, the fixed element size (0 when variable), the byte order (neutral spellings resolved against the /// layout's order at compile time), and the category flags, so no hot path compares the spelling again. /// +/// The codec's identity; for a non-primitive field. +/// The fixed element size in bytes; 0 when each value determines its own size. +/// The byte order the codec reads and writes, after resolving </> suffixes. +/// The character that ends a terminated text value; NUL for every other codec. +/// The layout's default byte order, kept even for non-primitive fields. internal readonly partial record struct PrimitiveCodec(PrimitiveCodecKind Kind, byte Size, bool LittleEndian, char Terminator, bool LayoutLittleEndian) { /// The non-primitive codec: kind , size 0, little-endian layout. diff --git a/src/CStructSharp.Core/Codecs/PrimitiveCodecKind.cs b/src/CStructSharp.Core/Codecs/PrimitiveCodecKind.cs new file mode 100644 index 00000000..57e68fca --- /dev/null +++ b/src/CStructSharp.Core/Codecs/PrimitiveCodecKind.cs @@ -0,0 +1,127 @@ +namespace CStructSharp.Codecs; + +/// Identity of a primitive codec, resolved once per compiled field. +internal enum PrimitiveCodecKind : byte +{ + /// Not a primitive (composite, pointer, unknown). + None, + + /// Unsigned 8-bit integer (byte, uint8), 1 byte. + UInt8, + + /// Signed 8-bit integer (int8), 1 byte. + Int8, + + /// Boolean stored in 1 byte; any nonzero byte reads as true. + Bool, + + /// One-byte character (char). + Char, + + /// One ISO-8859-1 (Latin-1) code unit, 1 byte. + Latin1, + + /// One IBM code page 437 code unit, 1 byte. + Cp437, + + /// One UTF-8 code unit, 1 byte; arrays of it decode as bounded UTF-8 text. + Utf8Unit, + + /// UTF-16 little-endian text counted in bytes (utf16le); arrays decode as bounded text. + Utf16LeUnit, + + /// UTF-16 big-endian text counted in bytes (utf16be); arrays decode as bounded text. + Utf16BeUnit, + + /// One 2-byte wide character (wchar) in the field's byte order. + WChar, + + /// Signed 16-bit integer, 2 bytes. + Int16, + + /// Unsigned 16-bit integer, 2 bytes. + UInt16, + + /// Signed 24-bit integer, 3 bytes. + Int24, + + /// Unsigned 24-bit integer, 3 bytes. + UInt24, + + /// Signed 32-bit integer, 4 bytes. + Int32, + + /// Unsigned 32-bit integer, 4 bytes. + UInt32, + + /// Signed 64-bit integer, 8 bytes. + Int64, + + /// Unsigned 64-bit integer, 8 bytes. + UInt64, + + /// IEEE 754 single-precision float, 4 bytes. + Float32, + + /// IEEE 754 double-precision float, 8 bytes. + Float64, + + /// Variable-length unsigned LEB128 value limited to 32 bits. + ULeb128_32, + + /// Variable-length unsigned LEB128 value limited to 64 bits. + ULeb128_64, + + /// Variable-length signed LEB128 value limited to 32 bits. + SLeb128_32, + + /// Variable-length signed LEB128 value limited to 64 bits. + SLeb128_64, + + /// Signed 16.16 fixed-point number, 4 bytes. + Fixed16_16, + + /// Unsigned 16.16 fixed-point number, 4 bytes. + UFixed16_16, + + /// Signed 2.30 fixed-point number, 4 bytes. + Fixed2_30, + + /// Unsigned 8.8 fixed-point number, 2 bytes. + UFixed8_8, + + /// 16-byte UUID stored in network (big-endian) order. + Uuid, + + /// 16-byte GUID in Windows order (first three groups little-endian). + Guid, + + /// ASCII text ended by a terminator character (NUL or newline). + TerminatedAscii, + + /// UTF-8 text ended by a terminator character (NUL or newline). + TerminatedUtf8, + + /// UTF-16 text ended by a terminator code unit (NUL or newline). + TerminatedUtf16, + + // Wide and narrow numerics past the bulk/static-plan range: read through their delegates, never span-decoded. + + /// Signed 48-bit integer, 6 bytes. + Int48, + + /// Unsigned 48-bit integer, 6 bytes. + UInt48, + + /// Signed 128-bit integer, 16 bytes. + Int128, + + /// Unsigned 128-bit integer, 16 bytes. + UInt128, + + /// IEEE 754 half-precision float, 2 bytes. + Float16, + + /// A caller-supplied : delegate path only, size from the codec. + Custom, +} diff --git a/src/CStructSharp.Core/Compilation/CompiledArrayDimension.cs b/src/CStructSharp.Core/Compilation/CompiledArrayDimension.cs index 3c2a5aa1..336543f4 100644 --- a/src/CStructSharp.Core/Compilation/CompiledArrayDimension.cs +++ b/src/CStructSharp.Core/Compilation/CompiledArrayDimension.cs @@ -3,4 +3,6 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; /// One dimension's own count expression and, when statically known, its fixed element count. +/// The dimension's count expression as written, or a marker such as [] or [EOF]. +/// The element count when it is a compile-time constant; for runtime, terminated and to-end dimensions. internal readonly record struct CompiledArrayDimension(Expr? CountExpression, int? FixedCount); diff --git a/src/CStructSharp.Core/Compilation/CompiledConstraint.cs b/src/CStructSharp.Core/Compilation/CompiledConstraint.cs index b0b6d438..90dbbd97 100644 --- a/src/CStructSharp.Core/Compilation/CompiledConstraint.cs +++ b/src/CStructSharp.Core/Compilation/CompiledConstraint.cs @@ -12,8 +12,8 @@ namespace CStructSharp.Compilation; /// The condition as written, quoted by the failure message. /// The label written after the condition, carried by the failure; when none. /// The message written after the label, which a failure reports instead of the generated sentence; when none. -/// The comparisons of the field's bytes with byte strings that reads as hidden values; empty when it has none. /// Whether it was written @magic: checked before the other conditions of its struct, failing as , and the only kind Matches evaluates for a struct that has one. +/// The comparisons of the field's bytes with byte strings that reads as hidden values; empty when it has none. internal sealed record CompiledConstraint(CStructSharp.Diagnostics.ConstraintKind Kind, Expr Expression, string Text, string? Label = null, string? Description = null, bool IsMagic = false, System.Collections.Immutable.ImmutableArray ByteMatches = default) { /// Gets the suffix keyword the constraint was written with, without the @: expect, supports or magic. diff --git a/src/CStructSharp.Core/Compilation/CompiledEnumMember.cs b/src/CStructSharp.Core/Compilation/CompiledEnumMember.cs index 26196473..7dd8ce0e 100644 --- a/src/CStructSharp.Core/Compilation/CompiledEnumMember.cs +++ b/src/CStructSharp.Core/Compilation/CompiledEnumMember.cs @@ -1,4 +1,6 @@ namespace CStructSharp.Compilation; /// Stores one validated symbolic enum member in its exact mathematical domain. +/// The member's declared name. +/// The member's value as two's-complement storage bits in the low bits of the enum's declared width; higher bits are zero. internal readonly record struct CompiledEnumMember(string Name, ulong RawBits); diff --git a/src/CStructSharp.Core/Compilation/CompiledField.cs b/src/CStructSharp.Core/Compilation/CompiledField.cs index 07ffe785..555581d3 100644 --- a/src/CStructSharp.Core/Compilation/CompiledField.cs +++ b/src/CStructSharp.Core/Compilation/CompiledField.cs @@ -256,7 +256,11 @@ public ImmutableArray ByteMatches /// public CompiledArrayShape? PointerElements { - get => this.rareFacts?.Elements; + get + { + return this.rareFacts?.Elements; + } + internal init { if (value is not null) @@ -327,7 +331,11 @@ internal init /// public ImmutableArray Constraints { - get => this.rareFacts?.Constraints ?? ImmutableArray.Empty; + get + { + return this.rareFacts?.Constraints ?? ImmutableArray.Empty; + } + init { if (!value.IsDefaultOrEmpty) diff --git a/src/CStructSharp.Core/Compilation/CompiledTypeReference.cs b/src/CStructSharp.Core/Compilation/CompiledTypeReference.cs index 7b10d35b..b875d12e 100644 --- a/src/CStructSharp.Core/Compilation/CompiledTypeReference.cs +++ b/src/CStructSharp.Core/Compilation/CompiledTypeReference.cs @@ -1,6 +1,9 @@ namespace CStructSharp.Compilation; /// References one canonical type symbol plus pointer shape accumulated from aliases. +/// The canonical type symbol the name resolves to. +/// The number of pointer levels the alias chain adds on top of ; 0 for a plain type. +/// The type name the alias chain ends at, such as void for PVOID. internal readonly record struct CompiledTypeReference( CompiledTypeSymbol Symbol, int PointerDepth, diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Capture.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Capture.cs index 0adecead..f0a788e1 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Capture.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Capture.cs @@ -15,7 +15,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The capture stage: which fields a layout expression can read, so a read or write publishes exactly those as layout variables, and the rule that such a field is an integer. +/// The capture stage: which fields a layout expression can read, so a read or write publishes exactly those as layout variables, and the rule that such a field is an integer. internal sealed partial class LayoutCompilation { /// Adds a field an expression names that cannot be an integer. diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Composites.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Composites.cs index 1cbc248c..1ec9e069 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Composites.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Composites.cs @@ -15,7 +15,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The composite stage: each struct and union's fields, their array shapes and sizeof/offsetof folding, and their placement. +/// The composite stage: each struct and union's fields, their array shapes and sizeof/offsetof folding, and their placement. internal sealed partial class LayoutCompilation { /// Compiles the array strategy of a synthetic root field spelled in a path (uint16[EOF]). diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Introspection.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Introspection.cs index a536d280..d04520e1 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Introspection.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Introspection.cs @@ -10,7 +10,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The description of a compiled layout () and its rendering back to Portable text. +/// The description of a compiled layout () and its rendering back to Portable text. internal sealed partial class LayoutCompilation { /// diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Model.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Model.cs index 32e544e0..226ae194 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Model.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Model.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// Builds and queries the immutable compiled layout model from validated parsed declarations. +/// Builds and queries the immutable compiled layout model from validated parsed declarations. internal sealed partial class LayoutCompilation { private readonly CompiledLayoutModel compiledLayout; diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Normalization.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Normalization.cs index e49a1f93..793da983 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Normalization.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Normalization.cs @@ -16,7 +16,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The normalization stage: declarations with their constant expressions evaluated - case labels, typedef array shapes, enum values, qualified member constants, and #define values. +/// The normalization stage: declarations with their constant expressions evaluated - case labels, typedef array shapes, enum values, qualified member constants, and #define values. internal sealed partial class LayoutCompilation { /// Freezes case constants without recursive traversal or changing runtime selectors. @@ -428,16 +428,20 @@ private Struct NormalizeStructExpressions(Struct strct, Dictionary? { PointerCountExpression = field.PointerCountExpression, Constraints = field.Constraints, - BranchConditions = field.BranchConditions.Count == 0 ? Array.Empty() : field.BranchConditions.Select(item => - new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray(), + BranchConditions = field.BranchConditions.Count == 0 + ? Array.Empty() + : field.BranchConditions.Select(item => + new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray(), }); } return new Struct(strct.Name, fields.ToImmutableList(), strct.IsUnion, strct.CompositeAlignmentOverrideExpression) { Groups = strct.Groups.Length == 0 ? strct.Groups : strct.Groups.Select(group => this.NormalizeConditionalGroup(group, caseConstants, normalizedGroups!)).ToImmutableArray(), - BranchConditions = strct.BranchConditions.Count == 0 ? Array.Empty() : strct.BranchConditions.Select(item => - new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray(), + BranchConditions = strct.BranchConditions.Count == 0 + ? Array.Empty() + : strct.BranchConditions.Select(item => + new ConditionalBranch(this.NormalizeConditionalGroup(item.Group, caseConstants, normalizedGroups!), item.Arm)).ToArray(), }; } } diff --git a/src/CStructSharp.Core/Compilation/LayoutCompilation.Paths.cs b/src/CStructSharp.Core/Compilation/LayoutCompilation.Paths.cs index 038b7985..f907f57f 100644 --- a/src/CStructSharp.Core/Compilation/LayoutCompilation.Paths.cs +++ b/src/CStructSharp.Core/Compilation/LayoutCompilation.Paths.cs @@ -9,7 +9,7 @@ namespace CStructSharp.Compilation; using CStructSharp.Diagnostics; using CStructSharp.Syntax; -/// Contains the small lookup helpers that connect parsed layout declarations to public paths. +/// Contains the small lookup helpers that connect parsed layout declarations to public paths. internal sealed partial class LayoutCompilation { /// Returns a struct selected during path traversal or raises the caller's focused path error. diff --git a/src/CStructSharp.Core/Compilation/PlacementCursor.cs b/src/CStructSharp.Core/Compilation/PlacementCursor.cs index a0aebbc3..7176fa4b 100644 --- a/src/CStructSharp.Core/Compilation/PlacementCursor.cs +++ b/src/CStructSharp.Core/Compilation/PlacementCursor.cs @@ -45,7 +45,11 @@ public PlacementCursor(long start, bool aligned, BitfieldPacking packing, bool h /// Gets the position the next field starts from (before its own alignment), or when unknown. public long? Current { - readonly get => this.known ? this.position : null; + readonly get + { + return this.known ? this.position : null; + } + private set { this.known = value.HasValue; diff --git a/src/CStructSharp.Core/Compilation/Programs/ProgramExpression.cs b/src/CStructSharp.Core/Compilation/Programs/ProgramExpression.cs index aa55a221..2c677c31 100644 --- a/src/CStructSharp.Core/Compilation/Programs/ProgramExpression.cs +++ b/src/CStructSharp.Core/Compilation/Programs/ProgramExpression.cs @@ -269,11 +269,10 @@ private static FastForm Classify(SessionInstruction[] code) return FastForm.Operand; } - return code.Length == 3 && IsOperand(code[0]) && IsOperand(code[1]) && - code[2].Opcode is ExpressionOpcode.Equal or ExpressionOpcode.NotEqual or ExpressionOpcode.Less or ExpressionOpcode.LessOrEqual or - ExpressionOpcode.Greater or ExpressionOpcode.GreaterOrEqual or ExpressionOpcode.And or ExpressionOpcode.Or or ExpressionOpcode.Xor - ? FastForm.Binary - : FastForm.None; + bool binary = code.Length == 3 && IsOperand(code[0]) && IsOperand(code[1]) && + code[2].Opcode is ExpressionOpcode.Equal or ExpressionOpcode.NotEqual or ExpressionOpcode.Less or ExpressionOpcode.LessOrEqual or + ExpressionOpcode.Greater or ExpressionOpcode.GreaterOrEqual or ExpressionOpcode.And or ExpressionOpcode.Or or ExpressionOpcode.Xor; + return binary ? FastForm.Binary : FastForm.None; } /// Reads a literal operand, or an identifier whose slot holds a literal. diff --git a/src/CStructSharp.Core/Compilation/Programs/ReadProgramCompiler.cs b/src/CStructSharp.Core/Compilation/Programs/ReadProgramCompiler.cs index 49040535..8c2d5f1b 100644 --- a/src/CStructSharp.Core/Compilation/Programs/ReadProgramCompiler.cs +++ b/src/CStructSharp.Core/Compilation/Programs/ReadProgramCompiler.cs @@ -718,10 +718,10 @@ protected override void OnArmsEnd(ReadProgramBuilder builder, int index) // The engine takes an element struct's block path over the whole array only for one dimension, and never // for union elements. - ReadOpCode read = nested.IsUnion ? this.debug ? ReadOpCode.DebugUnionArray : ReadOpCode.ReadUnionArray - : this.debug ? ReadOpCode.DebugStructArray - : table ? ReadOpCode.ReadStructElements - : ReadOpCode.ReadStructArray; + ReadOpCode read = nested.IsUnion ? (this.debug ? ReadOpCode.DebugUnionArray : ReadOpCode.ReadUnionArray) : + this.debug ? ReadOpCode.DebugStructArray : + table ? ReadOpCode.ReadStructElements : + ReadOpCode.ReadStructArray; builder.Emit(read, index, builder.AddNested(program), 0); EmitReshape(builder, index, table); return null; @@ -775,11 +775,11 @@ protected override void OnArmsEnd(ReadProgramBuilder builder, int index) // A debug parse reads every numeric element on its own, with a record, whoever places the array. A row of a // multidimensional array that a path selected is a list like every row, never a typed array. bool list = table || field.IsArrayRow; - ReadOpCode op = !field.Codec.IsFixedWidthNumeric ? this.debug ? ReadOpCode.DebugCodecArray : ReadOpCode.ReadCodecArray - : this.debug ? list ? ReadOpCode.DebugNumericElementList : ReadOpCode.DebugNumericElements - : table ? standalone ? ReadOpCode.ReadNumericElementList : ReadOpCode.ReadNumericList - : standalone ? field.IsArrayRow ? ReadOpCode.ReadNumericElementList : ReadOpCode.ReadNumericElements - : ReadOpCode.ReadNumericArray; + ReadOpCode op = !field.Codec.IsFixedWidthNumeric ? (this.debug ? ReadOpCode.DebugCodecArray : ReadOpCode.ReadCodecArray) : + this.debug ? (list ? ReadOpCode.DebugNumericElementList : ReadOpCode.DebugNumericElements) : + table ? (standalone ? ReadOpCode.ReadNumericElementList : ReadOpCode.ReadNumericList) : + standalone ? (field.IsArrayRow ? ReadOpCode.ReadNumericElementList : ReadOpCode.ReadNumericElements) : + ReadOpCode.ReadNumericArray; builder.Emit(op, index, codec, 0); EmitReshape(builder, index, table); return null; @@ -956,9 +956,9 @@ private void EmitCapture(ReadProgramBuilder builder, int index) else { builder.Emit( - field.Enum is not null ? ReadOpCode.CaptureEnum - : field.Codec.Kind == PrimitiveCodecKind.UInt128 ? ReadOpCode.CaptureUInt128 - : ReadOpCode.CaptureInteger, + field.Enum is not null ? ReadOpCode.CaptureEnum : + field.Codec.Kind == PrimitiveCodecKind.UInt128 ? ReadOpCode.CaptureUInt128 : + ReadOpCode.CaptureInteger, index, slot, 0); diff --git a/src/CStructSharp.Core/Compilation/Programs/WriteProgramCompiler.cs b/src/CStructSharp.Core/Compilation/Programs/WriteProgramCompiler.cs index 1b1ac7fa..53f20099 100644 --- a/src/CStructSharp.Core/Compilation/Programs/WriteProgramCompiler.cs +++ b/src/CStructSharp.Core/Compilation/Programs/WriteProgramCompiler.cs @@ -488,9 +488,9 @@ private bool IsText(WriteProgramBuilder builder, int index) return Refuse(location, field, NoWriter); } - WriteOpCode op = field.Array.Dimensions.Length > 1 ? WriteOpCode.WriteLeaves - : elements == WriteElementKind.Numeric ? WriteOpCode.WriteNumericArray - : WriteOpCode.WriteElements; + WriteOpCode op = field.Array.Dimensions.Length > 1 ? WriteOpCode.WriteLeaves : + elements == WriteElementKind.Numeric ? WriteOpCode.WriteNumericArray : + WriteOpCode.WriteElements; builder.Emit(op, index, operand, op == WriteOpCode.WriteNumericArray ? (standalone ? 1 : 0) : (int)elements); return null; } diff --git a/src/CStructSharp.Core/Diagnostics/DebugPath.cs b/src/CStructSharp.Core/Diagnostics/DebugPath.cs index 7a274807..8ad85d07 100644 --- a/src/CStructSharp.Core/Diagnostics/DebugPath.cs +++ b/src/CStructSharp.Core/Diagnostics/DebugPath.cs @@ -5,6 +5,8 @@ namespace CStructSharp.Diagnostics; using CStructSharp.Syntax; /// A persistent debug path shares parent segments without cloning declarations or path arrays. +/// The path this segment extends, or for a first segment. +/// The segment's field name. internal sealed class DebugPath(DebugPath? parent, string name) { private readonly string name = name; diff --git a/src/CStructSharp.Core/Expressions/ExpressionEvaluationLimits.cs b/src/CStructSharp.Core/Expressions/ExpressionEvaluationLimits.cs index f2424874..d184b0c9 100644 --- a/src/CStructSharp.Core/Expressions/ExpressionEvaluationLimits.cs +++ b/src/CStructSharp.Core/Expressions/ExpressionEvaluationLimits.cs @@ -1,6 +1,8 @@ namespace CStructSharp.Expressions; /// Holds the immutable expression resource limits captured by a compiled layout. +/// The deepest expression nesting an evaluation accepts. +/// The most expression tokens an evaluation accepts. internal readonly record struct ExpressionEvaluationLimits(int MaximumDepth, int MaximumNodes) { /// Creates a validated immutable snapshot of public compilation settings. diff --git a/src/CStructSharp.Core/Parsing/LayoutParser.Declarations.cs b/src/CStructSharp.Core/Parsing/LayoutParser.Declarations.cs index 1f0b5c62..f4557c5c 100644 --- a/src/CStructSharp.Core/Parsing/LayoutParser.Declarations.cs +++ b/src/CStructSharp.Core/Parsing/LayoutParser.Declarations.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Parsing; using CStructSharp.Syntax; using CStructSharpEnum = CStructSharp.Syntax.Enum; -/// The top-level declarations: structs and unions, typedefs, and enums and flags. +/// The top-level declarations: structs and unions, typedefs, and enums and flags. internal sealed partial class LayoutParser { /// diff --git a/src/CStructSharp.Core/Parsing/LayoutParser.Expressions.cs b/src/CStructSharp.Core/Parsing/LayoutParser.Expressions.cs index 11c453b0..21eed2a6 100644 --- a/src/CStructSharp.Core/Parsing/LayoutParser.Expressions.cs +++ b/src/CStructSharp.Core/Parsing/LayoutParser.Expressions.cs @@ -13,7 +13,7 @@ namespace CStructSharp.Parsing; using CStructSharp.Syntax; using CStructSharpEnum = CStructSharp.Syntax.Enum; -/// Layout expressions and integer literals: operators by precedence, sizeof/alignof, and radix literals with digit separators and suffixes. +/// Layout expressions and integer literals: operators by precedence, sizeof/alignof, and radix literals with digit separators and suffixes. internal sealed partial class LayoutParser { // The binary precedence rows, from the loosest to the unary row that ends ParseBinary's recursion. diff --git a/src/CStructSharp.Core/Parsing/LayoutParser.Members.cs b/src/CStructSharp.Core/Parsing/LayoutParser.Members.cs index 15ab222f..48c427ba 100644 --- a/src/CStructSharp.Core/Parsing/LayoutParser.Members.cs +++ b/src/CStructSharp.Core/Parsing/LayoutParser.Members.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Parsing; using CStructSharp.Syntax; using CStructSharpEnum = CStructSharp.Syntax.Enum; -/// The members of a struct or union: fields and their declarators and suffixes, inline composites, and if/switch groups. +/// The members of a struct or union: fields and their declarators and suffixes, inline composites, and if/switch groups. internal sealed partial class LayoutParser { /// A struct or union body up to its closing brace, with the if/switch groups declared in it. diff --git a/src/CStructSharp.Core/Parsing/LayoutParser.Preprocessor.cs b/src/CStructSharp.Core/Parsing/LayoutParser.Preprocessor.cs index 51f584f4..1d376827 100644 --- a/src/CStructSharp.Core/Parsing/LayoutParser.Preprocessor.cs +++ b/src/CStructSharp.Core/Parsing/LayoutParser.Preprocessor.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Parsing; using CStructSharp.Syntax; using CStructSharpEnum = CStructSharp.Syntax.Enum; -/// The preprocessor lines: #define, #ifdef/#ifndef/#else/#endif, #include, #pragma, and the line-level lexing they share. +/// The preprocessor lines: #define, #ifdef/#ifndef/#else/#endif, #include, #pragma, and the line-level lexing they share. internal sealed partial class LayoutParser { /// diff --git a/src/CStructSharp.Core/Polyfills/IReadOnlySet.cs b/src/CStructSharp.Core/Polyfills/IReadOnlySet.cs index 9f26c8d7..81091541 100644 --- a/src/CStructSharp.Core/Polyfills/IReadOnlySet.cs +++ b/src/CStructSharp.Core/Polyfills/IReadOnlySet.cs @@ -13,39 +13,4 @@ public interface IReadOnlySet : IReadOnlyCollection /// when the element is a member of the set. bool Contains(T item); } - -/// A read-only set over a , for the generator's own option values. -/// The element type. -internal sealed class ReadOnlySetAdapter : IReadOnlySet -{ - private readonly HashSet items; - - /// Wraps without copying. - /// The set to expose; later changes to it are visible through the adapter. - public ReadOnlySetAdapter(HashSet items) - { - this.items = items; - } - - /// - public int Count => this.items.Count; - - /// - public bool Contains(T item) - { - return this.items.Contains(item); - } - - /// - public IEnumerator GetEnumerator() - { - return this.items.GetEnumerator(); - } - - /// - IEnumerator IEnumerable.GetEnumerator() - { - return this.items.GetEnumerator(); - } -} #endif diff --git a/src/CStructSharp.Core/Polyfills/ReadOnlySetAdapter.cs b/src/CStructSharp.Core/Polyfills/ReadOnlySetAdapter.cs new file mode 100644 index 00000000..8bb55b9e --- /dev/null +++ b/src/CStructSharp.Core/Polyfills/ReadOnlySetAdapter.cs @@ -0,0 +1,38 @@ +#if NETSTANDARD2_0 +namespace System.Collections.Generic; + +/// A read-only set over a , for the generator's own option values. +/// The element type. +internal sealed class ReadOnlySetAdapter : IReadOnlySet +{ + private readonly HashSet items; + + /// Wraps without copying. + /// The set to expose; later changes to it are visible through the adapter. + public ReadOnlySetAdapter(HashSet items) + { + this.items = items; + } + + /// + public int Count => this.items.Count; + + /// + public bool Contains(T item) + { + return this.items.Contains(item); + } + + /// + public IEnumerator GetEnumerator() + { + return this.items.GetEnumerator(); + } + + /// + IEnumerator IEnumerable.GetEnumerator() + { + return this.items.GetEnumerator(); + } +} +#endif diff --git a/src/CStructSharp.Core/Syntax/ConditionalBranch.cs b/src/CStructSharp.Core/Syntax/ConditionalBranch.cs index 9ca0f584..a4ab9907 100644 --- a/src/CStructSharp.Core/Syntax/ConditionalBranch.cs +++ b/src/CStructSharp.Core/Syntax/ConditionalBranch.cs @@ -1,4 +1,6 @@ namespace CStructSharp.Syntax; /// A field's membership in an outer-to-inner sequence of conditional arms. +/// The if or switch the field sits inside. +/// The zero-based arm of that contains the field, in source order. internal readonly record struct ConditionalBranch(ConditionalGroup Group, int Arm); diff --git a/src/CStructSharp.Generators/CStructSharp.Generators.csproj b/src/CStructSharp.Generators/CStructSharp.Generators.csproj index b0995132..d5183dcc 100644 --- a/src/CStructSharp.Generators/CStructSharp.Generators.csproj +++ b/src/CStructSharp.Generators/CStructSharp.Generators.csproj @@ -22,7 +22,7 @@ - + diff --git a/src/CStructSharp.Generators/ContainingType.cs b/src/CStructSharp.Generators/ContainingType.cs index 9f6a667a..863b4a5a 100644 --- a/src/CStructSharp.Generators/ContainingType.cs +++ b/src/CStructSharp.Generators/ContainingType.cs @@ -3,6 +3,8 @@ namespace CStructSharp.Generators; using Microsoft.CodeAnalysis; /// A type that contains the attributed class, outermost first. +/// The declaration keyword that re-declares the type as partial; see . +/// The type's simple name, without type parameters. internal readonly record struct ContainingType(string Keyword, string Name) { /// diff --git a/src/CStructSharp.Generators/DefinitionLiteralShape.cs b/src/CStructSharp.Generators/DefinitionLiteralShape.cs index f06847e9..842f7ff6 100644 --- a/src/CStructSharp.Generators/DefinitionLiteralShape.cs +++ b/src/CStructSharp.Generators/DefinitionLiteralShape.cs @@ -5,4 +5,7 @@ namespace CStructSharp.Generators; /// string literal contributes its content start and the indentation it strips; anything else is located at the /// whole argument. /// +/// Whether the definition is a multi-line raw string literal; the other values are 0 otherwise. +/// The zero-based source line of the literal's first content line, the one after the opening quotes. +/// The number of leading whitespace characters the compiler strips from every content line. internal readonly record struct DefinitionLiteralShape(bool IsRawMultiLine, int ContentStartLine, int Indentation); diff --git a/src/CStructSharp.Generators/GeneratedModel.cs b/src/CStructSharp.Generators/GeneratedModel.cs index 5c7bb645..dc5a4f11 100644 --- a/src/CStructSharp.Generators/GeneratedModel.cs +++ b/src/CStructSharp.Generators/GeneratedModel.cs @@ -478,9 +478,17 @@ private static string WrapArray(string element, int dimensions) } /// A layout enum and its C# enum. +/// The C# enum name. +/// The enum's name in the layout. +/// The compiled enum with its integer codec and members. +/// The C# keyword of the backing integer type, from sbyte to ulong. +/// The C# members in declaration order. internal sealed record GeneratedEnum(string Name, string LayoutName, CompiledEnumType Compiled, string UnderlyingType, IReadOnlyList Members); /// One enum member with its value in the enum's own integer domain. +/// The C# member name. +/// The member's name in the layout. +/// The member's mathematical value, signed or unsigned as the enum's integer type is. internal sealed record GeneratedEnumMember(string Name, string LayoutName, System.Numerics.BigInteger Value); /// A struct or union and its C# class. @@ -525,6 +533,12 @@ public GeneratedComposite(string name, string layoutName, CompiledCompositeType } /// One property of a generated class and the compiled field it holds. +/// The compiled field the property reads and writes. +/// The C# property name. +/// The generated class of the struct or union the field holds or points to; otherwise. +/// The generated enum of an enum-typed field; otherwise. +/// The C# property type, such as Pointer<T>, T[] or string. +/// Whether the field is read only when its conditional arm is active. internal sealed record GeneratedMember(CompiledField Field, string PropertyName, GeneratedComposite? Composite, GeneratedEnum? Enum, string TypeName, bool IsConditional) { /// Gets the member's name in the layout. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Arrays.cs b/src/CStructSharp.Generators/LayoutEmitter.Arrays.cs index 38fbc412..0601add8 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Arrays.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Arrays.cs @@ -10,7 +10,7 @@ namespace CStructSharp.Generators; using CStructSharp.Syntax; using static CStructSharp.Generators.Emit; -/// Array members: the element count (fixed, from an expression, to the end of the input, or terminated), the runtime's limits, and the element loop or bulk decode. +/// Array members: the element count (fixed, from an expression, to the end of the input, or terminated), the runtime's limits, and the element loop or bulk decode. internal sealed partial class LayoutEmitter { private readonly HashSet pointerReaders = new(StringComparer.Ordinal); diff --git a/src/CStructSharp.Generators/LayoutEmitter.BitfieldReaders.cs b/src/CStructSharp.Generators/LayoutEmitter.BitfieldReaders.cs index c67a90a0..8b9f2804 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.BitfieldReaders.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.BitfieldReaders.cs @@ -6,7 +6,7 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// Reader-only shortcuts for fixed bitfield leaves, with the original member reader retained for every failure. +/// Reader-only shortcuts for fixed bitfield leaves, with the original member reader retained for every failure. internal sealed partial class LayoutEmitter { private readonly Dictionary bitfieldLeafPlans = new(ReferenceEqualityComparer.Instance); diff --git a/src/CStructSharp.Generators/LayoutEmitter.ByteOrder.cs b/src/CStructSharp.Generators/LayoutEmitter.ByteOrder.cs index 5d67e612..68cda1a7 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.ByteOrder.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.ByteOrder.cs @@ -4,14 +4,14 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// Run-time byte order (RuntimeByteOrder): a neutral value - one the layout spells without a < or /// > suffix - is decoded with a byte order that the caller chooses when it reads, so one layout stands for /// the little- and the big-endian pair. The emitter keeps the C# expression that names the order in the code being /// written (cursor.LittleEndian in a reader, this.littleEndian in a view, littleEndian in a /// helper with a parameter of that name); every site that decodes a neutral value uses it, and every explicit value /// keeps its own literal. -/// +/// internal sealed partial class LayoutEmitter { /// The expression naming the run-time byte order in the code being emitted, or when the order is fixed at build time. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Constants.cs b/src/CStructSharp.Generators/LayoutEmitter.Constants.cs index 14a152f3..4654a158 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Constants.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Constants.cs @@ -4,10 +4,10 @@ namespace CStructSharp.Generators; using System.Globalization; using CStructSharp.Syntax; -/// +/// /// The integer #defines of a layout, emitted as public const members of the generated class so code that /// reads a header can name the layout's constants (Ext.EXT_MAGIC) instead of repeating their values. -/// +/// internal sealed partial class LayoutEmitter { private List? defineConstants; diff --git a/src/CStructSharp.Generators/LayoutEmitter.DeferredPointers.cs b/src/CStructSharp.Generators/LayoutEmitter.DeferredPointers.cs index 3b65aa08..0e7ea2dc 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.DeferredPointers.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.DeferredPointers.cs @@ -4,11 +4,11 @@ namespace CStructSharp.Generators; using CStructSharp.Diagnostics; using static CStructSharp.Generators.Emit; -/// +/// /// Deferred pointers in the struct readers: a pointer field's address is read in declaration order, and its /// target is followed after the struct's last field, as the runtime does. Following last lets a target's /// @count(N) name a field declared after the pointer, and keeps the first failure the same as the runtime's. -/// +/// internal sealed partial class LayoutEmitter { /// diff --git a/src/CStructSharp.Generators/LayoutEmitter.FixedBytesChecks.cs b/src/CStructSharp.Generators/LayoutEmitter.FixedBytesChecks.cs index 97d89772..0cae4fad 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.FixedBytesChecks.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.FixedBytesChecks.cs @@ -6,12 +6,12 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// The constraint pass of a fixed class-shaped struct that runs on the struct's bytes, before the object is built. A /// non-throwing TryParse of input that breaks a condition then returns the failure without having allocated the value it /// would throw away. The pass decodes only the members the conditions name, as Matches does, and evaluates the same /// condition code in the same order, so it fails with the failure (and collects the violations) of the pass over the object. -/// +/// internal sealed partial class LayoutEmitter { /// The members a bytes-first pass decodes, each with its place in the struct. diff --git a/src/CStructSharp.Generators/LayoutEmitter.FixedReaders.cs b/src/CStructSharp.Generators/LayoutEmitter.FixedReaders.cs index 2ada77c8..95655b8c 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.FixedReaders.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.FixedReaders.cs @@ -7,7 +7,7 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// The fixed readers: for a struct whose every member sits at an offset known at build time, a /// Read<Type>Fixed(source, trimFixedText) that decodes each member at its constant offset, the /// build-time counterpart of the runtime's static read plan. The composite's generated Read<Type> tries it first @@ -15,7 +15,7 @@ namespace CStructSharp.Generators; /// read exactly those bytes without a failure (enough input, within the read budget and the nesting and array /// limits, and on the struct's alignment); any other input takes the member-by-member reader, which reports any /// failure. -/// +/// internal sealed partial class LayoutEmitter { // The eligibility of each composite, decided once; null for a composite that needs the member-by-member reader. diff --git a/src/CStructSharp.Generators/LayoutEmitter.FixedWriters.cs b/src/CStructSharp.Generators/LayoutEmitter.FixedWriters.cs index b1e15f09..5f8cb783 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.FixedWriters.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.FixedWriters.cs @@ -6,14 +6,14 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// The fixed writers: for a struct with a fixed reader whose members also encode without a possible failure /// (numbers, enums, nested fixed structs, and fixed arrays of them - not text, whose characters are validated), an /// Is<Type>FixedWritable(value) check and a Write<Type>Fixed(target, value) that stores /// each member at its constant offset. The composite's Encode<Type> tries them first: the check confirms that no /// nested value is null and every array has its declared length, and WriteCursor.TryReserveFixed hands over /// cleared bytes only where the member-by-member writer would write exactly them. Anything else is written member by member. -/// +/// internal sealed partial class LayoutEmitter { // Whether each composite has a fixed writer, decided once. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Matches.cs b/src/CStructSharp.Generators/LayoutEmitter.Matches.cs index 5cd7be35..a09f2570 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Matches.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Matches.cs @@ -8,11 +8,11 @@ namespace CStructSharp.Generators; using CStructSharp.Diagnostics; using static CStructSharp.Generators.Emit; -/// +/// /// Matches: a static, non-throwing recognition check for a struct with @expect or @magic conditions (a struct with an evaluable @magic condition is recognized by those alone). It decodes only /// the members the conditions name, each at its build-time offset straight from the bytes, so a probe that asks "is this /// the format?" builds no value, reads nothing else and throws nothing. -/// +/// internal sealed partial class LayoutEmitter { /// One @expect or @magic condition Matches evaluates. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Operations.cs b/src/CStructSharp.Generators/LayoutEmitter.Operations.cs index b195fd9d..d9d2cf99 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Operations.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Operations.cs @@ -8,12 +8,12 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// The operations beside reading and writing: the root class's ICStructGenerated implementation, the /// Sizes/Offsets constants and typed Update setters of statically placed members, and the /// path-based operations (ParseWithDebug, ResolveAddress, GetArrayLength, Update) /// that run on the runtime layout. -/// +/// internal sealed partial class LayoutEmitter { /// Emits the operations the surface keeps: the full surface's interface, path operations and setters, and every surface's constants. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Readers.cs b/src/CStructSharp.Generators/LayoutEmitter.Readers.cs index 535de54f..5ef98182 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Readers.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Readers.cs @@ -11,11 +11,11 @@ namespace CStructSharp.Generators; using CStructSharp.Syntax; using static CStructSharp.Generators.Emit; -/// +/// /// The readers: one Read<Type>(ref ReadCursor, variables) per composite that mirrors the runtime /// reader step by step - the same placement cursor per composite, the same per-field placement, the same order /// of checks and the same failure texts - plus the public Parse overloads that create the cursor. -/// +/// internal sealed partial class LayoutEmitter { private const string Cursor = "global::CStructSharp.Generated.ReadCursor"; diff --git a/src/CStructSharp.Generators/LayoutEmitter.Scalar.cs b/src/CStructSharp.Generators/LayoutEmitter.Scalar.cs index e1a0fe63..802e8eb2 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Scalar.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Scalar.cs @@ -6,12 +6,12 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// Shape = Scalar: a layout whose root struct holds one number, enum or identifier becomes a static Parse that /// returns that value. No class, no properties and no per-struct reader family are generated: a project with hundreds of /// one-field layouts (a stored integer, a word, a magic number) writes a short method for each instead of a class and three /// readers. -/// +/// internal sealed partial class LayoutEmitter { /// Gets a value indicating whether the layout generates a scalar reader instead of types. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Sequences.cs b/src/CStructSharp.Generators/LayoutEmitter.Sequences.cs index a9074902..ed2dc449 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Sequences.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Sequences.cs @@ -4,13 +4,13 @@ namespace CStructSharp.Generators; using CStructSharp.Diagnostics; using static CStructSharp.Generators.Emit; -/// +/// /// Record sequences: Records<Name> over memory, a segmented sequence, or a stream and /// Records<Name>Async over a stream (the root forms Records/RecordsAsync), each an /// enumeration of one composite after another until the input ends, driven by the runtime's /// RecordSequence over a generated reader that parses one record as its own region; and, for a composite /// with a static size, the foreach-able <Name>View.Enumerate over views with no allocation. -/// +/// internal sealed partial class LayoutEmitter { private const string Sequence = "global::CStructSharp.Generated.RecordSequence"; diff --git a/src/CStructSharp.Generators/LayoutEmitter.Types.cs b/src/CStructSharp.Generators/LayoutEmitter.Types.cs index e878256b..db608ce7 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Types.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Types.cs @@ -5,7 +5,7 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// The types: one C# enum per layout enum, one class per struct or union, properties typed per §1.4. +/// The types: one C# enum per layout enum, one class per struct or union, properties typed per §1.4. internal sealed partial class LayoutEmitter { /// Emits the layout's enums, and the class of every struct and union unless the surface is views only. diff --git a/src/CStructSharp.Generators/LayoutEmitter.ValueTypes.cs b/src/CStructSharp.Generators/LayoutEmitter.ValueTypes.cs index 1fd2c33d..bb9ef6b5 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.ValueTypes.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.ValueTypes.cs @@ -7,12 +7,12 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// Shape = Struct: every struct of the layout becomes a C# struct whose members are public fields, so a read /// allocates no object for the value. A fixed one-dimensional array of numbers is a generated inline array type /// (InlineArrays.ByteArray4), so it needs no T[] either. Only layouts whose every member has a fixed /// size and no reference-typed or data-dependent shape qualify; the others are reported as CSG014. -/// +/// internal sealed partial class LayoutEmitter { /// The greatest value MaxValueBytes may take. diff --git a/src/CStructSharp.Generators/LayoutEmitter.ViewPlacement.cs b/src/CStructSharp.Generators/LayoutEmitter.ViewPlacement.cs index 0c33aeba..fe5ed24f 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.ViewPlacement.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.ViewPlacement.cs @@ -8,11 +8,11 @@ namespace CStructSharp.Generators; using CStructSharp.Diagnostics; using static CStructSharp.Generators.Emit; -/// +/// /// Where a view finds each member. A member whose offset the layout compiler knows is read at a constant; a member /// placed after a runtime-sized array is read at an offset the view computes from the members before it, with the /// reader's own count checks. The plan also records which members the view can expose at all. -/// +/// internal sealed partial class LayoutEmitter { /// The caller variables a view without variables evaluates expressions with: none, so the defines keep their defaults. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Views.cs b/src/CStructSharp.Generators/LayoutEmitter.Views.cs index c0b51449..9cbd7dff 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Views.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Views.cs @@ -8,14 +8,14 @@ namespace CStructSharp.Generators; using CStructSharp.Compilation; using static CStructSharp.Generators.Emit; -/// +/// /// The views: one readonly ref struct <Type>View per composite over the composite's bytes, with a /// direct decode at a constant offset for every statically placed scalar, a nested view for a statically placed /// struct, the raw bytes, one element and a bulk copy of a numeric array (fixed, or sized by earlier members), text /// and custom codec members, and ToObject() for everything else. A member after a runtime-sized array is read at /// an offset the view computes from the members before it. Nothing is allocated until a string, a custom codec value, /// or ToObject() is asked for. -/// +/// internal sealed partial class LayoutEmitter { /// Emits the view of every composite, unless views are switched off. diff --git a/src/CStructSharp.Generators/LayoutEmitter.Writers.cs b/src/CStructSharp.Generators/LayoutEmitter.Writers.cs index 23716a1f..0bdb5b90 100644 --- a/src/CStructSharp.Generators/LayoutEmitter.Writers.cs +++ b/src/CStructSharp.Generators/LayoutEmitter.Writers.cs @@ -10,12 +10,12 @@ namespace CStructSharp.Generators; using CStructSharp.Syntax; using static CStructSharp.Generators.Emit; -/// +/// /// The writers: one Encode<Type>(ref WriteCursor, value, variables) per composite that mirrors the /// runtime writer step by step - the same placement, the same validation order and texts (array length, string /// capacity, value range, bitfield width), the same union and padding rules - plus the public Serialize /// and Write overloads that create the cursor. -/// +/// internal sealed partial class LayoutEmitter { private const string WriteCursorType = "global::CStructSharp.Generated.WriteCursor"; diff --git a/src/CStructSharp.Generators/LayoutRequest.cs b/src/CStructSharp.Generators/LayoutRequest.cs index 261b5caf..9e50e653 100644 --- a/src/CStructSharp.Generators/LayoutRequest.cs +++ b/src/CStructSharp.Generators/LayoutRequest.cs @@ -6,16 +6,44 @@ namespace CStructSharp.Generators; /// ), so the incremental pipeline re-runs generation only when something the /// output depends on changed. /// -/// -/// TypesWithConstructors names the nested classes of the attributed class for which the consumer declared -/// an instance constructor in a partial declaration. The generated class of such a composite may not hold the new -/// nested values its property initializers create once construction ends, so its fixed reader replaces them -/// instead of decoding into them. -/// ConsumerDeclaredClasses names those nested types that the consumer declared as classes, which a value-type shape -/// cannot extend (a partial declaration must keep one kind). -/// ConsumerDeclaredTypes also includes partial declarations with an implicit constructor: their instance -/// initializers may run caller code, so reader-only bitfield shortcuts leave those classes on the original path. -/// +/// The attributed class's simple name. +/// The containing namespace; for the global namespace. +/// The types that contain the attributed class, outermost first. +/// The attributed class's declared accessibility keyword, such as public. +/// Whether the attributed class is declared static. +/// Whether the attributed class is declared partial. +/// Whether every containing type is declared partial. +/// The inline layout text; when the layout comes from . +/// The project-relative path of the .cstruct additional file; for an inline layout. +/// The declaration the plain Parse/Serialize methods use; for the first struct. +/// The layout settings (alignment, byte order, pointer size and the like) the attribute names. +/// Whether generated names keep the layout's spelling instead of becoming PascalCase. +/// Whether a ref struct view is generated per composite. +/// Whether each view of a fixed-size struct gets a foreach enumerator over consecutive records. +/// Whether the byte order of neutral values is chosen when a value is read instead of at compile time. +/// Whether composites become classes, value types, or a one-member value. +/// The largest struct, in bytes, that a value-type shape may generate. +/// How much code is generated. +/// Whether a failed constraint throws a format exception ( or ) instead of the constraint exception. +/// The attribute's source location, for diagnostics. +/// The inline definition argument's source location; when there is none. +/// How the definition literal is written, to place layout errors inside it. +/// The consumer's effective C# language version, as the compiler displays it. +/// +/// The nested classes of the attributed class for which the consumer declared an instance constructor in a partial +/// declaration. The generated class of such a composite may not hold the new nested values its property +/// initializers create once construction ends, so its fixed reader replaces them instead of decoding into them. +/// +/// +/// Every nested type the consumer declared, including partial declarations with an implicit constructor: their +/// instance initializers may run caller code, so reader-only bitfield shortcuts leave those classes on the +/// original path. +/// +/// +/// The nested types the consumer declared as classes, which a value-type shape cannot extend (a partial +/// declaration must keep one kind). +/// +/// The named attribute arguments that choose an option, so a project default does not replace them. internal sealed record LayoutRequest( string ClassName, string? Namespace, diff --git a/src/CStructSharp.Generators/MappedMember.cs b/src/CStructSharp.Generators/MappedMember.cs index b094013f..fef56b30 100644 --- a/src/CStructSharp.Generators/MappedMember.cs +++ b/src/CStructSharp.Generators/MappedMember.cs @@ -4,6 +4,16 @@ namespace CStructSharp.Generators; /// One property of a mapped class, as the transform step extracted it. classifies the /// property type for the direct members of a layout-bound class (see MappedFixedEmitter). /// +/// The C# property name. +/// The field name given by the property's member attribute; to map by property name. +/// The fully qualified property type, with a nullable value type unwrapped. +/// How the property maps, which decides the code emitted for it. +/// The fully qualified element or pointer target type of a collection or typed pointer; empty otherwise. +/// Whether the property type is a nullable value type (T?). +/// Whether the property's setter is init-only. +/// The type CSG101 reports for an member; empty otherwise. +/// The property's source location, for diagnostics. +/// The type's classification for the direct members of a layout-bound class. internal sealed record MappedMember( string PropertyName, string? LayoutName, diff --git a/src/CStructSharp.Generators/MappedRequest.cs b/src/CStructSharp.Generators/MappedRequest.cs index cf224dce..fa7cb811 100644 --- a/src/CStructSharp.Generators/MappedRequest.cs +++ b/src/CStructSharp.Generators/MappedRequest.cs @@ -1,6 +1,17 @@ namespace CStructSharp.Generators; /// Everything the generator needs from one [CStructMapped] type, with value equality for the incremental pipeline. +/// The attributed type's simple name. +/// The containing namespace; for the global namespace. +/// The types that contain the attributed type, outermost first. +/// The attributed type's declared accessibility keyword, such as public. +/// The declaration keyword that re-declares the type as partial; see . +/// Whether the attributed type is declared partial. +/// Whether every containing type is declared partial. +/// Whether the mapper can create the type: a value type, or a class with an internal or public parameterless constructor. +/// The Layout argument naming the layout struct for direct members; when not given. +/// The public settable instance properties the mapper fills, in declaration order. +/// The attribute's source location, for diagnostics. internal sealed record MappedRequest( string ClassName, string? Namespace, diff --git a/src/CStructSharp.Generators/SourceSpan.cs b/src/CStructSharp.Generators/SourceSpan.cs index b49702fe..3e4d61a2 100644 --- a/src/CStructSharp.Generators/SourceSpan.cs +++ b/src/CStructSharp.Generators/SourceSpan.cs @@ -4,6 +4,13 @@ namespace CStructSharp.Generators; using Microsoft.CodeAnalysis.Text; /// A location in the consumer's source, kept as values so the request record stays equatable. +/// The source file's path; empty for a location outside a syntax tree. +/// The zero-based character offset of the span's start in the file. +/// The span's length in characters. +/// The zero-based line of the span's start. +/// The zero-based character position of the span's start within its line. +/// The zero-based line of the span's end. +/// The zero-based character position of the span's end within its line. internal readonly record struct SourceSpan(string FilePath, int Start, int Length, int StartLine, int StartCharacter, int EndLine, int EndCharacter) { /// Copies a Roslyn location's file path, character span and line positions into a value. diff --git a/src/CStructSharp.Wasm/CStructInteropBoundary.cs b/src/CStructSharp.Wasm/CStructInteropBoundary.cs index 62a41267..c240fb50 100644 --- a/src/CStructSharp.Wasm/CStructInteropBoundary.cs +++ b/src/CStructSharp.Wasm/CStructInteropBoundary.cs @@ -10,7 +10,7 @@ namespace CStructSharpWeb.Wasm; using CStructSharp.Syntax; using Enum = System.Enum; -/// Validates untrusted browser inputs and categorizes failures for the result envelope. +/// Validates untrusted browser inputs and categorizes failures for the result envelope. public partial class CStructExports { private const int InteropContractVersion = 10; diff --git a/src/CStructSharp.Wasm/CStructJsonConversion.cs b/src/CStructSharp.Wasm/CStructJsonConversion.cs index f0ffece8..9d62046e 100644 --- a/src/CStructSharp.Wasm/CStructJsonConversion.cs +++ b/src/CStructSharp.Wasm/CStructJsonConversion.cs @@ -8,7 +8,7 @@ namespace CStructSharpWeb.Wasm; using CStructSharp; using CStructSharp.Values; -/// Contains the explicit rules that convert browser JSON input into the values the core writer accepts. +/// Contains the explicit rules that convert browser JSON input into the values the core writer accepts. public partial class CStructExports { /// Converts browser JSON into the primitive, expando, and list values accepted by the core writer. diff --git a/src/CStructSharp.Wasm/InteropEnvelope.cs b/src/CStructSharp.Wasm/InteropEnvelope.cs index d972f2c9..fefcde6f 100644 --- a/src/CStructSharp.Wasm/InteropEnvelope.cs +++ b/src/CStructSharp.Wasm/InteropEnvelope.cs @@ -6,7 +6,7 @@ namespace CStructSharpWeb.Wasm; using System.Text; using CStructSharp.Diagnostics; -/// +/// /// Writes the versioned result envelope every browser export returns, through the one /// . An envelope is one JSON object with seven members, always in this order: /// contractVersion (), operation (the export's operation name), @@ -14,7 +14,7 @@ namespace CStructSharpWeb.Wasm; /// failure), debug (the byte ranges of a debug parse, otherwise empty), and error (null on success, /// the fields on failure). The parse exports return the envelope as UTF-8 bytes, /// every other export as a string; either way it is at most bytes. -/// +/// public partial class CStructExports { private static readonly byte[] EnvelopeHead = Encoding.UTF8.GetBytes("{\"contractVersion\":" + InteropContractVersion.ToString(CultureInfo.InvariantCulture) + ",\"operation\":"); diff --git a/src/CStructSharp.Wasm/StaticPlanExport.cs b/src/CStructSharp.Wasm/StaticPlanExport.cs index f3ef215c..ebf65b43 100644 --- a/src/CStructSharp.Wasm/StaticPlanExport.cs +++ b/src/CStructSharp.Wasm/StaticPlanExport.cs @@ -11,12 +11,12 @@ namespace CStructSharpWeb.Wasm; using CStructSharp.Reading; using CStructSharp.Syntax; -/// +/// /// Describes a fully fixed root composite (its static read plan) as JSON so the JavaScript side can /// read such layouts with DataView alone. The description is the compiler's own operation list — offsets, /// codecs, counts, nested plans, enum member tables — not a second grammar; the JavaScript executor reproduces /// the JSON projection's value shapes and falls back to WebAssembly for anything the plan does not cover. -/// +/// [SupportedOSPlatform("browser")] public partial class CStructExports { diff --git a/src/CStructSharp/CStructAccessors.cs b/src/CStructSharp/CStructAccessors.cs index d9195a00..ad08dba9 100644 --- a/src/CStructSharp/CStructAccessors.cs +++ b/src/CStructSharp/CStructAccessors.cs @@ -10,11 +10,11 @@ namespace CStructSharp; using CStructSharp.Reading; using CStructSharp.Syntax; -/// +/// /// Prepared reads: resolves a member path once into a /// , and wraps /// the bytes of one struct in a that reads members on demand without building values. -/// +/// public sealed partial class CStruct { // Accessors StructView.Get(string) resolved, keyed by root, path and type; bounded for callers that build diff --git a/src/CStructSharp/CStructDirectReads.cs b/src/CStructSharp/CStructDirectReads.cs index 831d51cc..b45f318e 100644 --- a/src/CStructSharp/CStructDirectReads.cs +++ b/src/CStructSharp/CStructDirectReads.cs @@ -14,12 +14,12 @@ namespace CStructSharp; using CStructSharp.Syntax; using CStructSharp.Values; -/// +/// /// The direct read of a whole fixed-layout root from memory: Parse(bytes, "header") and /// ReadValue<T>(bytes, "header") for a struct whose every member has a fixed offset. The compiled engine /// would build the per-operation state and slots, resolve the path, and then run the same /// over the same bytes; this path runs the plan straight over the span. -/// +/// /// /// The direct path is taken only when it cannot behave differently from the compiled engine: no caller variables, /// no debug records, valid limits that the plan is known to satisfy, and enough input. Every other call, and every diff --git a/src/CStructSharp/CStructDirectWrites.cs b/src/CStructSharp/CStructDirectWrites.cs index 2f476330..36192638 100644 --- a/src/CStructSharp/CStructDirectWrites.cs +++ b/src/CStructSharp/CStructDirectWrites.cs @@ -9,12 +9,12 @@ namespace CStructSharp; using CStructSharp.Values; using CStructSharp.Writing; -/// +/// /// The direct write of a whole fixed-layout root into caller memory: Serialize(span, "header", value) for a /// struct whose every member has a fixed offset. The write engine would build the per-operation state and a /// budgeted destination over the span, stage the struct in a block through its static write plan, and copy the /// block out; this path runs the same plan over the same kind of staging block without the destination and state. -/// +/// /// /// The direct path is taken only when it cannot behave differently from the write engine: no caller variables, /// a value that is not null, valid limits that the plan is known to satisfy, and a destination large enough for diff --git a/src/CStructSharp/CStructEngineReads.cs b/src/CStructSharp/CStructEngineReads.cs index 4073c5ee..8debbdbd 100644 --- a/src/CStructSharp/CStructEngineReads.cs +++ b/src/CStructSharp/CStructEngineReads.cs @@ -12,10 +12,10 @@ namespace CStructSharp; using CStructSharp.Syntax; using CStructSharp.Values; -/// +/// /// The whole-root reads, nested parses and debug parses of the compiled engine, and its capture of the layout an update /// compares. -/// +/// public sealed partial class CStruct { /// diff --git a/src/CStructSharp/CStructEngineUpdate.cs b/src/CStructSharp/CStructEngineUpdate.cs index 234373bb..8981736a 100644 --- a/src/CStructSharp/CStructEngineUpdate.cs +++ b/src/CStructSharp/CStructEngineUpdate.cs @@ -12,10 +12,10 @@ namespace CStructSharp; using CStructSharp.Streams; using CStructSharp.Syntax; -/// +/// /// The update of the compiled engine: the path resolved by the engine's path resolver, the replacement staged by its /// writer, and the layout captured and compared by its debug programs, all over the operation's variable slots. -/// +/// public sealed partial class CStruct { /// The failure of an update whose terminated value changes its encoded length and so moves later fields. diff --git a/src/CStructSharp/CStructIntrospection.cs b/src/CStructSharp/CStructIntrospection.cs index 0bbf1f4e..f8db5ed7 100644 --- a/src/CStructSharp/CStructIntrospection.cs +++ b/src/CStructSharp/CStructIntrospection.cs @@ -10,10 +10,10 @@ namespace CStructSharp; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// +/// /// The read-only description of a compiled layout (), its rendering back to Portable text /// (), and sibling layouts compiled from the same source with one option changed. -/// +/// public sealed partial class CStruct { /// diff --git a/src/CStructSharp/CStructMatches.cs b/src/CStructSharp/CStructMatches.cs index bd69d0f1..f2df4dda 100644 --- a/src/CStructSharp/CStructMatches.cs +++ b/src/CStructSharp/CStructMatches.cs @@ -10,10 +10,10 @@ namespace CStructSharp; using CStructSharp.Expressions; using CStructSharp.Syntax; -/// +/// /// : the recognition check of the generated /// layouts' Matches, for a layout that is compiled at run time. -/// +/// public sealed partial class CStruct { /// diff --git a/src/CStructSharp/CStructMemoryIo.cs b/src/CStructSharp/CStructMemoryIo.cs index ba2c84da..39f0d9d9 100644 --- a/src/CStructSharp/CStructMemoryIo.cs +++ b/src/CStructSharp/CStructMemoryIo.cs @@ -14,10 +14,10 @@ namespace CStructSharp; using CStructSharp.Values; using CStructSharp.Writing; -/// +/// /// Provides synchronous zero-copy memory input and caller-owned memory output entry points. Pointer coordinates /// are zero-based within the supplied input or newly serialized output region. -/// +/// public sealed partial class CStruct { /// diff --git a/src/CStructSharp/CStructOperations.Async.cs b/src/CStructSharp/CStructOperations.Async.cs index 96559f9b..b0882a69 100644 --- a/src/CStructSharp/CStructOperations.Async.cs +++ b/src/CStructSharp/CStructOperations.Async.cs @@ -12,7 +12,7 @@ namespace CStructSharp; using CStructSharp.Streams; using CStructSharp.Values; -/// +/// /// The awaitable forms of the read operations. Each reads the stream into a pooled buffer with /// - first a seekable stream up to its remaining /// length, any stream up to plus one byte - and runs the synchronous @@ -27,7 +27,7 @@ namespace CStructSharp; /// Because the buffered region starts at the origin, a stored absolute pointer address counts from the origin - /// as in the span and memory forms - where the synchronous stream form counts from the stream's first byte; a /// stream whose addresses are absolute stream positions is read from position 0 or through the synchronous form. -/// +/// public sealed partial class CStruct { /// A synchronous read over borrowed bytes that the async forms run once the input is buffered. diff --git a/src/CStructSharp/CStructOperations.AsyncWrite.cs b/src/CStructSharp/CStructOperations.AsyncWrite.cs index 69244aa2..2ceda96a 100644 --- a/src/CStructSharp/CStructOperations.AsyncWrite.cs +++ b/src/CStructSharp/CStructOperations.AsyncWrite.cs @@ -10,14 +10,14 @@ namespace CStructSharp; using CStructSharp.Expressions; using CStructSharp.Streams; -/// +/// /// The awaitable write forms. serializes the value first (the validation the synchronous /// writer performs, nothing written on a failure) and writes the bytes with one /// . needs a /// seekable stream: the region from the current position is read into a buffer, the in-place update runs over it, /// and only the byte ranges that changed are written back; the position is the origin afterwards. As in the /// span form, a stored absolute pointer address counts from the region's origin. -/// +/// public sealed partial class CStruct { /// Serializes a root or selected value and writes it at the stream's current position. diff --git a/src/CStructSharp/CStructOperations.Sequences.cs b/src/CStructSharp/CStructOperations.Sequences.cs index d79eae82..358b30da 100644 --- a/src/CStructSharp/CStructOperations.Sequences.cs +++ b/src/CStructSharp/CStructOperations.Sequences.cs @@ -15,7 +15,7 @@ namespace CStructSharp; using CStructSharp.Streams; using CStructSharp.Values; -/// +/// /// The forms of the read operations, for input that arrives in segments (a /// PipeReader, a chain of pooled buffers). A single-segment sequence takes the span path with no copy; a /// multi-segment one is copied into a pooled buffer - first at most @@ -32,7 +32,7 @@ namespace CStructSharp; /// address counts from the record's first byte; the synchronous stream form parses each record from the caller's /// stream as Parse(Stream) does, so there it counts from the stream's first byte. /// -/// +/// public sealed partial class CStruct { /// The span form of a read operation that a sequence form runs over its buffered copy. diff --git a/src/CStructSharp/CStructOperations.cs b/src/CStructSharp/CStructOperations.cs index 2bb057f6..6886c856 100644 --- a/src/CStructSharp/CStructOperations.cs +++ b/src/CStructSharp/CStructOperations.cs @@ -11,13 +11,13 @@ namespace CStructSharp; using CStructSharp.Streams; using CStructSharp.Values; -/// +/// /// The public operations of a compiled layout. Every operation exists for a (reading /// starts at its current position) and for in-memory input (, /// , or a byte array, whose start is coordinate zero), with the same parameters /// in the same order: the input, the root name or path, then the optional variables and options. An omitted /// or path selects the first struct or union the layout declares. -/// +/// public sealed partial class CStruct { // ------------------------------------------------------------------------------------------------------ Parse diff --git a/src/CStructSharp/CStructPrimitiveCodecs.cs b/src/CStructSharp/CStructPrimitiveCodecs.cs index 6f5d0593..dd8dc675 100644 --- a/src/CStructSharp/CStructPrimitiveCodecs.cs +++ b/src/CStructSharp/CStructPrimitiveCodecs.cs @@ -10,7 +10,7 @@ namespace CStructSharp; using CStructSharp.Compilation; using CStructSharp.Reading; -/// Builds the primitive writer table used by the CStruct facade. +/// Builds the primitive writer table used by the CStruct facade. public sealed partial class CStruct { /// diff --git a/src/CStructSharp/CStructSyntheticRoots.cs b/src/CStructSharp/CStructSyntheticRoots.cs index 6f86bca7..0136e43e 100644 --- a/src/CStructSharp/CStructSyntheticRoots.cs +++ b/src/CStructSharp/CStructSyntheticRoots.cs @@ -12,12 +12,12 @@ namespace CStructSharp; using CStructSharp.Parsing; using CStructSharp.Syntax; -/// +/// /// Roots named by a type spelling instead of a declaration: uint32, DWORD, uint64[4], /// uint16[N], char[], uint8[EOF], entry[2]. Each is compiled once per layout on /// first use into the same root-field projection a typedef gets, so the readers and writers never see the /// difference. A declared name always wins over a spelling. -/// +/// public sealed partial class CStruct { private const int PathCacheCapacity = 256; diff --git a/src/CStructSharp/CStructValueDecoding.cs b/src/CStructSharp/CStructValueDecoding.cs index e2bea644..671a2d83 100644 --- a/src/CStructSharp/CStructValueDecoding.cs +++ b/src/CStructSharp/CStructValueDecoding.cs @@ -9,11 +9,11 @@ namespace CStructSharp; using CStructSharp.Engine; using CStructSharp.Values; -/// +/// /// The decoding rules that depend on the layout's settings, which the compiled engine's reader and its path resolver /// share: how a bitfield is decoded under the layout's bit order, and the size check before a pointer target is read /// under its pointer size. The rules that depend only on the field are in . -/// +/// public sealed partial class CStruct { /// The debug records of an ordinary read: one shared empty list, which callers only discard. diff --git a/src/CStructSharp/CStructValueReader.cs b/src/CStructSharp/CStructValueReader.cs index 8cb2d646..c506dbe8 100644 --- a/src/CStructSharp/CStructValueReader.cs +++ b/src/CStructSharp/CStructValueReader.cs @@ -15,7 +15,7 @@ namespace CStructSharp; using CStructSharp.Syntax; using CStructSharp.Values; -/// Reads natural scalar or composite values and projects them to caller-selected CLR types. +/// Reads natural scalar or composite values and projects them to caller-selected CLR types. public sealed partial class CStruct { /// Extracts a named value, with a one-value fallback for inline typedef roots. diff --git a/src/CStructSharp/CStructWriter.StaticPlan.cs b/src/CStructSharp/CStructWriter.StaticPlan.cs index ba4abc65..791a3e30 100644 --- a/src/CStructSharp/CStructWriter.StaticPlan.cs +++ b/src/CStructSharp/CStructWriter.StaticPlan.cs @@ -15,12 +15,12 @@ namespace CStructSharp; using CStructSharp.Values; using CStructSharp.Writing; -/// +/// /// Static write plan: a fully fixed composite is encoded into one block of its exact size - member /// values looked up once, numbers written with at their compile-time /// offsets - and the block is written to the destination in one call. The plan is the same operation list the /// static read plan uses; only its execution differs. -/// +/// [SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1204:StaticElementsMustAppearBeforeInstanceElements", Justification = "helpers follow the executor they serve")] public sealed partial class CStruct { diff --git a/src/CStructSharp/CStructWriter.cs b/src/CStructSharp/CStructWriter.cs index 345f712e..10986853 100644 --- a/src/CStructSharp/CStructWriter.cs +++ b/src/CStructSharp/CStructWriter.cs @@ -17,12 +17,12 @@ namespace CStructSharp; using CStructSharp.Values; using CStructSharp.Writing; -/// +/// /// Contains the writing half of : the entry points of Serialize, Write and /// Update, which settle a write's options, variables, path and program before the compiled engine writes it /// (), and the primitive and pointer writes the engine delegates to the layout. The value rules /// every write shares are in . -/// +/// public sealed partial class CStruct { /// The composite a struct root or an inline-struct typedef root writes; false for scalar roots. diff --git a/src/CStructSharp/Codecs/BoundedTextCodec.Read.cs b/src/CStructSharp/Codecs/BoundedTextCodec.Read.cs index b0eff658..6d04b25a 100644 --- a/src/CStructSharp/Codecs/BoundedTextCodec.Read.cs +++ b/src/CStructSharp/Codecs/BoundedTextCodec.Read.cs @@ -3,7 +3,7 @@ namespace CStructSharp.Codecs; using System; using System.Text; -/// Decodes already buffered text without copying valid input into a temporary byte array. +/// Decodes already buffered text without copying valid input into a temporary byte array. internal static partial class BoundedTextCodec { /// Decodes the field's complete bytes while retaining the array decoder's exact failures. diff --git a/src/CStructSharp/Codecs/BoundedTextCodec.Write.cs b/src/CStructSharp/Codecs/BoundedTextCodec.Write.cs index 5321a286..6c11ac28 100644 --- a/src/CStructSharp/Codecs/BoundedTextCodec.Write.cs +++ b/src/CStructSharp/Codecs/BoundedTextCodec.Write.cs @@ -2,7 +2,7 @@ namespace CStructSharp.Codecs; using System; -/// Encodes validated bounded text into storage owned by the calling writer. +/// Encodes validated bounded text into storage owned by the calling writer. internal static partial class BoundedTextCodec { /// Encodes an immutable string after its complete encoding and capacity validation. diff --git a/src/CStructSharp/Codecs/PrimitiveCodec.IO.cs b/src/CStructSharp/Codecs/PrimitiveCodec.IO.cs index b2000e51..6ee58a18 100644 --- a/src/CStructSharp/Codecs/PrimitiveCodec.IO.cs +++ b/src/CStructSharp/Codecs/PrimitiveCodec.IO.cs @@ -5,7 +5,7 @@ namespace CStructSharp.Codecs; using System.Runtime.CompilerServices; using CStructSharp.Generated; -/// The runtime half of a primitive descriptor: reading and writing one numeric value through a span, via . +/// The runtime half of a primitive descriptor: reading and writing one numeric value through a span, via . internal readonly partial record struct PrimitiveCodec { // Every one-byte value boxed once: a box cannot be modified, so readers can share them and a parsed byte, sbyte diff --git a/src/CStructSharp/Codecs/PrimitiveCodecs.IO.cs b/src/CStructSharp/Codecs/PrimitiveCodecs.IO.cs index 9567c294..e0453143 100644 --- a/src/CStructSharp/Codecs/PrimitiveCodecs.IO.cs +++ b/src/CStructSharp/Codecs/PrimitiveCodecs.IO.cs @@ -9,10 +9,10 @@ namespace CStructSharp.Codecs; using CStructSharp.Generated; using CStructSharp.Streams; -/// +/// /// Provides the strict text encodings, terminated-string read/write logic, and other primitive-type-naming /// support shared by the primitive reader and writer maps that builds for itself. -/// +/// internal static partial class PrimitiveCodecs { /// diff --git a/src/CStructSharp/Compilation/CompiledCompositeType.Matches.cs b/src/CStructSharp/Compilation/CompiledCompositeType.Matches.cs index 3afdfe73..6599f387 100644 --- a/src/CStructSharp/Compilation/CompiledCompositeType.Matches.cs +++ b/src/CStructSharp/Compilation/CompiledCompositeType.Matches.cs @@ -2,7 +2,7 @@ namespace CStructSharp.Compilation; using System.Threading; -/// Runtime-only lazy recognition plans; shared compiler metadata contains no runtime reader dependency. +/// Runtime-only lazy recognition plans; shared compiler metadata contains no runtime reader dependency. internal sealed partial class CompiledCompositeType { private PreparedMatcher? matcher; diff --git a/src/CStructSharp/Compilation/CompiledCompositeType.Runtime.cs b/src/CStructSharp/Compilation/CompiledCompositeType.Runtime.cs index c23f9178..63faa946 100644 --- a/src/CStructSharp/Compilation/CompiledCompositeType.Runtime.cs +++ b/src/CStructSharp/Compilation/CompiledCompositeType.Runtime.cs @@ -3,7 +3,7 @@ namespace CStructSharp.Compilation; using System.Threading; using CStructSharp.Reading; -/// The runtime half of a compiled composite: the cached span read plan and layout fingerprint. +/// The runtime half of a compiled composite: the cached span read plan and layout fingerprint. internal sealed partial class CompiledCompositeType { // Stands for "built, and this composite has no static plan", so the cache is a single reference. diff --git a/src/CStructSharp/Engine/MemoryWriteBuffer.cs b/src/CStructSharp/Engine/MemoryWriteBuffer.cs index 472296ff..5d56f775 100644 --- a/src/CStructSharp/Engine/MemoryWriteBuffer.cs +++ b/src/CStructSharp/Engine/MemoryWriteBuffer.cs @@ -119,7 +119,11 @@ private MemoryWriteBuffer(bool span, byte* region, byte[]? staging, int capacity /// public override long Position { - get => this.position; + get + { + return this.position; + } + set { if (this.span) diff --git a/src/CStructSharp/Engine/ReadEngine.Debug.cs b/src/CStructSharp/Engine/ReadEngine.Debug.cs index eb17759b..c6fe18ad 100644 --- a/src/CStructSharp/Engine/ReadEngine.Debug.cs +++ b/src/CStructSharp/Engine/ReadEngine.Debug.cs @@ -11,11 +11,11 @@ namespace CStructSharp.Engine; using CStructSharp.Streams; using CStructSharp.Values; -/// +/// /// The debug parse of the compiled engine: the steps only debug programs hold (), /// which record every value read - its range, path, type spelling and value, in read order - and the layout capture /// an update compares. -/// +/// /// /// /// A debug program reads exactly what the ordinary program reads, with the same checks, but every array one diff --git a/src/CStructSharp/Engine/ReadEngine.Paths.cs b/src/CStructSharp/Engine/ReadEngine.Paths.cs index 64734583..ef38b09f 100644 --- a/src/CStructSharp/Engine/ReadEngine.Paths.cs +++ b/src/CStructSharp/Engine/ReadEngine.Paths.cs @@ -12,13 +12,13 @@ namespace CStructSharp.Engine; using CStructSharp.Streams; using CStructSharp.Values; -/// +/// /// The path operations of the compiled engine: a selected read (ReadValue of a path, and /// ReadValueWithDebug, which records what it reads), a parse of a nested /// struct (Parse and the debug parses of a path), ResolveAddress and GetArrayLength. Each /// resolves its path with the on the operation's cursor and slots, then reads what the /// path selects: from its exact address, standalone, at the nesting and pointer depth the path reached. -/// +/// internal static partial class ReadEngine { /// diff --git a/src/CStructSharp/Engine/ReadEngine.PlanChecks.cs b/src/CStructSharp/Engine/ReadEngine.PlanChecks.cs index 997ff41c..9f9d2495 100644 --- a/src/CStructSharp/Engine/ReadEngine.PlanChecks.cs +++ b/src/CStructSharp/Engine/ReadEngine.PlanChecks.cs @@ -7,7 +7,7 @@ namespace CStructSharp.Engine; using CStructSharp.Expressions; using CStructSharp.Reading; -/// The checks a static read plan runs between its operations: none, or the root composite's @expect and @supports conditions. +/// The checks a static read plan runs between its operations: none, or the root composite's @expect and @supports conditions. internal static partial class ReadEngine { /// What a static plan runs after each of its operations. diff --git a/src/CStructSharp/Engine/ReadEngine.Pointers.cs b/src/CStructSharp/Engine/ReadEngine.Pointers.cs index 85d45010..8134897a 100644 --- a/src/CStructSharp/Engine/ReadEngine.Pointers.cs +++ b/src/CStructSharp/Engine/ReadEngine.Pointers.cs @@ -11,12 +11,12 @@ namespace CStructSharp.Engine; using CStructSharp.Reading; using CStructSharp.Values; -/// +/// /// The pointer reads of the compiled engine, each with a fixed order of checks: the stored address, a deferred or /// in-place follow, the target's value, and the deferred pointers a struct follows after its last member. The /// bookkeeping (targets on the active path for cycle detection, the deferred queue) is the pooled /// . -/// +/// internal static partial class ReadEngine { /// diff --git a/src/CStructSharp/Engine/ReadEngine.Values.cs b/src/CStructSharp/Engine/ReadEngine.Values.cs index 204a8026..069adbe7 100644 --- a/src/CStructSharp/Engine/ReadEngine.Values.cs +++ b/src/CStructSharp/Engine/ReadEngine.Values.cs @@ -13,7 +13,7 @@ namespace CStructSharp.Engine; using CStructSharp.Reading; using CStructSharp.Values; -/// The value reads of the compiled engine: scalars through their codecs, caller codecs through their adapter, and every array shape. +/// The value reads of the compiled engine: scalars through their codecs, caller codecs through their adapter, and every array shape. internal static partial class ReadEngine { /// diff --git a/src/CStructSharp/Engine/TargetResolver.Counts.cs b/src/CStructSharp/Engine/TargetResolver.Counts.cs index e19cb723..4764a4ec 100644 --- a/src/CStructSharp/Engine/TargetResolver.Counts.cs +++ b/src/CStructSharp/Engine/TargetResolver.Counts.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Engine; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The resolver's counting half: where an element starts, how many elements an array holds, and the size of an element without a fixed size. +/// The resolver's counting half: where an element starts, how many elements an array holds, and the size of an element without a fixed size. internal static partial class TargetResolver { /// diff --git a/src/CStructSharp/Engine/TargetResolver.Measure.cs b/src/CStructSharp/Engine/TargetResolver.Measure.cs index e6df276a..4e5f4176 100644 --- a/src/CStructSharp/Engine/TargetResolver.Measure.cs +++ b/src/CStructSharp/Engine/TargetResolver.Measure.cs @@ -12,7 +12,7 @@ namespace CStructSharp.Engine; using CStructSharp.Syntax; using CstructEnum = CStructSharp.Syntax.Enum; -/// The resolver's measuring half: where a member, a struct or a composite the walk passes ends, reading only what its size depends on, and the traversal limits a walk into a composite checks first. +/// The resolver's measuring half: where a member, a struct or a composite the walk passes ends, reading only what its size depends on, and the traversal limits a walk into a composite checks first. internal static partial class TargetResolver { /// diff --git a/src/CStructSharp/Engine/WriteEngine.Unions.cs b/src/CStructSharp/Engine/WriteEngine.Unions.cs index 814cd643..6420e23a 100644 --- a/src/CStructSharp/Engine/WriteEngine.Unions.cs +++ b/src/CStructSharp/Engine/WriteEngine.Unions.cs @@ -9,13 +9,13 @@ namespace CStructSharp.Engine; using CStructSharp.Values; using CStructSharp.Writing; -/// +/// /// The unions of the compiled engine's writer and the end of a struct with bitfields. A union is written in two /// steps: its whole storage is staged away from the destination - zeroes (or, under update semantics /// that keep union storage, the union's existing bytes) with the selected member written over them from the union's /// first byte, with a budget of its own and a copy of the variables - and then written to the destination once, so a /// member that cannot be written leaves the destination unchanged. -/// +/// internal static partial class WriteEngine { /// diff --git a/src/CStructSharp/Engine/WriteEngine.Values.cs b/src/CStructSharp/Engine/WriteEngine.Values.cs index 946aa028..1a2d1530 100644 --- a/src/CStructSharp/Engine/WriteEngine.Values.cs +++ b/src/CStructSharp/Engine/WriteEngine.Values.cs @@ -18,7 +18,7 @@ namespace CStructSharp.Engine; using CStructSharp.Values; using CStructSharp.Writing; -/// The value encodings of the compiled engine's writer: numbers, codec values, enums, text, arrays, pointers and bitfields. +/// The value encodings of the compiled engine's writer: numbers, codec values, enums, text, arrays, pointers and bitfields. internal static partial class WriteEngine { /// diff --git a/src/CStructSharp/Generated/ReadCursor.Arrays.cs b/src/CStructSharp/Generated/ReadCursor.Arrays.cs index a271947e..62d066bf 100644 --- a/src/CStructSharp/Generated/ReadCursor.Arrays.cs +++ b/src/CStructSharp/Generated/ReadCursor.Arrays.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Generated; using CStructSharp.Diagnostics; using CStructSharp.Reading; -/// Consuming arrays: element runs charged against the byte budget, element counts to the end or to a terminator, and the element limit. +/// Consuming arrays: element runs charged against the byte budget, element counts to the end or to a terminator, and the element limit. public ref partial struct ReadCursor { /// diff --git a/src/CStructSharp/Generated/ReadCursor.Buffers.cs b/src/CStructSharp/Generated/ReadCursor.Buffers.cs index 536b7aa0..32e2f8c7 100644 --- a/src/CStructSharp/Generated/ReadCursor.Buffers.cs +++ b/src/CStructSharp/Generated/ReadCursor.Buffers.cs @@ -7,11 +7,11 @@ namespace CStructSharp.Generated; using System.Threading.Tasks; using CStructSharp.Streams; -/// +/// /// The buffered input forms of a generated read: a segmented sequence or a stream is read through a pooled buffer /// that grows while the span reader needs bytes past it, so the value, failures and offsets are those of the span /// form over the whole input (). -/// +/// public ref partial struct ReadCursor { /// diff --git a/src/CStructSharp/Generated/ReadCursor.Failures.cs b/src/CStructSharp/Generated/ReadCursor.Failures.cs index b6a60434..4873d209 100644 --- a/src/CStructSharp/Generated/ReadCursor.Failures.cs +++ b/src/CStructSharp/Generated/ReadCursor.Failures.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Generated; using CStructSharp.Diagnostics; using CStructSharp.Expressions; -/// Failures: the runtime's exceptions and texts, with the field, path and position context every read failure carries. +/// Failures: the runtime's exceptions and texts, with the field, path and position context every read failure carries. public ref partial struct ReadCursor { /// Gets whether the read evaluates no constraint ( is ): a generated constraint check returns before it evaluates a condition. diff --git a/src/CStructSharp/Generated/ReadCursor.Nesting.cs b/src/CStructSharp/Generated/ReadCursor.Nesting.cs index bce20b49..3cabfc6d 100644 --- a/src/CStructSharp/Generated/ReadCursor.Nesting.cs +++ b/src/CStructSharp/Generated/ReadCursor.Nesting.cs @@ -3,7 +3,7 @@ namespace CStructSharp.Generated; using System; using CStructSharp.Diagnostics; -/// Nesting: entering and leaving composites and unions, and following pointers to their targets with the depth, size and cycle rules. +/// Nesting: entering and leaving composites and unions, and following pointers to their targets with the depth, size and cycle rules. public ref partial struct ReadCursor { /// Enters a nested struct or union, enforcing MaxNestingDepth. diff --git a/src/CStructSharp/Generated/ReadCursor.Text.cs b/src/CStructSharp/Generated/ReadCursor.Text.cs index cceb3b89..4fb8fe88 100644 --- a/src/CStructSharp/Generated/ReadCursor.Text.cs +++ b/src/CStructSharp/Generated/ReadCursor.Text.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Generated; using CStructSharp.Codecs; using CStructSharp.Diagnostics; -/// Consuming text: fixed character buffers, encoded text buffers and terminated strings, with the runtime's string limit and failure texts. +/// Consuming text: fixed character buffers, encoded text buffers and terminated strings, with the runtime's string limit and failure texts. public ref partial struct ReadCursor { /// Consumes an encoded text buffer (utf8[N], ...): the string byte limit, then the bytes, with the runtime's texts. diff --git a/src/CStructSharp/Generated/ReadCursor.Values.cs b/src/CStructSharp/Generated/ReadCursor.Values.cs index 8da6e12c..4da5be55 100644 --- a/src/CStructSharp/Generated/ReadCursor.Values.cs +++ b/src/CStructSharp/Generated/ReadCursor.Values.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Generated; using CStructSharp.Codecs; using CStructSharp.Diagnostics; -/// Consuming single values: fixed-size composites, byte runs, caller codecs, identifiers and LEB128 integers. +/// Consuming single values: fixed-size composites, byte runs, caller codecs, identifiers and LEB128 integers. public ref partial struct ReadCursor { /// diff --git a/src/CStructSharp/Generated/ReadCursor.cs b/src/CStructSharp/Generated/ReadCursor.cs index 7784e32f..40248b38 100644 --- a/src/CStructSharp/Generated/ReadCursor.cs +++ b/src/CStructSharp/Generated/ReadCursor.cs @@ -87,7 +87,11 @@ public ReadCursor(ReadOnlySpan source, in ReadLimits limits, string? path /// Gets or sets the offset of the next byte to read. public int Position { - readonly get => this.position; + readonly get + { + return this.position; + } + set { if (value < 0 || value > this.source.Length) diff --git a/src/CStructSharp/Generated/WriteCursor.cs b/src/CStructSharp/Generated/WriteCursor.cs index 6789f16e..42801f35 100644 --- a/src/CStructSharp/Generated/WriteCursor.cs +++ b/src/CStructSharp/Generated/WriteCursor.cs @@ -64,7 +64,11 @@ public WriteCursor(Span destination, WriteOptions? options = null, string? /// Gets or sets the offset of the next byte to write. public int Position { - readonly get => this.position; + readonly get + { + return this.position; + } + set { if (value < 0 || value > this.length) diff --git a/src/CStructSharp/MappedTypes.Fixed.cs b/src/CStructSharp/MappedTypes.Fixed.cs index 60e81386..766133de 100644 --- a/src/CStructSharp/MappedTypes.Fixed.cs +++ b/src/CStructSharp/MappedTypes.Fixed.cs @@ -4,7 +4,7 @@ namespace CStructSharp; using System.Collections.Concurrent; using System.Diagnostics.CodeAnalysis; -/// The registry of the direct members of layout-bound mapped classes (). +/// The registry of the direct members of layout-bound mapped classes (). public static partial class MappedTypes { private static readonly ConcurrentDictionary FixedWriters = new(); diff --git a/src/CStructSharp/Memory/MemoryAccessContext.cs b/src/CStructSharp/Memory/MemoryAccessContext.cs index b3f7187a..a1eade0e 100644 --- a/src/CStructSharp/Memory/MemoryAccessContext.cs +++ b/src/CStructSharp/Memory/MemoryAccessContext.cs @@ -44,7 +44,11 @@ public MemoryAccessContext() /// The value set is zero or negative. public long MaxTotalBytes { - get => this.maxTotalBytes; + get + { + return this.maxTotalBytes; + } + init { ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); @@ -59,7 +63,11 @@ public long MaxTotalBytes /// The value set is zero or negative. public int MaxRequests { - get => this.maxRequests; + get + { + return this.maxRequests; + } + init { ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); @@ -74,7 +82,11 @@ public int MaxRequests /// The value set is zero or negative. public int MaxNestingDepth { - get => this.maxNestingDepth; + get + { + return this.maxNestingDepth; + } + init { ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); @@ -89,7 +101,11 @@ public int MaxNestingDepth /// The value set is zero or negative. public int MaxPointerDepth { - get => this.maxPointerDepth; + get + { + return this.maxPointerDepth; + } + init { ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); diff --git a/src/CStructSharp/Memory/MemoryRegionStream.cs b/src/CStructSharp/Memory/MemoryRegionStream.cs index 2e46daea..6c76f3c3 100644 --- a/src/CStructSharp/Memory/MemoryRegionStream.cs +++ b/src/CStructSharp/Memory/MemoryRegionStream.cs @@ -48,7 +48,11 @@ internal MemoryRegionStream(MemoryRegion region, MemoryAccessContext context) /// Gets or sets the local position, from zero (the region's start) to the region length (end of file). public override long Position { - get => this.position; + get + { + return this.position; + } + set { ObjectDisposedException.ThrowIf(this.disposed, this); diff --git a/src/CStructSharp/Memory/MemoryScalarCodec.cs b/src/CStructSharp/Memory/MemoryScalarCodec.cs index 04052630..ab4dd5a2 100644 --- a/src/CStructSharp/Memory/MemoryScalarCodec.cs +++ b/src/CStructSharp/Memory/MemoryScalarCodec.cs @@ -97,8 +97,9 @@ internal Type ResultType(bool signedSlice) return typeof(Values.EnumValueResult); } - return this.bitWidth > 0 ? signedSlice ? typeof(long) : this.bitWidth < 32 ? typeof(int) : typeof(ulong) - : direct is not null ? FieldAccessor.NaturalType(direct.Codec) ?? typeof(object) : typeof(object); + return this.bitWidth > 0 ? (signedSlice ? typeof(long) : this.bitWidth < 32 ? typeof(int) : typeof(ulong)) : + direct is not null ? FieldAccessor.NaturalType(direct.Codec) ?? typeof(object) : + typeof(object); } /// Decodes a validated typed numeric selection without boxing; other codecs keep their original decoding contract. diff --git a/src/CStructSharp/Memory/MemorySchema.Selection.cs b/src/CStructSharp/Memory/MemorySchema.Selection.cs index 8108a6ff..9c330a04 100644 --- a/src/CStructSharp/Memory/MemorySchema.Selection.cs +++ b/src/CStructSharp/Memory/MemorySchema.Selection.cs @@ -1,6 +1,6 @@ namespace CStructSharp.Memory; -/// Schema-only path selection and explicitly owned prepared typed readers. +/// Schema-only path selection and explicitly owned prepared typed readers. public sealed partial class MemorySchema { /// Prepares a fixed raw byte-array path without retaining captured storage. diff --git a/src/CStructSharp/Memory/MemorySession.Arrays.cs b/src/CStructSharp/Memory/MemorySession.Arrays.cs index 91aed4bc..b6b1c428 100644 --- a/src/CStructSharp/Memory/MemorySession.Arrays.cs +++ b/src/CStructSharp/Memory/MemorySession.Arrays.cs @@ -14,7 +14,7 @@ public enum MemoryArrayReadMode Bulk, } -/// Caller-owned arrays and explicitly bounded transport operations. +/// Caller-owned arrays and explicitly bounded transport operations. public sealed partial class MemorySession { /// Copies a declared byte or signed-byte array directly to caller-owned raw storage. diff --git a/src/CStructSharp/Memory/MemorySession.Selection.cs b/src/CStructSharp/Memory/MemorySession.Selection.cs index 3e8df929..de790793 100644 --- a/src/CStructSharp/Memory/MemorySession.Selection.cs +++ b/src/CStructSharp/Memory/MemorySession.Selection.cs @@ -1,6 +1,6 @@ namespace CStructSharp.Memory; -/// Prepared and non-throwing selection operations. +/// Prepared and non-throwing selection operations. public sealed partial class MemorySession { /// Resolves a path while returning expected schema and memory failures as structured data. diff --git a/src/CStructSharp/Memory/MemoryWalker.cs b/src/CStructSharp/Memory/MemoryWalker.cs index 00f71b9d..feda1af5 100644 --- a/src/CStructSharp/Memory/MemoryWalker.cs +++ b/src/CStructSharp/Memory/MemoryWalker.cs @@ -161,9 +161,9 @@ private sealed class SourceAddressComparer : IEqualityComparer<(IMemorySource So internal static SourceAddressComparer Instance { get; } = new(); /// - public bool Equals((IMemorySource Source, ulong Address) left, (IMemorySource Source, ulong Address) right) => ReferenceEquals(left.Source, right.Source) && left.Address == right.Address; + public bool Equals((IMemorySource Source, ulong Address) x, (IMemorySource Source, ulong Address) y) => ReferenceEquals(x.Source, y.Source) && x.Address == y.Address; /// - public int GetHashCode((IMemorySource Source, ulong Address) value) => HashCode.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(value.Source), value.Address); + public int GetHashCode((IMemorySource Source, ulong Address) obj) => HashCode.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(obj.Source), obj.Address); } } diff --git a/src/CStructSharp/Memory/Metadata/BtfMetadata.Projection.cs b/src/CStructSharp/Memory/Metadata/BtfMetadata.Projection.cs index 617cd591..acf22efe 100644 --- a/src/CStructSharp/Memory/Metadata/BtfMetadata.Projection.cs +++ b/src/CStructSharp/Memory/Metadata/BtfMetadata.Projection.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Memory.Metadata; using CStructSharp.Compilation; using CStructSharp.Diagnostics; -/// Imports field-directed BTF schemas while retaining native IDs and explicit projection availability. +/// Imports field-directed BTF schemas while retaining native IDs and explicit projection availability. public sealed partial class BtfMetadata { /// Imports the union of selected paths, following embedded values and only explicitly requested pointer targets. diff --git a/src/CStructSharp/Memory/Metadata/IsfMetadata.Projection.cs b/src/CStructSharp/Memory/Metadata/IsfMetadata.Projection.cs index cb0d7a11..a65bd648 100644 --- a/src/CStructSharp/Memory/Metadata/IsfMetadata.Projection.cs +++ b/src/CStructSharp/Memory/Metadata/IsfMetadata.Projection.cs @@ -4,7 +4,7 @@ namespace CStructSharp.Memory.Metadata; using CStructSharp.Compilation; using CStructSharp.Diagnostics; -/// Imports immutable field-directed ISF schemas without walking unrequested pointer graphs. +/// Imports immutable field-directed ISF schemas without walking unrequested pointer graphs. public sealed partial class IsfMetadata { /// Imports the union of selected member/index/pointer paths, preserving the root size and recorded placement. diff --git a/src/CStructSharp/ReadLimits.cs b/src/CStructSharp/ReadLimits.cs index d4fe2ec6..a6f0e52d 100644 --- a/src/CStructSharp/ReadLimits.cs +++ b/src/CStructSharp/ReadLimits.cs @@ -98,13 +98,20 @@ public int MaxNestingDepth /// The value is not a member of . public InvalidTextHandling InvalidText { - get => (this.flags & LenientBit) != 0 ? InvalidTextHandling.Replace : InvalidTextHandling.Fail; - init => this.flags = value switch + get { - InvalidTextHandling.Fail => (byte)(this.flags & ~LenientBit), - InvalidTextHandling.Replace => (byte)(this.flags | LenientBit), - _ => throw new System.ArgumentOutOfRangeException(nameof(value), value, "Not a member of InvalidTextHandling."), - }; + return (this.flags & LenientBit) != 0 ? InvalidTextHandling.Replace : InvalidTextHandling.Fail; + } + + init + { + this.flags = value switch + { + InvalidTextHandling.Fail => (byte)(this.flags & ~LenientBit), + InvalidTextHandling.Replace => (byte)(this.flags | LenientBit), + _ => throw new System.ArgumentOutOfRangeException(nameof(value), value, "Not a member of InvalidTextHandling."), + }; + } } /// @@ -114,13 +121,20 @@ public InvalidTextHandling InvalidText /// The value is not a member of . public ConstraintPolicy Constraints { - get => (this.flags & SkipBit) != 0 ? ConstraintPolicy.Skip : ConstraintPolicy.Enforce; - init => this.flags = value switch + get { - ConstraintPolicy.Enforce => (byte)(this.flags & ~SkipBit), - ConstraintPolicy.Skip => (byte)(this.flags | SkipBit), - _ => throw new System.ArgumentOutOfRangeException(nameof(value), value, "Not a member of ConstraintPolicy."), - }; + return (this.flags & SkipBit) != 0 ? ConstraintPolicy.Skip : ConstraintPolicy.Enforce; + } + + init + { + this.flags = value switch + { + ConstraintPolicy.Enforce => (byte)(this.flags & ~SkipBit), + ConstraintPolicy.Skip => (byte)(this.flags | SkipBit), + _ => throw new System.ArgumentOutOfRangeException(nameof(value), value, "Not a member of ConstraintPolicy."), + }; + } } /// Gets the token a long read observes; see . @@ -134,7 +148,11 @@ public ConstraintPolicy Constraints /// The value is negative or greater than . public long OffsetBase { - get => ((long)this.offsetBaseHigh << 32) | this.offsetBaseLow; + get + { + return ((long)this.offsetBaseHigh << 32) | this.offsetBaseLow; + } + init { ValidateOffsetBase(value); diff --git a/src/CStructSharp/ReadOptions.cs b/src/CStructSharp/ReadOptions.cs index 4e06ce1a..77e71858 100644 --- a/src/CStructSharp/ReadOptions.cs +++ b/src/CStructSharp/ReadOptions.cs @@ -44,12 +44,12 @@ public ReadOptions() { } - /// Gets the members few reads set (offset base, violation collection, buffered-input continuation), or when none is. - internal Reading.ReadExtras? Extras => this.extras; - /// Gets the shared default options an operation uses when the caller passes none. internal static ReadOptions Default { get; } = new(); + /// Gets the members few reads set (offset base, violation collection, buffered-input continuation), or when none is. + internal Reading.ReadExtras? Extras => this.extras; + /// Gets which fast paths the read may take before the compiled engine; tests restrict it to compare them with the engine. internal ExecutionPath ExecutionPath { get; init; } @@ -87,7 +87,11 @@ internal long ContinuedInputLength public long? MaxPointerTargetBytes { [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => this.hasMaxPointerTargetBytes ? this.maxPointerTargetBytes : null; + get + { + return this.hasMaxPointerTargetBytes ? this.maxPointerTargetBytes : null; + } + init { this.hasMaxPointerTargetBytes = value.HasValue; @@ -141,13 +145,20 @@ public long? MaxPointerTargetBytes /// The value is not a member of . public InvalidTextHandling InvalidText { - get => this.lenientText ? InvalidTextHandling.Replace : InvalidTextHandling.Fail; - init => this.lenientText = value switch + get { - InvalidTextHandling.Fail => false, - InvalidTextHandling.Replace => true, - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Not a member of InvalidTextHandling."), - }; + return this.lenientText ? InvalidTextHandling.Replace : InvalidTextHandling.Fail; + } + + init + { + this.lenientText = value switch + { + InvalidTextHandling.Fail => false, + InvalidTextHandling.Replace => true, + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Not a member of InvalidTextHandling."), + }; + } } /// Gets whether invalid text is replaced instead of failing, as the readers test it. @@ -170,7 +181,11 @@ public InvalidTextHandling InvalidText /// The value is negative or greater than 2^48 - 1 (). public long OffsetBase { - get => this.extras?.OffsetBase ?? 0; + get + { + return this.extras?.OffsetBase ?? 0; + } + init { ReadLimits.ValidateOffsetBase(value); @@ -208,7 +223,11 @@ public System.Collections.Generic.ICollectionThe value is not a member of . public ConstraintPolicy Constraints { - get => this.extras is { SkipConstraints: true } ? ConstraintPolicy.Skip : ConstraintPolicy.Enforce; + get + { + return this.extras is { SkipConstraints: true } ? ConstraintPolicy.Skip : ConstraintPolicy.Enforce; + } + init { if (!Enum.IsDefined(value)) diff --git a/src/CStructSharp/Reading/PrimitiveArrayReader.cs b/src/CStructSharp/Reading/PrimitiveArrayReader.cs index 56e8cf3f..71ed3b61 100644 --- a/src/CStructSharp/Reading/PrimitiveArrayReader.cs +++ b/src/CStructSharp/Reading/PrimitiveArrayReader.cs @@ -125,18 +125,18 @@ public static Type GetElementType(PrimitiveCodec codec) /// The typed array, or when has no typed array. public static IList? FromBoxed(Type elementType, IReadOnlyList values) { - return elementType == typeof(byte) ? Typed(values) - : elementType == typeof(sbyte) ? Typed(values) - : elementType == typeof(bool) ? Typed(values) - : elementType == typeof(short) ? Typed(values) - : elementType == typeof(ushort) ? Typed(values) - : elementType == typeof(int) ? Typed(values) - : elementType == typeof(uint) ? Typed(values) - : elementType == typeof(long) ? Typed(values) - : elementType == typeof(ulong) ? Typed(values) - : elementType == typeof(float) ? Typed(values) - : elementType == typeof(double) ? Typed(values) - : null; + return elementType == typeof(byte) ? Typed(values) : + elementType == typeof(sbyte) ? Typed(values) : + elementType == typeof(bool) ? Typed(values) : + elementType == typeof(short) ? Typed(values) : + elementType == typeof(ushort) ? Typed(values) : + elementType == typeof(int) ? Typed(values) : + elementType == typeof(uint) ? Typed(values) : + elementType == typeof(long) ? Typed(values) : + elementType == typeof(ulong) ? Typed(values) : + elementType == typeof(float) ? Typed(values) : + elementType == typeof(double) ? Typed(values) : + null; // Unboxes every element into a new typed array. static PrimitiveArray Typed(IReadOnlyList boxed) diff --git a/src/CStructSharp/Reading/ReadOperationSettings.cs b/src/CStructSharp/Reading/ReadOperationSettings.cs index 351ebfe9..535d2578 100644 --- a/src/CStructSharp/Reading/ReadOperationSettings.cs +++ b/src/CStructSharp/Reading/ReadOperationSettings.cs @@ -8,6 +8,20 @@ namespace CStructSharp.Reading; /// is : zero when the input is whole, /// otherwise the length of the input the handed bytes start (or ). /// +/// How pointer values map to stream positions. +/// Whether non-null pointers are followed while reading. +/// The most pointers followed in one chain. +/// The largest decoded size of one pointer target in bytes; when unrestricted. +/// The largest element count of one array. +/// The largest encoded length in bytes of one terminated string, terminator included. +/// The total byte budget of the operation. +/// The deepest struct and union nesting the read enters. +/// The signed base position added to relative pointer offsets. +/// Whether fixed-capacity text drops its trailing NUL padding. +/// The token observed at composite, pointer, array-block and string-chunk boundaries. +/// Which fast paths the read may take before the compiled engine. +/// The rarely set members (offset base, violation collection, buffered-input continuation); for an ordinary read. +/// Whether invalid encoded text reads as U+FFFD instead of failing the read. internal readonly record struct ReadOperationSettings( PointerAddressingMode AddressingMode, bool DereferencePointers, @@ -39,7 +53,11 @@ internal readonly record struct ReadOperationSettings( /// Gets the largest decoded size of one pointer target in bytes, or null when target sizes are unrestricted. public long? MaxPointerTargetBytes { - get => this.hasMaxPointerTargetBytes ? this.maxPointerTargetBytes : null; + get + { + return this.hasMaxPointerTargetBytes ? this.maxPointerTargetBytes : null; + } + init { this.hasMaxPointerTargetBytes = value.HasValue; @@ -67,24 +85,6 @@ public long? MaxPointerTargetBytes !this.CancellationToken.IsCancellationRequested && this.MaxPointerDepth >= 0 && this.maxPointerTargetBytes >= 0 && this.MaxArrayElements >= 0 && this.MaxStringBytes >= 0 && this.MaxTotalBytesRead >= 0 && this.MaxNestingDepth > 0; - /// - /// Returns whether these limits admit a read the compiled engine would complete at structure depth - /// : within the byte budget, the read's structs within the - /// nesting limit, and its longest array within the element limit. - /// - /// The bytes the read consumes. - /// The structure depth the read starts at (0 for a root). - /// The struct levels the read adds. - /// The largest element count among the read's arrays. - /// Whether the read stays within every limit. - public bool Covers(long bytes, int structureDepth, int nestingDepth, int arrayCount) - => bytes <= this.MaxTotalBytesRead && structureDepth + nestingDepth <= this.MaxNestingDepth && arrayCount <= this.MaxArrayElements; - - /// Returns whether these limits admit running as a root read. - /// The static read plan. - /// Whether the plan's bytes, nesting and arrays stay within the limits. - public bool CoversPlan(StaticReadPlan plan) => plan.Size <= this.MaxTotalBytesRead && PlanFits(plan, 0, this.MaxNestingDepth, this.MaxArrayElements); - /// /// Returns whether a static plan's structs and arrays fit the nesting and element limits when it starts at /// : the check a root read () and the engine's nested reads @@ -232,4 +232,22 @@ public static void ValidateSettings(in ReadOperationSettings options) throw new ArgumentOutOfRangeException(nameof(options), "Maximum nesting depth must be greater than zero."); } } + + /// + /// Returns whether these limits admit a read the compiled engine would complete at structure depth + /// : within the byte budget, the read's structs within the + /// nesting limit, and its longest array within the element limit. + /// + /// The bytes the read consumes. + /// The structure depth the read starts at (0 for a root). + /// The struct levels the read adds. + /// The largest element count among the read's arrays. + /// Whether the read stays within every limit. + public bool Covers(long bytes, int structureDepth, int nestingDepth, int arrayCount) + => bytes <= this.MaxTotalBytesRead && structureDepth + nestingDepth <= this.MaxNestingDepth && arrayCount <= this.MaxArrayElements; + + /// Returns whether these limits admit running as a root read. + /// The static read plan. + /// Whether the plan's bytes, nesting and arrays stay within the limits. + public bool CoversPlan(StaticReadPlan plan) => plan.Size <= this.MaxTotalBytesRead && PlanFits(plan, 0, this.MaxNestingDepth, this.MaxArrayElements); } diff --git a/src/CStructSharp/Reading/RecordRoot.cs b/src/CStructSharp/Reading/RecordRoot.cs index 26fd5e90..ef0773a6 100644 --- a/src/CStructSharp/Reading/RecordRoot.cs +++ b/src/CStructSharp/Reading/RecordRoot.cs @@ -1,4 +1,6 @@ namespace CStructSharp.Reading; /// The struct a record sequence is made of: its declaration name and its fixed size, when it has one under the operation's variables. +/// The struct's declaration name. +/// The struct's size in bytes when every record has the same size; when each record's size depends on its contents. internal readonly record struct RecordRoot(string Name, int? Size); diff --git a/src/CStructSharp/Streams/BufferWriterStream.cs b/src/CStructSharp/Streams/BufferWriterStream.cs index 032d1809..c92e0259 100644 --- a/src/CStructSharp/Streams/BufferWriterStream.cs +++ b/src/CStructSharp/Streams/BufferWriterStream.cs @@ -81,30 +81,30 @@ public override void Flush() } /// Reads bytes retained in the active window for bitfield merging. - /// The array that receives the bytes. - /// The index in where the first byte is stored. + /// The array that receives the bytes. + /// The index in where the first byte is stored. /// The maximum number of bytes to read. /// The number of bytes copied, or 0 at or past the end of the active window. - public override int Read(byte[] destination, int offset, int count) + public override int Read(byte[] buffer, int offset, int count) { - StreamArgumentValidation.ValidateRange(destination, offset, count, nameof(destination)); - return this.Read(destination.AsSpan(offset, count)); + StreamArgumentValidation.ValidateRange(buffer, offset, count, nameof(buffer)); + return this.Read(buffer.AsSpan(offset, count)); } /// Reads bytes retained in the active window for bitfield merging. - /// The span to fill; at most its length in bytes is copied. + /// The span to fill; at most its length in bytes is copied. /// The number of bytes copied, or 0 at or past the end of the active window. /// was already called. - public override int Read(Span destination) + public override int Read(Span buffer) { this.EnsureActive(); - int count = Math.Min(destination.Length, this.windowLength - this.windowPosition); + int count = Math.Min(buffer.Length, this.windowLength - this.windowPosition); if (count <= 0) { return 0; } - this.window.Span.Slice(this.windowPosition, count).CopyTo(destination); + this.window.Span.Slice(this.windowPosition, count).CopyTo(buffer); this.windowPosition += count; return count; } @@ -185,34 +185,34 @@ public override void SetLength(long value) } /// Appends or rewrites bytes in the active uncommitted window. - /// The array holding the bytes to write. - /// The index in of the first byte to write. + /// The array holding the bytes to write. + /// The index in of the first byte to write. /// The number of bytes to write. - public override void Write(byte[] source, int offset, int count) + public override void Write(byte[] buffer, int offset, int count) { - StreamArgumentValidation.ValidateRange(source, offset, count, nameof(source)); - this.Write(source.AsSpan(offset, count)); + StreamArgumentValidation.ValidateRange(buffer, offset, count, nameof(buffer)); + this.Write(buffer.AsSpan(offset, count)); } /// Appends or rewrites bytes in the active uncommitted window. - /// + /// /// The bytes to copy at the current position; a gap left by seeking forward is zero-filled first. /// /// was already called. /// /// The bytes would overwrite part of the window and then cross into output that must be committed first. /// - public override void Write(ReadOnlySpan source) + public override void Write(ReadOnlySpan buffer) { this.EnsureActive(); - this.EnsureWritableRange(source.Length); + this.EnsureWritableRange(buffer.Length); if (this.windowPosition > this.windowLength) { this.window.Span.Slice(this.windowLength, this.windowPosition - this.windowLength).Clear(); } - source.CopyTo(this.window.Span.Slice(this.windowPosition, source.Length)); - this.windowPosition += source.Length; + buffer.CopyTo(this.window.Span.Slice(this.windowPosition, buffer.Length)); + this.windowPosition += buffer.Length; this.windowLength = Math.Max(this.windowLength, this.windowPosition); } diff --git a/src/CStructSharp/Streams/FixedBufferStream.cs b/src/CStructSharp/Streams/FixedBufferStream.cs index aefabc9e..ec0e14b8 100644 --- a/src/CStructSharp/Streams/FixedBufferStream.cs +++ b/src/CStructSharp/Streams/FixedBufferStream.cs @@ -10,7 +10,7 @@ namespace CStructSharp.Streams; /// internal sealed unsafe class FixedBufferStream : Stream { - private readonly byte* buffer; + private readonly byte* regionStart; private readonly int capacity; private readonly bool writable; private long length; @@ -42,7 +42,7 @@ public FixedBufferStream(byte* buffer, int capacity, bool writable, bool initial throw new ArgumentOutOfRangeException(nameof(capacity)); } - this.buffer = buffer; + this.regionStart = buffer; this.capacity = capacity; this.writable = writable; this.length = initialized ? capacity : 0; @@ -67,7 +67,11 @@ public FixedBufferStream(byte* buffer, int capacity, bool writable, bool initial /// The value is negative or past the capacity. public override long Position { - get => this.position; + get + { + return this.position; + } + set { if (value < 0 || value > this.capacity) @@ -95,34 +99,34 @@ public override void Flush() /// internal bool TryGetReadOnlyRegion(out byte* region, out long length) { - region = this.buffer; + region = this.regionStart; length = this.length; return !this.writable; } /// Reads initialized bytes from the current region position. - /// The array that receives the bytes. - /// The index in where the first byte is stored. + /// The array that receives the bytes. + /// The index in where the first byte is stored. /// The maximum number of bytes to read. /// The number of bytes copied, or 0 at or past the initialized length. - public override int Read(byte[] destination, int offset, int count) + public override int Read(byte[] buffer, int offset, int count) { - StreamArgumentValidation.ValidateRange(destination, offset, count, nameof(destination)); - return this.Read(destination.AsSpan(offset, count)); + StreamArgumentValidation.ValidateRange(buffer, offset, count, nameof(buffer)); + return this.Read(buffer.AsSpan(offset, count)); } /// Reads initialized bytes from the current region position. - /// The span to fill; at most its length in bytes is copied. + /// The span to fill; at most its length in bytes is copied. /// The number of bytes copied, or 0 at or past the initialized length. - public override int Read(Span destination) + public override int Read(Span buffer) { - int count = (int)Math.Min(destination.Length, Math.Max(0, this.length - this.position)); + int count = (int)Math.Min(buffer.Length, Math.Max(0, this.length - this.position)); if (count == 0) { return 0; } - new ReadOnlySpan(this.buffer + (int)this.position, count).CopyTo(destination); + new ReadOnlySpan(this.regionStart + (int)this.position, count).CopyTo(buffer); this.position += count; return count; } @@ -177,7 +181,7 @@ public override void SetLength(long value) if (value > this.length) { - new Span(this.buffer + (int)this.length, (int)(value - this.length)).Clear(); + new Span(this.regionStart + (int)this.length, (int)(value - this.length)).Clear(); } this.length = value; @@ -188,36 +192,36 @@ public override void SetLength(long value) } /// Writes into caller storage and extends the initialized prefix. - /// The array holding the bytes to write. - /// The index in of the first byte to write. + /// The array holding the bytes to write. + /// The index in of the first byte to write. /// The number of bytes to write. - public override void Write(byte[] source, int offset, int count) + public override void Write(byte[] buffer, int offset, int count) { - StreamArgumentValidation.ValidateRange(source, offset, count, nameof(source)); - this.Write(source.AsSpan(offset, count)); + StreamArgumentValidation.ValidateRange(buffer, offset, count, nameof(buffer)); + this.Write(buffer.AsSpan(offset, count)); } /// Writes into caller storage and extends the initialized prefix. - /// + /// /// The bytes to copy at the current position; a gap left by seeking past the length is zero-filled first. /// /// The region is read-only. /// The bytes would run past the region's capacity. - public override void Write(ReadOnlySpan source) + public override void Write(ReadOnlySpan buffer) { this.EnsureWritable(); - if (source.Length > this.capacity - this.position) + if (buffer.Length > this.capacity - this.position) { throw new CStructWriteException(WriteFailures.DestinationCapacity); } if (this.position > this.length) { - new Span(this.buffer + (int)this.length, (int)(this.position - this.length)).Clear(); + new Span(this.regionStart + (int)this.length, (int)(this.position - this.length)).Clear(); } - source.CopyTo(new Span(this.buffer + (int)this.position, source.Length)); - this.position += source.Length; + buffer.CopyTo(new Span(this.regionStart + (int)this.position, buffer.Length)); + this.position += buffer.Length; this.length = Math.Max(this.length, this.position); } diff --git a/src/CStructSharp/Streams/SparseUpdateStream.cs b/src/CStructSharp/Streams/SparseUpdateStream.cs index 578aeb54..e1043233 100644 --- a/src/CStructSharp/Streams/SparseUpdateStream.cs +++ b/src/CStructSharp/Streams/SparseUpdateStream.cs @@ -61,7 +61,11 @@ public SparseUpdateStream(Stream baseline, long initialPosition, ArrayPool /// The value set is negative. public override long Position { - get => this.position; + get + { + return this.position; + } + set { if (value < 0) diff --git a/src/CStructSharp/Values/StructValue.cs b/src/CStructSharp/Values/StructValue.cs index 9a25792a..7a34ae4e 100644 --- a/src/CStructSharp/Values/StructValue.cs +++ b/src/CStructSharp/Values/StructValue.cs @@ -98,13 +98,13 @@ public object? this[string name] } /// Returns the member value, or when the member is absent. - /// The member name, case-sensitive. + /// The member name, case-sensitive. /// The member value when present; otherwise . /// when the member is present. - public bool TryGetValue(string name, out object? value) + public bool TryGetValue(string key, out object? value) { - ArgumentNullException.ThrowIfNull(name); - if (this.shape.TryGetIndex(name, out int index)) + ArgumentNullException.ThrowIfNull(key); + if (this.shape.TryGetIndex(key, out int index)) { object? slot = this.slots[index]; if (!ReferenceEquals(slot, Unset)) @@ -119,7 +119,7 @@ public bool TryGetValue(string name, out object? value) if (this.extra is not null) { - return this.extra.TryGetValue(name, out value); + return this.extra.TryGetValue(key, out value); } value = null; @@ -223,47 +223,47 @@ public T GetOrDefault(string path, T fallback) => this.TryGet(path, out T? value, out _) ? value! : fallback; /// Returns whether a member is present. - /// The member name, case-sensitive. + /// The member name, case-sensitive. /// when the member is present. - public bool ContainsKey(string name) + public bool ContainsKey(string key) { - return this.TryGetValue(name, out _); + return this.TryGetValue(key, out _); } /// Adds a member; throws when it is already present. - /// The member name, case-sensitive. + /// The member name, case-sensitive. /// The member value. - public void Add(string name, object? value) + public void Add(string key, object? value) { - if (this.ContainsKey(name)) + if (this.ContainsKey(key)) { - throw new ArgumentException($"The parsed struct already has a member '{name}'.", nameof(name)); + throw new ArgumentException($"The parsed struct already has a member '{key}'.", nameof(key)); } - this.Set(name, value); + this.Set(key, value); } /// Removes a member; returns whether it was present. - /// The member name, case-sensitive. + /// The member name, case-sensitive. /// when the member was present and has been removed. - public bool Remove(string name) + public bool Remove(string key) { - ArgumentNullException.ThrowIfNull(name); + ArgumentNullException.ThrowIfNull(key); bool removed; - if (this.shape.TryGetIndex(name, out int index)) + if (this.shape.TryGetIndex(key, out int index)) { removed = !ReferenceEquals(this.slots[index], Unset); this.slots[index] = Unset; } else { - removed = this.extra?.Remove(name) ?? false; + removed = this.extra?.Remove(key) ?? false; } if (removed) { this.count--; - this.insertionOrder?.Remove(name); + this.insertionOrder?.Remove(key); } return removed; diff --git a/src/CStructSharp/Values/ValuePath.cs b/src/CStructSharp/Values/ValuePath.cs index e8f735de..9352cf86 100644 --- a/src/CStructSharp/Values/ValuePath.cs +++ b/src/CStructSharp/Values/ValuePath.cs @@ -353,12 +353,15 @@ private static string Describe(IEnumerable names) return string.Join(", ", names); } + /// Names a container type the way a path failure message describes it. + /// The runtime type of the value the path reached. + /// struct, union, pointer, enum value, or the type name otherwise. private static string Describe(Type type) { - return type == typeof(StructValue) ? "struct" - : type == typeof(UnionValue) ? "union" - : type == typeof(Pointer) ? "pointer" - : type == typeof(EnumValueResult) ? "enum value" - : type.Name; + return type == typeof(StructValue) ? "struct" : + type == typeof(UnionValue) ? "union" : + type == typeof(Pointer) ? "pointer" : + type == typeof(EnumValueResult) ? "enum value" : + type.Name; } } diff --git a/src/CStructSharp/Writing/NoStaticWriteCaptures.cs b/src/CStructSharp/Writing/NoStaticWriteCaptures.cs index 792ae71e..93a59267 100644 --- a/src/CStructSharp/Writing/NoStaticWriteCaptures.cs +++ b/src/CStructSharp/Writing/NoStaticWriteCaptures.cs @@ -11,7 +11,11 @@ namespace CStructSharp.Writing; /// Gets ; setting it does nothing. public string? QualifiedPrefix { - get => null; + get + { + return null; + } + set { // No later field reads a qualified name, so the prefix is not kept. diff --git a/tests/CStructSharp.Generated.Parity/CStructSharp.Generated.Parity.csproj b/tests/CStructSharp.Generated.Parity/CStructSharp.Generated.Parity.csproj index d83709bf..17cee090 100644 --- a/tests/CStructSharp.Generated.Parity/CStructSharp.Generated.Parity.csproj +++ b/tests/CStructSharp.Generated.Parity/CStructSharp.Generated.Parity.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/tests/CStructSharp.Generated.Parity/StreamFailureTests.cs b/tests/CStructSharp.Generated.Parity/StreamFailureTests.cs index 2814acce..0ca6d4e0 100644 --- a/tests/CStructSharp.Generated.Parity/StreamFailureTests.cs +++ b/tests/CStructSharp.Generated.Parity/StreamFailureTests.cs @@ -96,7 +96,11 @@ public PartialFailureStream(bool cancel, bool failRestore) /// Gets the cursor or restores it, optionally failing to model a broken underlying source. public override long Position { - get => this.position; + get + { + return this.position; + } + set { this.RestoreAttempted = true; diff --git a/tests/CStructSharp.Generators.Modern.Tests/CStructSharp.Generators.Modern.Tests.csproj b/tests/CStructSharp.Generators.Modern.Tests/CStructSharp.Generators.Modern.Tests.csproj index ca2a306e..3880271a 100644 --- a/tests/CStructSharp.Generators.Modern.Tests/CStructSharp.Generators.Modern.Tests.csproj +++ b/tests/CStructSharp.Generators.Modern.Tests/CStructSharp.Generators.Modern.Tests.csproj @@ -7,8 +7,8 @@ $(DefineConstants);MODERN_ROSLYN - - + + diff --git a/tests/CStructSharp.Generators.Tests/AnalyzerTests.cs b/tests/CStructSharp.Generators.Tests/AnalyzerTests.cs index b592ae87..a0967983 100644 --- a/tests/CStructSharp.Generators.Tests/AnalyzerTests.cs +++ b/tests/CStructSharp.Generators.Tests/AnalyzerTests.cs @@ -1,7 +1,7 @@ -extern alias Generators; - namespace CStructSharp.Generators.Tests; +extern alias Generators; + using System; using System.Collections.Generic; using System.Collections.Immutable; diff --git a/tests/CStructSharp.Generators.Tests/BenchmarkFixture.cs b/tests/CStructSharp.Generators.Tests/BenchmarkFixture.cs index fb2a8513..ca3a3186 100644 --- a/tests/CStructSharp.Generators.Tests/BenchmarkFixture.cs +++ b/tests/CStructSharp.Generators.Tests/BenchmarkFixture.cs @@ -4,6 +4,16 @@ namespace CStructSharp.Generators.Tests; using CStructSharp; /// One benchmark fixture case with its bytes and options. +/// The fixture's identifier. +/// The layout text. +/// The struct the fixture parses. +/// The pointer width in bytes. +/// Whether the portable composite-alignment rules apply. +/// Whether neutral values are little-endian. +/// The input bytes. +/// The layout variables passed to the read. +/// The read options, or for the defaults. +/// The failure message the read must report, or when it succeeds. internal sealed record BenchmarkFixture( string Id, string Definition, diff --git a/tests/CStructSharp.Generators.Tests/CStructSharp.Generators.Tests.csproj b/tests/CStructSharp.Generators.Tests/CStructSharp.Generators.Tests.csproj index 1511f9d4..c3f4f370 100644 --- a/tests/CStructSharp.Generators.Tests/CStructSharp.Generators.Tests.csproj +++ b/tests/CStructSharp.Generators.Tests/CStructSharp.Generators.Tests.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/tests/CStructSharp.Generators.Tests/ConstraintAnalyzerTests.cs b/tests/CStructSharp.Generators.Tests/ConstraintAnalyzerTests.cs index f0b3f403..91c6683d 100644 --- a/tests/CStructSharp.Generators.Tests/ConstraintAnalyzerTests.cs +++ b/tests/CStructSharp.Generators.Tests/ConstraintAnalyzerTests.cs @@ -1,7 +1,7 @@ -extern alias Generators; - namespace CStructSharp.Generators.Tests; +extern alias Generators; + using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; diff --git a/tests/CStructSharp.Generators.Tests/GeneratorFrameTests.cs b/tests/CStructSharp.Generators.Tests/GeneratorFrameTests.cs index c82df906..36d2c5a3 100644 --- a/tests/CStructSharp.Generators.Tests/GeneratorFrameTests.cs +++ b/tests/CStructSharp.Generators.Tests/GeneratorFrameTests.cs @@ -1,7 +1,7 @@ -extern alias Generators; - namespace CStructSharp.Generators.Tests; +extern alias Generators; + using System; using System.Collections.Generic; using System.Linq; diff --git a/tests/CStructSharp.Generators.Tests/GeneratorRunner.cs b/tests/CStructSharp.Generators.Tests/GeneratorRunner.cs index 721ec73b..e88dea66 100644 --- a/tests/CStructSharp.Generators.Tests/GeneratorRunner.cs +++ b/tests/CStructSharp.Generators.Tests/GeneratorRunner.cs @@ -1,7 +1,7 @@ -extern alias Generators; - namespace CStructSharp.Generators.Tests; +extern alias Generators; + using System; using System.Collections.Generic; using System.Collections.Immutable; diff --git a/tests/CStructSharp.Generators.Tests/LayoutUsageAnalyzerTests.cs b/tests/CStructSharp.Generators.Tests/LayoutUsageAnalyzerTests.cs index cc89d0b4..10aca20e 100644 --- a/tests/CStructSharp.Generators.Tests/LayoutUsageAnalyzerTests.cs +++ b/tests/CStructSharp.Generators.Tests/LayoutUsageAnalyzerTests.cs @@ -1,7 +1,7 @@ -extern alias Generators; - namespace CStructSharp.Generators.Tests; +extern alias Generators; + using System; using System.Collections.Generic; using System.Collections.Immutable; diff --git a/tests/CStructSharp.Generators.Tests/ManualFixture.cs b/tests/CStructSharp.Generators.Tests/ManualFixture.cs index 0c2788df..952a6b7e 100644 --- a/tests/CStructSharp.Generators.Tests/ManualFixture.cs +++ b/tests/CStructSharp.Generators.Tests/ManualFixture.cs @@ -3,6 +3,17 @@ namespace CStructSharp.Generators.Tests; using System.Collections.Generic; /// One valid fixture of the language contract and the options it was recorded with. +/// The fixture pair's identifier. +/// The layout text. +/// The struct the fixture parses. +/// The pointer width in bytes. +/// Whether the portable composite-alignment rules apply. +/// Whether neutral values are little-endian. +/// The input bytes as hexadecimal text, or when the fixture has none. +/// The layout variables passed to the read. +/// The bitfield allocation option, or for the default. +/// The width of C long in bits; 0 for the library default. +/// The storage type of an enum declared without one, or for the default. internal sealed record ManualFixture( string Id, string Definition, diff --git a/tests/CStructSharpTests/Api/CancellationTests.cs b/tests/CStructSharpTests/Api/CancellationTests.cs index 9dd72432..d179dea2 100644 --- a/tests/CStructSharpTests/Api/CancellationTests.cs +++ b/tests/CStructSharpTests/Api/CancellationTests.cs @@ -223,7 +223,8 @@ private static IEnumerable CancelAfterValue(CancellationTokenSource canc } /// A one-byte tag codec that cancels the shared token the first time it is called. - private sealed class CancellingTag(CancellationTokenSource source) : ICustomCodec + /// The source the codec cancels when it reads or writes. + private sealed class CancellingTag(CancellationTokenSource cancellation) : ICustomCodec { public string Name => "tag"; @@ -236,15 +237,15 @@ private sealed class CancellingTag(CancellationTokenSource source) : ICustomCode public int Writes { get; set; } /// Counts the read, cancels the token, then decodes one byte. - /// The available bytes. + /// The available bytes. /// Receives the decoded value. /// Receives the bytes the value used. /// Whether the value was decoded or needs more bytes. - public OperationStatus Read(ReadOnlySpan source1, out object? value, out int bytesConsumed) + public OperationStatus Read(ReadOnlySpan source, out object? value, out int bytesConsumed) { this.Reads++; - source.Cancel(); - value = (ulong)source1[0]; + cancellation.Cancel(); + value = (ulong)source[0]; bytesConsumed = 1; return OperationStatus.Done; } @@ -257,7 +258,7 @@ public OperationStatus Read(ReadOnlySpan source1, out object? value, out i public OperationStatus Write(Span destination, object value, out int bytesWritten) { this.Writes++; - source.Cancel(); + cancellation.Cancel(); destination[0] = (byte)Convert.ToUInt64(value, CultureInfo.InvariantCulture); bytesWritten = 1; return OperationStatus.Done; diff --git a/tests/CStructSharpTests/Arrays/CompositeArrayTests.cs b/tests/CStructSharpTests/Arrays/CompositeArrayTests.cs index 073e2a3a..c45bebbf 100644 --- a/tests/CStructSharpTests/Arrays/CompositeArrayTests.cs +++ b/tests/CStructSharpTests/Arrays/CompositeArrayTests.cs @@ -151,14 +151,14 @@ private sealed class LargeFixedCodec : ICustomCodec /// Consumes a complete fixed block or reports that the supplied input is too short. /// The borrowed input bytes. /// A zero marker on success, otherwise null. - /// The declared extent on success, otherwise zero. + /// The declared extent on success, otherwise zero. /// Done only when the whole fixed block is present. - public OperationStatus Read(ReadOnlySpan source, out object? value, out int bytesRead) + public OperationStatus Read(ReadOnlySpan source, out object? value, out int bytesConsumed) { this.ReadCalls++; bool complete = source.Length >= this.FixedSize!.Value; value = complete ? 0 : null; - bytesRead = complete ? this.FixedSize.Value : 0; + bytesConsumed = complete ? this.FixedSize.Value : 0; return complete ? OperationStatus.Done : OperationStatus.NeedMoreData; } diff --git a/tests/CStructSharpTests/Arrays/TerminatedRecordExtentOverflowTests.cs b/tests/CStructSharpTests/Arrays/TerminatedRecordExtentOverflowTests.cs index ebceafc4..b1f0b34c 100644 --- a/tests/CStructSharpTests/Arrays/TerminatedRecordExtentOverflowTests.cs +++ b/tests/CStructSharpTests/Arrays/TerminatedRecordExtentOverflowTests.cs @@ -55,7 +55,11 @@ public HighOriginSource(byte[] bytes) /// The requested position precedes the mapped buffer. public override long Position { - get => checked(Origin + base.Position); + get + { + return checked(Origin + base.Position); + } + set { ArgumentOutOfRangeException.ThrowIfLessThan(value, Origin); diff --git a/tests/CStructSharpTests/Async/AsyncStreamBufferTests.cs b/tests/CStructSharpTests/Async/AsyncStreamBufferTests.cs index a474a2e1..a3277b4c 100644 --- a/tests/CStructSharpTests/Async/AsyncStreamBufferTests.cs +++ b/tests/CStructSharpTests/Async/AsyncStreamBufferTests.cs @@ -159,6 +159,7 @@ public void Link_JoinsTheTwoTokens() } /// A forward-only stream over an array that can fail after a number of bytes. + /// The bytes the stream reads, from the first; not copied. internal sealed class NonSeekableStream(byte[] bytes) : Stream { private int position; diff --git a/tests/CStructSharpTests/Async/AsyncWriteBoundaryTests.cs b/tests/CStructSharpTests/Async/AsyncWriteBoundaryTests.cs index 18604311..6ed1ee27 100644 --- a/tests/CStructSharpTests/Async/AsyncWriteBoundaryTests.cs +++ b/tests/CStructSharpTests/Async/AsyncWriteBoundaryTests.cs @@ -332,7 +332,11 @@ public FailingRestorationStream(bool failFlush) public override long Position { - get => base.Position; + get + { + return base.Position; + } + set { if (this.refusePosition) diff --git a/tests/CStructSharpTests/CStructSharpTests.csproj b/tests/CStructSharpTests/CStructSharpTests.csproj index 0c2ed74f..512ce9bf 100644 --- a/tests/CStructSharpTests/CStructSharpTests.csproj +++ b/tests/CStructSharpTests/CStructSharpTests.csproj @@ -8,8 +8,8 @@ - - + + all runtime; build; native; contentfiles; analyzers diff --git a/tests/CStructSharpTests/Engine/Golden/EngineCorpusTests.txt b/tests/CStructSharpTests/Engine/Golden/EngineCorpusTests.txt index 18f722ff..9dd18460 100644 --- a/tests/CStructSharpTests/Engine/Golden/EngineCorpusTests.txt +++ b/tests/CStructSharpTests/Engine/Golden/EngineCorpusTests.txt @@ -1969,6 +1969,10 @@ @hash cf1e3a7f93cb2c3a64d0b01fdc39f26a746589ea5739a5b5819649dd25551a80 17 CStructReadLimitException 17 +@test InspectorSchema_ReadsAndWritesOnEverySourceAndPath("detected-caf") +@hash 90e636c867a701ec3d6bbb87f8a38f67caf8cdb0c3afce30eb5440096f935dde 39 + ok 39 + @test InspectorSchema_ReadsAndWritesOnEverySourceAndPath("detected-cfb") @hash 63063c3f3f48f3da99a0c514ee2110b45d0a6b55766aced531c5ede8f7119410 17 CStructReadException 17 @@ -2013,6 +2017,10 @@ @hash b877f24728282bd394206c228127715bb8fe0abda550660182fa6b6d11cab466 39 ok 39 +@test InspectorSchema_ReadsAndWritesOnEverySourceAndPath("detected-dff") +@hash 8f6694ccd4c6bf488fe70f7194332f3727dca0a53627b38200e71c6d2e3fdd00 39 + ok 39 + @test InspectorSchema_ReadsAndWritesOnEverySourceAndPath("detected-dmg") @hash 742e8198b5f731e5f5d600c90576acc5add4c6a9e7174248062710a50b156dbb 35 ok 35 diff --git a/tests/CStructSharpTests/Engine/Golden/ExpressionDifferentialTests.txt b/tests/CStructSharpTests/Engine/Golden/ExpressionDifferentialTests.txt index e8c34f48..7471f16a 100644 --- a/tests/CStructSharpTests/Engine/Golden/ExpressionDifferentialTests.txt +++ b/tests/CStructSharpTests/Engine/Golden/ExpressionDifferentialTests.txt @@ -188,6 +188,8 @@ ok 12 @hash 5c5fa412739787556f82d8185444110c97dc5eca05ed73fc3e3f064a04fa962b 833 detected-cab ok 496, CStructLayoutException 14, CStructReadException 323 +@hash 7edcf9da16b06cfd779507a66556bf8704eaf0ad3330be25c72e3c4a74332ab2 9 detected-caf + ok 9 @hash 66269ebda564e0dbc49503079dc706ec26504be7022c2a72c82388dce71233cf 9 detected-cfb ok 9 @hash e0cd8aae41a4c01c885679a79ff18989595ba810d6e8060d347b38526cc8502d 3 detected-chm @@ -208,6 +210,8 @@ ok 8132, CStructLayoutException 234, CStructReadException 5314 @hash 4ed76cf62f1d4f787e3db91675953e42db05a43b13dcb7ddbbe7c09209da0d48 24 detected-deb ok 24 +@hash 7edcf9da16b06cfd779507a66556bf8704eaf0ad3330be25c72e3c4a74332ab2 9 detected-dff + ok 9 @hash de1f838a2886c4f19c74bde7ced3ccbf4bed9e41f1794644e1628966bf961f94 568 detected-dng ok 356, CStructLayoutException 10, CStructReadException 202 @hash 03ddd3acfa3be2e1c7161482f6362d8e6be148f3a511245adb832f8eba7f01eb 2751 detected-docm diff --git a/tests/CStructSharpTests/Engine/ReadProgramDump.cs b/tests/CStructSharpTests/Engine/ReadProgramDump.cs index 2b8925fa..378338ad 100644 --- a/tests/CStructSharpTests/Engine/ReadProgramDump.cs +++ b/tests/CStructSharpTests/Engine/ReadProgramDump.cs @@ -106,10 +106,10 @@ private static void RenderOne(StringBuilder text, ReadProgram program, SlotTable /// The step. /// The name. private static string Member(ReadProgram program, ReadStep step) - => step.Field < 0 ? "-" - : program.Fields[step.Field].Name is { Length: > 0 } name ? name - : program.Fields[step.Field].IsPromotedComposite ? "(anonymous)" - : "(unnamed)"; + => step.Field < 0 ? "-" : + program.Fields[step.Field].Name is { Length: > 0 } name ? name : + program.Fields[step.Field].IsPromotedComposite ? "(anonymous)" : + "(unnamed)"; /// Describes a step's operands by their meaning. /// The program. diff --git a/tests/CStructSharpTests/Generated/ReadCursorTextBoundaryTests.cs b/tests/CStructSharpTests/Generated/ReadCursorTextBoundaryTests.cs index 30962bc7..a3217e57 100644 --- a/tests/CStructSharpTests/Generated/ReadCursorTextBoundaryTests.cs +++ b/tests/CStructSharpTests/Generated/ReadCursorTextBoundaryTests.cs @@ -180,9 +180,9 @@ public void TerminatedText_ReadsAFirstChunkStringLikeTheChunkedDecoder(Terminate } // An invalid unit (a lone UTF-16 surrogate, bytes no UTF-8 or ASCII character has) before the terminator. - byte[] invalidPayload = kind is TerminatedTextEncoding.Utf16LittleEndian ? [0x41, 0, 0x00, 0xD8, 0, 0,] - : kind is TerminatedTextEncoding.Utf16BigEndian ? [0, 0x41, 0xD8, 0x00, 0, 0,] - : [0x41, 0xFF, 0,]; + byte[] invalidPayload = kind is TerminatedTextEncoding.Utf16LittleEndian ? [0x41, 0, 0x00, 0xD8, 0, 0,] : + kind is TerminatedTextEncoding.Utf16BigEndian ? [0, 0x41, 0xD8, 0x00, 0, 0,] : + [0x41, 0xFF, 0,]; int unitSize = kind is TerminatedTextEncoding.Utf16LittleEndian or TerminatedTextEncoding.Utf16BigEndian ? 2 : 1; byte[] invalidSource = [.. invalidPayload, 77, 78,]; DecoderFallbackException expectedCause = Assert.Throws( diff --git a/tests/CStructSharpTests/Io/AlignmentOriginTests.cs b/tests/CStructSharpTests/Io/AlignmentOriginTests.cs index 9f47b1aa..3b8cfccd 100644 --- a/tests/CStructSharpTests/Io/AlignmentOriginTests.cs +++ b/tests/CStructSharpTests/Io/AlignmentOriginTests.cs @@ -26,13 +26,13 @@ public class AlignmentOriginTests "nested struct and bitfields", "struct inner { uint16 x; uint8 y; }; struct rec { uint8 a; inner i; uint32 lo : 4; uint32 hi : 4; uint8 t; };", "rec.t", - new Dictionary { ["a"] = (byte)1, ["i"] = new Dictionary { ["x"] = (ushort)2, ["y"] = (byte)3, }, ["lo"] = 4u, ["hi"] = 5u, ["t"] = (byte)6, } + new Dictionary { ["a"] = (byte)1, ["i"] = new Dictionary { ["x"] = (ushort)2, ["y"] = (byte)3, }, ["lo"] = 4u, ["hi"] = 5u, ["t"] = (byte)6, }, ], [ "runtime-sized array", "struct rec { uint8 n; uint16 v[n]; uint8 t; uint32 w; };", "rec.w", - new Dictionary { ["n"] = (byte)2, ["v"] = new ushort[] { 7, 8, }, ["t"] = (byte)9, ["w"] = 0xAABBCCDDu, } + new Dictionary { ["n"] = (byte)2, ["v"] = new ushort[] { 7, 8, }, ["t"] = (byte)9, ["w"] = 0xAABBCCDDu, }, ], ]; diff --git a/tests/CStructSharpTests/Io/ExceptionTranslatingStreamTests.cs b/tests/CStructSharpTests/Io/ExceptionTranslatingStreamTests.cs index 2510f847..627b68fa 100644 --- a/tests/CStructSharpTests/Io/ExceptionTranslatingStreamTests.cs +++ b/tests/CStructSharpTests/Io/ExceptionTranslatingStreamTests.cs @@ -213,7 +213,11 @@ private sealed class SelectiveFaultStream(Exception cause) : Stream public override long Position { - get => this.Point == FaultPoint.PositionGet ? throw cause : this.position; + get + { + return this.Point == FaultPoint.PositionGet ? throw cause : this.position; + } + set { if (this.Point == FaultPoint.PositionSet) diff --git a/tests/CStructSharpTests/Paths/AddressTraversalBoundaryTests.cs b/tests/CStructSharpTests/Paths/AddressTraversalBoundaryTests.cs index 7b582af6..c07c1c86 100644 --- a/tests/CStructSharpTests/Paths/AddressTraversalBoundaryTests.cs +++ b/tests/CStructSharpTests/Paths/AddressTraversalBoundaryTests.cs @@ -111,7 +111,11 @@ public RejectPositionStream(byte[] bytes) /// Position assignments fail once rejection is enabled. public override long Position { - get => base.Position; + get + { + return base.Position; + } + set { if (this.RejectPositionWrites) diff --git a/tests/CStructSharpTests/Quality/FeatureOperationMatrixTests.cs b/tests/CStructSharpTests/Quality/FeatureOperationMatrixTests.cs index 3b45a2a8..80fa73b9 100644 --- a/tests/CStructSharpTests/Quality/FeatureOperationMatrixTests.cs +++ b/tests/CStructSharpTests/Quality/FeatureOperationMatrixTests.cs @@ -559,8 +559,7 @@ private static IEnumerable RepresentativeCases() ExpectedValue: -1.5); foreach (string type in new[] { "uuid", "guid" }) { - byte[] id = Convert.FromHexString(type == "uuid" - ? "00112233445566778899AABBCCDDEEFF" : "33221100554477668899AABBCCDDEEFF"); + byte[] id = Convert.FromHexString(type == "uuid" ? "00112233445566778899AABBCCDDEEFF" : "33221100554477668899AABBCCDDEEFF"); byte[] original = [.. new byte[16], .. id, 99]; yield return new MatrixCase( type + "-array", diff --git a/tests/CStructSharpTests/Reading/PartialMemoryReadCursorTests.cs b/tests/CStructSharpTests/Reading/PartialMemoryReadCursorTests.cs index 0f367e19..ba2c365c 100644 --- a/tests/CStructSharpTests/Reading/PartialMemoryReadCursorTests.cs +++ b/tests/CStructSharpTests/Reading/PartialMemoryReadCursorTests.cs @@ -114,7 +114,7 @@ public unsafe void KnownLength_SurvivesThePackedSplit(long whole) public void Core_KeepsItsSize() { // Two pointer-sized members (the region and the array), four longs, and one 8-byte group of small members. - Assert.AreEqual((2 * IntPtr.Size) + (4 * sizeof(long)) + 8, Unsafe.SizeOf()); + Assert.AreEqual((2 * nint.Size) + (4 * sizeof(long)) + 8, Unsafe.SizeOf()); } /// Reads one byte at from a fresh partly buffered cursor. diff --git a/tests/CStructSharpTests/TestStreams/PositionCountingStream.cs b/tests/CStructSharpTests/TestStreams/PositionCountingStream.cs index 37899c4a..e076a7a5 100644 --- a/tests/CStructSharpTests/TestStreams/PositionCountingStream.cs +++ b/tests/CStructSharpTests/TestStreams/PositionCountingStream.cs @@ -15,6 +15,9 @@ public override long Position return base.Position; } - set => base.Position = value; + set + { + base.Position = value; + } } } diff --git a/tests/CStructSharpTests/TestStreams/RecordingStream.cs b/tests/CStructSharpTests/TestStreams/RecordingStream.cs index 2a12564a..fd450c76 100644 --- a/tests/CStructSharpTests/TestStreams/RecordingStream.cs +++ b/tests/CStructSharpTests/TestStreams/RecordingStream.cs @@ -64,7 +64,11 @@ public RecordingStream(byte[] bytes) /// public override long Position { - get => this.PositionReadFailure is null ? this.inner.Position : throw this.PositionReadFailure; + get + { + return this.PositionReadFailure is null ? this.inner.Position : throw this.PositionReadFailure; + } + set { if (this.PositionFailure is not null) diff --git a/tests/CStructSharpTests/Text/PrimitiveTextBoundaryTests.cs b/tests/CStructSharpTests/Text/PrimitiveTextBoundaryTests.cs index 7fc48230..a6319d5d 100644 --- a/tests/CStructSharpTests/Text/PrimitiveTextBoundaryTests.cs +++ b/tests/CStructSharpTests/Text/PrimitiveTextBoundaryTests.cs @@ -120,7 +120,11 @@ public ObservedPositionStream() /// Gets or changes the cursor while counting explicit repositioning requests. public override long Position { - get => base.Position; + get + { + return base.Position; + } + set { this.PositionWrites++; diff --git a/tests/CStructSharpTests/Writing/UpdateAtomicityTests.cs b/tests/CStructSharpTests/Writing/UpdateAtomicityTests.cs index 6bdcd22d..ae45ce37 100644 --- a/tests/CStructSharpTests/Writing/UpdateAtomicityTests.cs +++ b/tests/CStructSharpTests/Writing/UpdateAtomicityTests.cs @@ -593,7 +593,11 @@ private sealed class CommitFaultStream( public override long Position { - get => this.inner.Position; + get + { + return this.inner.Position; + } + set { if (this.commitFailed) diff --git a/tools/build/PublicDocumentation/Program.cs b/tools/build/PublicDocumentation/Program.cs index 7d8adf42..359010ca 100644 --- a/tools/build/PublicDocumentation/Program.cs +++ b/tools/build/PublicDocumentation/Program.cs @@ -202,8 +202,9 @@ string NameOf(TypeDefinitionHandle handle) TypeDefinition definition = reader.GetTypeDefinition(handle); string simple = reader.GetString(definition.Name); TypeDefinitionHandle declaring = definition.GetDeclaringType(); - string name = !declaring.IsNil ? NameOf(declaring) + "." + simple - : definition.Namespace.IsNil ? simple : reader.GetString(definition.Namespace) + "." + simple; + string name = !declaring.IsNil ? NameOf(declaring) + "." + simple : + definition.Namespace.IsNil ? simple : + reader.GetString(definition.Namespace) + "." + simple; names[handle] = name; return name; } diff --git a/tools/quality/CSharpComments.cs b/tools/quality/CSharpComments.cs index d3e7d1ab..8f9d2359 100644 --- a/tools/quality/CSharpComments.cs +++ b/tools/quality/CSharpComments.cs @@ -43,7 +43,7 @@ public static int Main() int line = node.GetLocation().GetLineSpan().StartLinePosition.Line + 1; issues.Add(node is LocalFunctionStatementSyntax ? $"{file}:{line}: {node.Kind()} needs a comment above it stating its purpose." - : $"{file}:{line}: {node.Kind()} needs a non-empty XML summary or accurate inheritdoc."); + : $"{file}:{line}: {node.Kind()} needs a non-empty XML summary (content on a secondary partial type) or accurate inheritdoc."); } } } @@ -55,7 +55,9 @@ public static int Main() /// /// Recognizes a non-empty XML summary or explicit inherited documentation immediately on a declaration. A local /// function cannot carry XML documentation (the compiler reports CS1587), so a non-empty // comment - /// directly above it documents it instead. + /// directly above it documents it instead. A partial type keeps its one summary on its main declaration + /// (StyleCop SA1653), so a non-empty content element, describing that file's part, documents any other + /// declaration of it. /// /// The named type, method, constructor, operator or local function to inspect. /// Whether documentation is present; contract correctness still needs human review. @@ -66,6 +68,7 @@ private static bool HasDocumentation(SyntaxNode node) return node.GetLeadingTrivia().Any(trivia => trivia.IsKind(SyntaxKind.SingleLineCommentTrivia) && trivia.ToString().TrimStart('/').Trim().Length > 0); } + bool isPartialType = node is TypeDeclarationSyntax type && type.Modifiers.Any(SyntaxKind.PartialKeyword); foreach (SyntaxTrivia trivia in node.GetLeadingTrivia()) { if (trivia.GetStructure() is not DocumentationCommentTriviaSyntax documentation) @@ -81,7 +84,8 @@ private static bool HasDocumentation(SyntaxNode node) } // Inspect token values, not exterior "///" trivia that can make an empty multiline summary look non-empty. - if (content is XmlElementSyntax element && element.StartTag.Name.LocalName.Text == "summary" && + if (content is XmlElementSyntax element && + (element.StartTag.Name.LocalName.Text == "summary" || (isPartialType && element.StartTag.Name.LocalName.Text == "content")) && element.Content.SelectMany(part => part.DescendantTokens()).Any(token => !string.IsNullOrWhiteSpace(token.ValueText))) { return true; diff --git a/tools/quality/changed-documentation.test.mjs b/tools/quality/changed-documentation.test.mjs index 164d1b75..1127e43c 100644 --- a/tools/quality/changed-documentation.test.mjs +++ b/tools/quality/changed-documentation.test.mjs @@ -12,7 +12,8 @@ test("changed ranges retain deletion boundaries and exact added spans", () => { }); // Run the real Roslyn checker, including a constructor, local functions and an undocumented untouched method. A local -// function takes a plain comment, because C# does not accept XML documentation there. +// function takes a plain comment, because C# does not accept XML documentation there. A element documents +// only a partial type's secondary declaration. test("C# checker detects missing XML comments only in changed declaration spans", () => { const source = "/// A sample.\nclass Sample {\nvoid Legacy() {}\n/// Constructs.\npublic Sample() {}\nvoid Missing() { void Local() {} }\n/// Has a documented helper.\nvoid Outer() {\n// Adds one.\nint Next(int x) => x + 1;\n}\n}"; const entries = [ @@ -20,13 +21,16 @@ test("C# checker detects missing XML comments only in changed declaration spans" { file: "local.cs", source, ranges: [{ start: 8, end: 11 }] }, { file: "failing.cs", source, ranges: [{ start: 6, end: 6 }] }, { file: "empty.cs", source: "/// \n/// \nclass Empty {}", ranges: [{ start: 1, end: 3 }] }, + { file: "part.cs", source: "/// The reading part.\npartial class Part {}", ranges: [{ start: 1, end: 2 }] }, + { file: "whole.cs", source: "/// Not a partial type.\nclass Whole {}", ranges: [{ start: 1, end: 2 }] }, ]; const output = execFileSync("dotnet", ["run", "--file", "tools/quality/CSharpComments.cs"], { cwd: repositoryRoot, input: JSON.stringify({ entries }), encoding: "utf8", }); const marker = "DOC-COMMENT-RESULT:"; const issues = JSON.parse(output.split(/\r?\n/).find((line) => line.startsWith(marker)).slice(marker.length)); - assert.equal(issues.length, 3); + assert.equal(issues.length, 4); assert.equal(issues.filter((issue) => issue.startsWith("failing.cs:6:")).length, 2); assert.ok(issues.some((issue) => issue.startsWith("empty.cs:3:"))); + assert.ok(issues.some((issue) => issue.startsWith("whole.cs:2:"))); }); diff --git a/tools/quality/mutation-declarations.test.mjs b/tools/quality/mutation-declarations.test.mjs index 0cf03503..98bcc41f 100644 --- a/tools/quality/mutation-declarations.test.mjs +++ b/tools/quality/mutation-declarations.test.mjs @@ -133,7 +133,8 @@ test("source changes, tool upgrades, duplicates and out-of-scope policy entries policy.strykerVersion = "different"; fs.writeFileSync(policyPath, JSON.stringify(policy)); assert.throws(() => loadNonMutableDeclarations(f.root, f.config.mutate), /Stryker version change/); - policy.strykerVersion = "5.0.0"; + // Restore agreement with the copied tool manifest so the next assertion exercises only the duplicate check. + policy.strykerVersion = JSON.parse(fs.readFileSync(path.join(f.root, ".config/dotnet-tools.json"), "utf8")).tools["dotnet-stryker"].version; policy.declarations.push(policy.declarations[0]); fs.writeFileSync(policyPath, JSON.stringify(policy)); assert.throws(() => loadNonMutableDeclarations(f.root, f.config.mutate), /Duplicate non-mutable/); From a8ff287d2e67ffc98ffd1ffd7e4ee2b722331665 Mon Sep 17 00:00:00 2001 From: Vincent Vollers <59395529+vvollers@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:02:11 +0100 Subject: [PATCH 2/3] Re-measure the serializer comparison with the updated packages The README comparison labels come from the comparison project's package versions, so MemoryPack 1.22.0 and protobuf-net 3.4.40 needed fresh measurements rather than relabeled October results. Same machine, default BenchmarkDotNet job, now on .NET 10.0.15. All rows, including the plain .NET baselines, moved by a similar margin; the README prose (MemoryMarshal fastest, generated code in BinaryPrimitives' range) still holds. --- README.md | 46 +++++------ .../CStructSharp.Comparison/results.json | 78 +++++++++---------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index 32b518f2..620e0156 100644 --- a/README.md +++ b/README.md @@ -361,44 +361,44 @@ reproduction commands, and the separate comparison against 0.11.1, including unc -Measured on AMD Ryzen 9 9950X, Windows 11, .NET 10.0.12, with BenchmarkDotNet 0.15.8 (`default` job) on 2026-10-04. Times are medians for one record; each table lists the fastest deserializer first. +Measured on AMD Ryzen 9 9950X, Windows 11, .NET 10.0.15, with BenchmarkDotNet 0.15.8 (`default` job) on 2026-11-16. Times are medians for one record; each table lists the fastest deserializer first. **Same bytes: the 79-byte C layout** | Approach | Deserialize | Allocated | Serialize | Allocated | | ----------------------------------------------------------------------------- | ----------: | --------: | --------: | --------: | -| CStructSharp generated view | 8.2 ns | 0 B | — | — | -| .NET `MemoryMarshal.Read` / `Write` | 8.7 ns | 0 B | 0.2 ns | 0 B | -| CStructSharp generated `Parse` / `Serialize` | 15.5 ns | 184 B | 8.4 ns | 0 B | -| Hand-written `BinaryPrimitives` | 16.8 ns | 248 B | 5.2 ns | 0 B | -| CStructSharp runtime view (`CreateView` + accessors) | 28.9 ns | 0 B | — | — | -| CStructSharp runtime `ReadValue` / `Serialize` (layout-bound mapped class) | 30.3 ns | 248 B | 19.8 ns | 0 B | -| .NET `BinaryReader` / `BinaryWriter` | 35.8 ns | 248 B | 40.0 ns | 0 B | -| .NET `Marshal.PtrToStructure` / `StructureToPtr` | 50.1 ns | 128 B | 30.2 ns | 72 B | -| Kaitai Struct 0.11.0 | 117 ns | 1,040 B | — | — | -| CStructSharp runtime `Parse` + accessors | 127 ns | 672 B | — | — | -| CStructSharp runtime `Parse` / `Serialize` (`StructValue`, path strings) | 329 ns | 672 B | 52.9 ns | 0 B | +| .NET `MemoryMarshal.Read` / `Write` | 7.5 ns | 0 B | 0.2 ns | 0 B | +| CStructSharp generated view | 8.5 ns | 0 B | — | — | +| Hand-written `BinaryPrimitives` | 17.8 ns | 248 B | 5.4 ns | 0 B | +| CStructSharp generated `Parse` / `Serialize` | 18.6 ns | 184 B | 8.8 ns | 0 B | +| CStructSharp runtime view (`CreateView` + accessors) | 29.6 ns | 0 B | — | — | +| CStructSharp runtime `ReadValue` / `Serialize` (layout-bound mapped class) | 32.9 ns | 248 B | 20.9 ns | 0 B | +| .NET `BinaryReader` / `BinaryWriter` | 39.3 ns | 248 B | 40.2 ns | 0 B | +| .NET `Marshal.PtrToStructure` / `StructureToPtr` | 53.3 ns | 128 B | 30.4 ns | 72 B | +| CStructSharp runtime `Parse` + accessors | 135 ns | 672 B | — | — | +| Kaitai Struct 0.11.0 | 152 ns | 1,040 B | — | — | +| CStructSharp runtime `Parse` / `Serialize` (`StructValue`, path strings) | 363 ns | 672 B | 55.4 ns | 0 B | **Same record, each library's own format** | Library | Format | Size | Deserialize | Allocated | Serialize | Allocated | | -------------------------------------------- | ---------------- | ----: | ----------: | --------: | --------: | --------: | -| CStructSharp generated `Parse` / `Serialize` | C layout | 79 B | 15.5 ns | 184 B | 8.4 ns | 0 B | -| FlatSharp 7.9.0 (lazy) | FlatBuffers | 116 B | 27.8 ns | 240 B | 46.1 ns | 0 B | -| MemoryPack 1.21.4 | MemoryPack | 86 B | 31.9 ns | 248 B | 17.3 ns | 0 B | -| MessagePack-CSharp 3.1.12 | MessagePack | 74 B | 110 ns | 248 B | 55.6 ns | 0 B | -| protobuf-net 3.4.30 | Protocol Buffers | 91 B | 227 ns | 184 B | 221 ns | 0 B | -| System.Text.Json (source-generated) | JSON | 207 B | 641 ns | 848 B | 355 ns | 0 B | +| CStructSharp generated `Parse` / `Serialize` | C layout | 79 B | 18.6 ns | 184 B | 8.8 ns | 0 B | +| FlatSharp 7.9.0 (lazy) | FlatBuffers | 116 B | 31.4 ns | 240 B | 47.0 ns | 0 B | +| MemoryPack 1.22.0 | MemoryPack | 86 B | 34.5 ns | 248 B | 18.5 ns | 0 B | +| MessagePack-CSharp 3.1.12 | MessagePack | 74 B | 111 ns | 248 B | 55.9 ns | 0 B | +| protobuf-net 3.4.40 | Protocol Buffers | 91 B | 246 ns | 184 B | 214 ns | 0 B | +| System.Text.Json (source-generated) | JSON | 207 B | 707 ns | 848 B | 370 ns | 0 B | **A record whose shape depends on its data (the `packet` layout above)** | Approach | Deserialize | Allocated | Serialize | Allocated | | ---------------------------------------------------------------------- | ----------: | --------: | --------: | --------: | -| Hand-written `BinaryPrimitives` | 24.6 ns | 208 B | 8.7 ns | 0 B | -| CStructSharp generated `Parse` / `Serialize` | 48.7 ns | 200 B | 28.6 ns | 0 B | -| CStructSharp runtime `Parse` + accessors / `Serialize` (`StructValue`) | 367 ns | 432 B | 237 ns | 0 B | -| CStructSharp runtime `Parse` from a `MemoryStream` + accessors | 530 ns | 592 B | — | — | -| CStructSharp runtime `ReadValue` / `Serialize` (mapped class) | 532 ns | 552 B | 396 ns | 272 B | +| Hand-written `BinaryPrimitives` | 23.4 ns | 208 B | 8.3 ns | 0 B | +| CStructSharp generated `Parse` / `Serialize` | 50.2 ns | 200 B | 27.2 ns | 0 B | +| CStructSharp runtime `Parse` + accessors / `Serialize` (`StructValue`) | 368 ns | 432 B | 245 ns | 0 B | +| CStructSharp runtime `ReadValue` / `Serialize` (mapped class) | 531 ns | 552 B | 359 ns | 272 B | +| CStructSharp runtime `Parse` from a `MemoryStream` + accessors | 538 ns | 592 B | — | — | diff --git a/benchmarks/CStructSharp.Comparison/results.json b/benchmarks/CStructSharp.Comparison/results.json index 428daefc..3455b50c 100644 --- a/benchmarks/CStructSharp.Comparison/results.json +++ b/benchmarks/CStructSharp.Comparison/results.json @@ -2,10 +2,10 @@ "environment": { "processor": "AMD Ryzen 9 9950X", "os": "Windows 11", - "runtime": ".NET 10.0.12", + "runtime": ".NET 10.0.15", "benchmarkDotNet": "0.15.8", "job": "default", - "date": "2026-10-04" + "date": "2026-11-16" }, "sizes": { "FlatBuffers": 116, @@ -17,151 +17,151 @@ }, "cases": { "DeserializeBenchmarks.CStructSharp_GeneratedParse": { - "medianNanoseconds": 15.478, + "medianNanoseconds": 18.598, "allocatedBytes": 184 }, "DeserializeBenchmarks.CStructSharp_GeneratedView": { - "medianNanoseconds": 8.186, + "medianNanoseconds": 8.524, "allocatedBytes": 0 }, "DeserializeBenchmarks.CStructSharp_RuntimeParse": { - "medianNanoseconds": 328.769, + "medianNanoseconds": 363.268, "allocatedBytes": 672 }, "DeserializeBenchmarks.CStructSharp_RuntimeParseAccessors": { - "medianNanoseconds": 127.138, + "medianNanoseconds": 134.838, "allocatedBytes": 672 }, "DeserializeBenchmarks.CStructSharp_RuntimeReadValue": { - "medianNanoseconds": 30.292, + "medianNanoseconds": 32.946, "allocatedBytes": 248 }, "DeserializeBenchmarks.CStructSharp_RuntimeView": { - "medianNanoseconds": 28.886, + "medianNanoseconds": 29.604, "allocatedBytes": 0 }, "DeserializeBenchmarks.HandWritten_BinaryPrimitives": { - "medianNanoseconds": 16.751, + "medianNanoseconds": 17.78, "allocatedBytes": 248 }, "DeserializeBenchmarks.Kaitai_Struct": { - "medianNanoseconds": 117.428, + "medianNanoseconds": 152.095, "allocatedBytes": 1040 }, "DeserializeBenchmarks.Own_FlatSharp": { - "medianNanoseconds": 27.783, + "medianNanoseconds": 31.424, "allocatedBytes": 240 }, "DeserializeBenchmarks.Own_MemoryPack": { - "medianNanoseconds": 31.897, + "medianNanoseconds": 34.521, "allocatedBytes": 248 }, "DeserializeBenchmarks.Own_MessagePack": { - "medianNanoseconds": 110.267, + "medianNanoseconds": 110.852, "allocatedBytes": 248 }, "DeserializeBenchmarks.Own_ProtobufNet": { - "medianNanoseconds": 226.966, + "medianNanoseconds": 245.871, "allocatedBytes": 184 }, "DeserializeBenchmarks.Own_SystemTextJson": { - "medianNanoseconds": 641.063, + "medianNanoseconds": 707.292, "allocatedBytes": 848 }, "DeserializeBenchmarks.Stock_BinaryReader": { - "medianNanoseconds": 35.811, + "medianNanoseconds": 39.325, "allocatedBytes": 248 }, "DeserializeBenchmarks.Stock_MarshalPtrToStructure": { - "medianNanoseconds": 50.095, + "medianNanoseconds": 53.275, "allocatedBytes": 128 }, "DeserializeBenchmarks.Stock_MemoryMarshal": { - "medianNanoseconds": 8.674, + "medianNanoseconds": 7.539, "allocatedBytes": 0 }, "SerializeBenchmarks.CStructSharp_GeneratedSerialize": { - "medianNanoseconds": 8.396, + "medianNanoseconds": 8.755, "allocatedBytes": 0 }, "SerializeBenchmarks.CStructSharp_RuntimeSerializeMapped": { - "medianNanoseconds": 19.824, + "medianNanoseconds": 20.901, "allocatedBytes": 0 }, "SerializeBenchmarks.CStructSharp_RuntimeSerializeStructValue": { - "medianNanoseconds": 52.924, + "medianNanoseconds": 55.414, "allocatedBytes": 0 }, "SerializeBenchmarks.HandWritten_BinaryPrimitives": { - "medianNanoseconds": 5.224, + "medianNanoseconds": 5.358, "allocatedBytes": 0 }, "SerializeBenchmarks.Own_FlatSharp": { - "medianNanoseconds": 46.073, + "medianNanoseconds": 47.031, "allocatedBytes": 0 }, "SerializeBenchmarks.Own_MemoryPack": { - "medianNanoseconds": 17.26, + "medianNanoseconds": 18.52, "allocatedBytes": 0 }, "SerializeBenchmarks.Own_MessagePack": { - "medianNanoseconds": 55.574, + "medianNanoseconds": 55.914, "allocatedBytes": 0 }, "SerializeBenchmarks.Own_ProtobufNet": { - "medianNanoseconds": 220.632, + "medianNanoseconds": 214.03, "allocatedBytes": 0 }, "SerializeBenchmarks.Own_SystemTextJson": { - "medianNanoseconds": 355.075, + "medianNanoseconds": 370.416, "allocatedBytes": 0 }, "SerializeBenchmarks.Stock_BinaryWriter": { - "medianNanoseconds": 39.966, + "medianNanoseconds": 40.191, "allocatedBytes": 0 }, "SerializeBenchmarks.Stock_MarshalStructureToPtr": { - "medianNanoseconds": 30.232, + "medianNanoseconds": 30.361, "allocatedBytes": 72 }, "SerializeBenchmarks.Stock_MemoryMarshal": { - "medianNanoseconds": 0.232, + "medianNanoseconds": 0.229, "allocatedBytes": 0 }, "VariableBenchmarks.Generated_Parse": { - "medianNanoseconds": 48.739, + "medianNanoseconds": 50.235, "allocatedBytes": 200 }, "VariableBenchmarks.Generated_Serialize": { - "medianNanoseconds": 28.647, + "medianNanoseconds": 27.249, "allocatedBytes": 0 }, "VariableBenchmarks.HandWritten_Read": { - "medianNanoseconds": 24.552, + "medianNanoseconds": 23.418, "allocatedBytes": 208 }, "VariableBenchmarks.HandWritten_Write": { - "medianNanoseconds": 8.669, + "medianNanoseconds": 8.283, "allocatedBytes": 0 }, "VariableBenchmarks.Runtime_Parse": { - "medianNanoseconds": 367.065, + "medianNanoseconds": 367.78, "allocatedBytes": 432 }, "VariableBenchmarks.Runtime_ParseStream": { - "medianNanoseconds": 530.167, + "medianNanoseconds": 537.689, "allocatedBytes": 592 }, "VariableBenchmarks.Runtime_ReadValueMapped": { - "medianNanoseconds": 531.778, + "medianNanoseconds": 531.041, "allocatedBytes": 552 }, "VariableBenchmarks.Runtime_SerializeMapped": { - "medianNanoseconds": 395.682, + "medianNanoseconds": 358.675, "allocatedBytes": 272 }, "VariableBenchmarks.Runtime_SerializeStructValue": { - "medianNanoseconds": 237.448, + "medianNanoseconds": 245.119, "allocatedBytes": 0 } } From 380a57db62240bf54977be3d2698072aee49b7f8 Mon Sep 17 00:00:00 2001 From: Vincent Vollers <59395529+vvollers@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:07:17 +0100 Subject: [PATCH 3/3] Sync documentation cost facts with the re-measured comparison --- docs/guides/generated/mapped-classes.md | 2 +- docs/guides/performance.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/generated/mapped-classes.md b/docs/guides/generated/mapped-classes.md index 50289532..f524126b 100644 --- a/docs/guides/generated/mapped-classes.md +++ b/docs/guides/generated/mapped-classes.md @@ -45,7 +45,7 @@ type and byte order. `layout.ReadValue
(bytes, "header")` and `layout.Serialize(...)` of a whole struct in memory use these members instead of building a `StructValue` and mapping it property by property. The runtime compares the fingerprint with that of the layout the call uses. A layout compiled with other options (another byte order or -alignment, say) has another fingerprint and takes the property-by-property route. In the repository's serializer comparison (a 79-byte record), `ReadValue` into a layout-bound mapped class took 30.3 ns and `Serialize` of one took 19.8 ns; for comparison, `Parse` into a `StructValue` with every member read by path took 329 ns, and `Serialize` of a `StructValue` took 52.9 ns. +alignment, say) has another fingerprint and takes the property-by-property route. In the repository's serializer comparison (a 79-byte record), `ReadValue` into a layout-bound mapped class took 32.9 ns and `Serialize` of one took 20.9 ns; for comparison, `Parse` into a `StructValue` with every member read by path took 363 ns, and `Serialize` of a `StructValue` took 55.4 ns. The direct members give exactly the results of the property-by-property route, so they are generated only where that is certain: diff --git a/docs/guides/performance.md b/docs/guides/performance.md index 20035342..53f881e0 100644 --- a/docs/guides/performance.md +++ b/docs/guides/performance.md @@ -19,7 +19,7 @@ The highest-value choices are usually: read plan when the layout is fully fixed) and hands it to the class's own `ReadFrom`; the mapping itself is the code the generator or you wrote, with no reflection to pay for. 7. Resolve paths you read repeatedly once, with `GetAccessor`, and read members without parsing through - `CreateView` ([read the same members many times](reading-values.md#read-the-same-members-many-times)). In the repository's serializer comparison (a 79-byte record, every member read), `Parse` followed by path-string reads took 329 ns, `Parse` followed by accessor reads took 127 ns, and `CreateView` with accessors took 28.9 ns without allocating. + `CreateView` ([read the same members many times](reading-values.md#read-the-same-members-many-times)). In the repository's serializer comparison (a 79-byte record, every member read), `Parse` followed by path-string reads took 363 ns, `Parse` followed by accessor reads took 135 ns, and `CreateView` with accessors took 29.6 ns without allocating. 8. Generate the layout when it is part of the program: a `[CStructLayout]` class parses straight into typed properties, and its view reads members without allocating (the "Generated" table below and [runtime or generated?](generated/choosing-runtime-or-generated.md)).