Skip to content

Latest commit

 

History

History
734 lines (465 loc) · 25.9 KB

File metadata and controls

734 lines (465 loc) · 25.9 KB

@lexbuild/usc

1.25.0

Minor Changes

  • 6298069: Add single-pass multi-granularity conversion. The convert-usc and convert-ecfr commands now accept --granularities section,chapter,title[,part] together with --output-chapter, --output-title, and --output-part (eCFR only) to produce every requested granularity from one parse of the source XML. The builders' emitAt option accepts a ReadonlySet<LevelType> in addition to a single LevelType, and deeper levels emit first so that higher-level emissions see the complete subtree. Update scripts (update-usc.sh, update-ecfr.sh) collapse their N convert-* invocations into one, yielding a ~40-50% reduction in the incremental convert step's wall-clock on multi-granularity runs.

    Back-compat: the existing -g/--granularity + -o/--output single-granularity form continues to work unchanged and is mutually exclusive with --granularities.

Patch Changes

  • Updated dependencies [6298069]
    • @lexbuild/core@1.25.0

1.24.1

Patch Changes

  • 28c1862: Fix eCFR title- and part-granularity emission. convert-ecfr -g title and convert-ecfr -g part previously emitted stub files containing only frontmatter and an empty heading, because the builder's emit condition used >= instead of strict equality on the level index — every intermediate level (section, part, chapter) emitted standalone instead of aggregating into the parent's children tree.

    Align EcfrASTBuilder with the USLM builder's strict-equality behavior and populate title_name from node.heading when the emitted node itself is a title (a title has no title ancestor). Title-granularity output grows from ~289 bytes per title to ~400 KB per title with full chapter/part/section content inlined; part-granularity output now includes section content.

  • Updated dependencies [28c1862]

    • @lexbuild/core@1.24.1

1.23.3

Patch Changes

  • Updated dependencies [f1cf97f]
    • @lexbuild/core@1.23.3

1.22.0

Minor Changes

  • Add @lexbuild/mcp package — Model Context Protocol server for LexBuild

Patch Changes

  • Updated dependencies
    • @lexbuild/core@1.22.0

1.19.0

Minor Changes

  • fe043bf: Add incremental content update pipeline and documentation

Patch Changes

  • Updated dependencies [fe043bf]
    • @lexbuild/core@1.19.0

1.18.1

Patch Changes

  • bee35c5: Docs update; Version bump
  • Updated dependencies [bee35c5]
    • @lexbuild/core@1.18.1

1.18.0

Minor Changes

  • 434ecfe: Bump version for docs site version sync

Patch Changes

  • Updated dependencies [434ecfe]
    • @lexbuild/core@1.18.0

1.17.3

Patch Changes

  • Updated dependencies [66af7d2]
    • @lexbuild/core@1.17.3

1.17.2

Patch Changes

  • 47a48df: Use PBKDF2 for API key hashing and fix CI test runner
  • 0fef14e: Phase 5 of the Data API implementation. Adds full-text search across all three sources with faceted filtering, highlighting, and sort.
  • e63fd69: Refactor shared API key schema and hashing to @lexbuild/core
  • 92698e7: Phase 4 of the Data API implementation. Adds paginated document listings
  • 62e6ad0: Data API Phase 0 implementation
  • a94fa11: Phase 7 of the Data API implementation. Adds deploy script modes for API code and database deployment, and updates documentation across the monorepo.
  • a63e95e: Data API Phase 1
  • 2033419: Phase 3 of the Data API implementation.
  • 9b7b181: Phase 6 of the Data API implementation. Adds API key management with SQLite-backed storage, tiered rate limiting, usage tracking, and CLI commands for key lifecycle management.
  • Updated dependencies [47a48df]
  • Updated dependencies [0fef14e]
  • Updated dependencies [e63fd69]
  • Updated dependencies [92698e7]
  • Updated dependencies [62e6ad0]
  • Updated dependencies [a94fa11]
  • Updated dependencies [a63e95e]
  • Updated dependencies [2033419]
  • Updated dependencies [9b7b181]
    • @lexbuild/core@1.17.2

1.17.1

Patch Changes

  • 16aae5b: Prettier Formatting
  • Updated dependencies [16aae5b]
    • @lexbuild/core@1.17.1

1.17.0

Minor Changes

  • 15c21c9: Meilisearch Docker Container

Patch Changes

  • Updated dependencies [15c21c9]
    • @lexbuild/core@1.17.0

1.16.1

