Repository health: tokenize refactor, CI hardening, and audit fixes - #1
Draft
undivisible wants to merge 4 commits into
Draft
Repository health: tokenize refactor, CI hardening, and audit fixes#1undivisible wants to merge 4 commits into
undivisible wants to merge 4 commits into
Conversation
Move diff/word/char tokenization into a pure module so TokenizedText can derive tokens without writing reactive state inside $effect, and add unit tests covering streaming append/reset and unicode character splits. Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
Prevent a stray timeout from updating state after the demo page is torn down by clearing the pending timer and guarding the callback. Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
Introduce root check/lint/test/format scripts, Prettier config, package sideEffects and prepublishOnly, example typecheck, and dependency overrides that clear the nanoid/cookie audit findings. Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
Cancel overlapping runs, enforce check/lint/test/build/audit, and enable weekly Bun and GitHub Actions dependency updates. Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Focused repository-health pass for
@tschk/flowtoken-sveltecovering code hygiene, DevOps reliability, dependency security, and a few high-confidence performance/correctness fixes. No speculative animation or API behavior changes.Code hygiene & performance
tokenizemodule with unit testsTokenizedTextto derive tokens without writing reactive state inside$effectArray.fromfor Unicode-safe splits without empty regex fragmentsSeptype between components and exported tokenize helpers from the package entrySecurity
overridesfornanoid(^3.3.17) andcookie(^0.7.2)bun auditnow reports No vulnerabilities found (was 1 high / 1 low)DevOps / reliability
check,lint,test,build,build:example, andbun auditcheck,lint,test,formatsvelte-kit sync && svelte-checksideEffectsfor CSS,prepublishOnlyTest evidence
Scope notes