Skip to content

Commit 1106cbb

Browse files
authored
Major refactor, documentation overhaul, and community best practices (#248)
* fix: handle zero value symbol initialization * refactor: simplify partial function * docs: update JSDoc for partial and handleZeroValue * docs: add AGENTS.md for agent guidelines * refactor: remove .cursor rules directory * docs: fix TECHNICAL_DOCUMENTATION.md examples and standard names * docs: rewrite CODE_STYLE_GUIDE.md from actual source code * docs: rewrite README.md from source code * docs: update copyright year to 2026 * docs: update AGENTS.md with current tooling * chore: update dependencies * chore: update fix script to use oxlint and oxfmt * chore: remove redundant format scripts * chore: update lint script and fix formatting * fix: resolve oxlint warnings in benchmarks * fix: update husky pre-commit hook for v9 * build: update dist files * style: configure oxfmt to use tabs * chore: add oxlint and oxfmt to devDependencies * chore: remove eslint config * docs: fix README.md examples and structure * docs: add API.md reference * docs: fix CODE_STYLE_GUIDE.md references * docs: fix base option example in API.md * docs: fix inaccurate examples in API.md * docs: fix inaccurate examples in JSDoc and API documentation * fix: handle negative numbers with padding correctly * docs: fix inaccurate partial() example * refactor: shallow clone options in partial() for immutability * refactor: deep clone options in partial() for full immutability * perf: optimize deepClone with type-based memoization * perf: simplify deepClone with lexical constant * fix: throw error for non-JSON-serializable options in JSON fallback * test: add edge case tests for non-JSON-serializable options * docs: add security section to AGENTS.md and update line counts * fix: merge terser and newline plugins in minified outputs * refactor: remove duplicate generatedCode from minOutBase * fix: detect only decimal separators in padding, ignore grouping separators * test: clarify grouping separator test comments * test: add German locale padding test with decimal places * test: correct expected value for German locale grouping separator test * refactor: simplify partial() with destructuring, fix grouping separator detection * refactor: simplify partial() with destructuring, fix grouping separator detection * docs: update type definition examples to match current outputs * fix: preserve sourcemap in ensureNewline plugin * types: add missing symbol parameter to handleZeroValue * fix: use generateBundle for newline to preserve sourcemaps * docs: update partial() documentation to reflect destructuring approach * fix: respect forced exponent in applyPrecisionHandling * test: add exponent parameter to applyPrecisionHandling tests * build: update distribution files * refactor: simplify exponent auto-detection logic for better coverage * build: update distribution files * fix: respect forced exponent in bits auto-increment * build: update distribution files * docs: update AGENTS.md with recent changes * lint: add oxlint config with no-unused-vars and no-console rules * types: add missing exponent parameter to applyPrecisionHandling * docs: update security note to reflect partial() destructuring approach * docs: update regex pattern in security section to match current implementation * docs: update README with TypeScript examples, project stats, and community links * docs: update CONTRIBUTING and CHANGELOG links to GitHub * docs: add CONTRIBUTING.md with contribution guidelines * docs: fix CONTRIBUTING and CHANGELOG links to use master branch
1 parent ab17b96 commit 1106cbb

35 files changed

Lines changed: 5054 additions & 5470 deletions

.cursor/rules/javascript.mdc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
42
npm test

.oxfmtrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"indentWidth": 4,
3+
"ignorePatterns": [],
4+
"lineWidth": 120,
5+
"useTabs": true
6+
}

.oxlintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"rules": {
3+
"no-unused-vars": "error",
4+
"no-console": "off"
5+
},
6+
"overrides": [
7+
{
8+
"files": ["src/**/*.js", "tests/**/*.js"],
9+
"rules": {
10+
"no-console": "error"
11+
}
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)