Patch Changes

  • ae8e01c: Update documentation and CLAUDE.md files
  • Updated dependencies [ae8e01c]
    • @lexbuild/core@1.16.1

1.16.0

Minor Changes

  • deb4785: Enrich FR with API JSON metadata

Patch Changes

  • Updated dependencies [deb4785]
    • @lexbuild/core@1.16.0

1.15.3

Patch Changes

  • 62f5fd3: Prettier Formatting
  • 4599ccb: Cleanup and enhance comments throughout monorepo for better consistency
  • Updated dependencies [62f5fd3]
  • Updated dependencies [4599ccb]
    • @lexbuild/core@1.15.3

1.15.2

Patch Changes

  • c59e3a7: Patch Bump
  • Updated dependencies [c59e3a7]
    • @lexbuild/core@1.15.2

1.15.1

Patch Changes

  • 428aaeb: Package README.md updates
  • Updated dependencies [428aaeb]
    • @lexbuild/core@1.15.1

1.15.0

Minor Changes

  • 0d01106: Implement Federal Register
  • 974392c: Implement bulk xml downloader for federal register

Patch Changes

  • c873f5c: Update packages CLAUDE.md files
  • 889a9c1: Fix parser error
  • 89a630b: Fix FR conversion
  • c3bec41: Implement concurrent downloads for FR
  • c612cb6: Fix formatting issues with FR raw and rendered text
  • 424d10c: Fix Federal Register downloader progress status; change 100ms request delay to 25ms for 4x faster throughput
  • Updated dependencies [c873f5c]
  • Updated dependencies [0d01106]
  • Updated dependencies [889a9c1]
  • Updated dependencies [89a630b]
  • Updated dependencies [c3bec41]
  • Updated dependencies [c612cb6]
  • Updated dependencies [974392c]
  • Updated dependencies [424d10c]
    • @lexbuild/core@1.15.0

1.14.1

Patch Changes

  • da51df3: bump version
  • Updated dependencies [da51df3]
    • @lexbuild/core@1.14.1

1.14.0

Minor Changes

  • 9af2c94: @lexbuild/fr
  • f2118bd: Phase 1 implementing Federal Register source
  • 2a6e3f2: Implement Federal Register source

Patch Changes

  • d2e2520: Fix Claude PR Review Issues
  • 9a8a655: Update CLAUDE.md files
  • 67049b9: Update documentation for Federal Register source
  • c8e6e86: Implement fixes for Claude PR Review issues
  • 0c52c73: Fix ESLint errors
  • Updated dependencies [d2e2520]
  • Updated dependencies [9af2c94]
  • Updated dependencies [9a8a655]
  • Updated dependencies [f2118bd]
  • Updated dependencies [2a6e3f2]
  • Updated dependencies [67049b9]
  • Updated dependencies [c8e6e86]
  • Updated dependencies [0c52c73]
    • @lexbuild/core@1.14.0

1.13.3

Patch Changes

  • a8b9cc1: Fix dependabot security vulnerabilities
  • Updated dependencies [a8b9cc1]
    • @lexbuild/core@1.13.3

1.13.2

Patch Changes

  • cab1c2c: Add download progress indicators
  • f6d7281: fix: address PR review findings for download progress
  • Updated dependencies [cab1c2c]
  • Updated dependencies [f6d7281]
    • @lexbuild/core@1.13.2

1.13.1

Patch Changes

  • Updated dependencies [f89a4ee]
    • @lexbuild/core@1.13.1

1.13.0

Minor Changes

  • cb27ce5: Astro SEO enhancements, JSON-LD, Twitter card support, and robots.txt

Patch Changes

  • Updated dependencies [cb27ce5]
    • @lexbuild/core@1.13.0

1.12.0

Minor Changes

  • 17cf9bf: add list-release-points to CLI command and release point history API

Patch Changes

  • Updated dependencies [17cf9bf]
    • @lexbuild/core@1.12.0

1.11.0

Minor Changes

  • d22de4d: Bump version

Patch Changes

  • Updated dependencies [d22de4d]
    • @lexbuild/core@1.11.0

1.10.1

Patch Changes

  • 59c12a1: feat: per title data resolution and retry logic for eCFR API downloads
  • 275f041: Address PR review feedback for download, highlights, and packaging
  • c735a6f: Update convert command summary footer for titles, chapters, parts, and sections
  • 82fb6cc: Manage Shiki's memory with forked child processes instead of a single process. Each child is 10k files and its memory is released back to the OS once highlighting is complete.
  • 7fde270: Implement hierarchical filenames for downloaded .md files (i.e. usc-title-01-chapter-01-section-1.md)
  • 95e44f5: eCFR data api fallbacks for when update is in progress; display date info during download
  • 0305588: Prettier formatting issue fixes; pnpm format
  • Updated dependencies [59c12a1]
  • Updated dependencies [275f041]
  • Updated dependencies [c735a6f]
  • Updated dependencies [82fb6cc]
  • Updated dependencies [7fde270]
  • Updated dependencies [95e44f5]
  • Updated dependencies [0305588]
    • @lexbuild/core@1.10.1

1.10.0

Minor Changes

  • 268dc81: Update eCFR downloader to handle govinfo eCFR XML or eCFR.gov API XML

Patch Changes

  • 2abf796: Update monorepo README.md
  • af2ea01: Fix eCFR frontmatter panel info
  • 791ca5e: Set the eCFR data API as the default eCFR source (govinfo still available if desired)
  • 65539ac: Update README.md files
  • d71a5d8: Auto detect latest release of the USC and add options to choose previous release points
  • Updated dependencies [2abf796]
  • Updated dependencies [af2ea01]
  • Updated dependencies [791ca5e]
  • Updated dependencies [65539ac]
  • Updated dependencies [d71a5d8]
  • Updated dependencies [268dc81]
    • @lexbuild/core@1.10.0

1.9.4

Patch Changes

  • 6a7111a: Add ENFILE/EMFILE retry wrapper for file writes in converters
  • Updated dependencies [6a7111a]
    • @lexbuild/core@1.9.4

1.9.3

Patch Changes

  • 93b4e78: refactor: remove Next.js web application, add Astro SSR app for browsing converted legal content
  • Updated dependencies [93b4e78]
    • @lexbuild/core@1.9.3

1.9.2

Patch Changes

  • #44 077dad9 Thanks @chris-c-thomas! - Update turbo configuations and build scripts to better align with best practices

  • Updated dependencies [077dad9]:

    • @lexbuild/core@1.9.2

1.9.1

Patch Changes

  • Updated dependencies []:
    • @lexbuild/core@1.9.1

1.9.0

Minor Changes

Patch Changes

1.8.0

Minor Changes

Patch Changes

  • Updated dependencies [f1fc762]:
    • @lexbuild/core@1.8.0

1.7.0

Minor Changes

Patch Changes

  • Updated dependencies [9e4a623]:
    • @lexbuild/core@1.7.0

1.6.0

Minor Changes

  • #33 69b95ea Thanks @chris-c-thomas! - Change GitHub Actions to drop Node 20, keep 22, and add 24; Update documentation files to reflect those changes.

Patch Changes

  • Updated dependencies [69b95ea]:
    • @lexbuild/core@1.6.0

1.5.1

Patch Changes

  • 874a2de Thanks @chris-c-thomas! - fix: resolve workspace:* dependencies to actual versions in published packages

  • Updated dependencies [874a2de]:

    • @lexbuild/core@1.5.1

1.5.0

Minor Changes

Patch Changes

  • Updated dependencies [ccae93b]:
    • @lexbuild/core@1.5.0

1.4.2

Patch Changes

  • a0b59f6 Thanks @chris-c-thomas! - Update additional references of lexbuild to LexBuild where appropriate

  • Updated dependencies [a0b59f6]:

    • @lexbuild/core@1.4.2

1.4.1

Patch Changes

1.4.0

Minor Changes

Patch Changes

  • Updated dependencies [8c294fb]:
    • @lexbuild/core@1.4.0

1.3.0

Minor Changes

  • #23 6ed94e2 Thanks @chris-c-thomas! - Fix incorrect output structure for chapter conversions, update web app, and modify convert command's summary stats.

Patch Changes

  • Updated dependencies [6ed94e2]:
    • @lexbuild/core@1.3.0

1.2.0

Minor Changes

Patch Changes

  • Updated dependencies [e42b53b]:
    • @lexbuild/core@1.2.0

1.1.1

Patch Changes

1.1.0

Minor Changes

  • #15 b60c8a5 Thanks @chris-c-thomas! - Improve CLI help output with usage examples, granularity descriptions, and documentation links

  • #14 0968b27 Thanks @chris-c-thomas! - Add "title" output granularity (-g title) that produces a single Markdown file per title with recursive heading

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

  • f86d74e: Quick fix
  • Updated dependencies [f86d74e]
    • @lexbuild/core@1.0.5

1.0.4

Patch Changes

  • 2598707: Fix README.md badge
  • Updated dependencies [2598707]
    • @lexbuild/core@1.0.4

1.0.3

Patch Changes

  • baaeba1: Update READMEs and package.json files
  • Updated dependencies [baaeba1]
    • @lexbuild/core@1.0.3

1.0.2

Patch Changes

  • 54219a7: Fix links that display on the npm registry
  • Updated dependencies [54219a7]
    • @lexbuild/core@1.0.2

1.0.1

Patch Changes

  • Add package README.md files
  • Updated dependencies
    • @lexbuild/core@1.0.1

1.0.0

Major Changes

  • First stable release. Converts all 54 titles of the U.S. Code from USLM XML to structured Markdown optimized for AI, RAG pipelines, and semantic search.

Patch Changes

  • Updated dependencies
    • @lexbuild/core@1.0.0

0.8.0

Minor Changes

  • Cleanup repo

Patch Changes

  • Updated dependencies
    • @lexbuild/core@0.8.0

0.7.0

Minor Changes

  • lexbuild convert --all now scans --input-dir for whatever usc{NN}.xml

Patch Changes

  • Updated dependencies
    • @lexbuild/core@0.7.0

0.6.2

Patch Changes

  • Cleanup files in project
  • Updated dependencies
    • @lexbuild/core@0.6.2

0.6.1

Patch Changes

  • Enhance downloader for when all titles are downloaded
  • Updated dependencies
    • @lexbuild/core@0.6.1

0.6.0

Minor Changes

  • 529f4bf: CLI TUI formatting fixes

Patch Changes

  • Updated dependencies [529f4bf]
    • @lexbuild/core@0.6.0

0.5.0

Minor Changes

  • 3a29a8e: Add --titles multi-select option to download and convert commands. Supports ranges (1-5), comma-separated lists

Patch Changes

  • Updated dependencies [3a29a8e]
    • @lexbuild/core@0.5.0

0.4.1

Patch Changes

  • Add chalk, ora, and cli-table3 for polished terminal output with spinners and formatted
  • Updated dependencies
    • @lexbuild/core@0.4.1

0.4.0

Minor Changes

  • Phase 4: Polish and Publish — snapshot tests, title-level README generation, CI/CD, documentation polish

Patch Changes

  • Updated dependencies
    • @lexbuild/core@0.4.0

0.3.0

Minor Changes

  • Phase 3: Scale & Download
    • feat(usc): OLRC downloader with zip extraction and release point support
    • feat(cli): lexbuild download command with --title, --all, --release-point
    • feat(usc,cli): --dry-run mode for convert command
    • feat(usc,cli): peak memory and token reporting in convert output
    • feat(core,usc): handle appendix titles with separate output directories
    • feat(usc): disambiguate duplicate section numbers with -2 suffix
    • feat(usc): status edge cases (repealed, reserved, transferred) in frontmatter and _meta.json

Patch Changes

  • Updated dependencies
    • @lexbuild/core@0.3.0

0.2.0

Minor Changes

  • abf4e13: Phase 2: Content Fidelity
    • Fix extra blank lines in multi-paragraph content blocks
    • Cross-reference link resolver with register/resolve/fallback and two-pass wiring
    • XHTML table conversion to Markdown pipe tables
    • USLM layout table conversion for TOC structures and tabular notes
    • Notes filtering with --no-include-notes, --include-editorial-notes, --include-statutory-notes, --include-amendments
    • _meta.json sidecar index generation at title and chapter levels
    • Chapter-level granularity mode (--granularity chapter)
    • Fix collector zone ordering bug (table/layout/toc checked before normal handlers)
    • E2E verified against Title 1 (39 sections) and Title 5 (1162 sections)

Patch Changes

  • Updated dependencies [abf4e13]
    • @lexbuild/core@0.2.0

0.1.0

Minor Changes

  • Phase 1: Foundation — initial implementation
    • SAX streaming XML parser with namespace normalization
    • AST node types and stack-based builder with section-emit pattern
    • Markdown renderer with bold inline numbering, cross-reference link modes, notes, and blockquotes
    • YAML frontmatter generator with format versioning
    • USC converter pipeline: XML → parse → build → render → write section files
    • CLI convert command with output directory, link style, and source credit options
    • E2E verified against Title 1 (39 sections, 3 chapters)

Patch Changes

  • Updated dependencies
    • @lexbuild/core@0.1.0