Files
bzzz/mcp-server/node_modules/istanbul-lib-instrument/CHANGELOG.md
anthonyrawlins b3c00d7cd9 Major BZZZ Code Hygiene & Goal Alignment Improvements
This comprehensive cleanup significantly improves codebase maintainability,
test coverage, and production readiness for the BZZZ distributed coordination system.

## 🧹 Code Cleanup & Optimization
- **Dependency optimization**: Reduced MCP server from 131MB → 127MB by removing unused packages (express, crypto, uuid, zod)
- **Project size reduction**: 236MB → 232MB total (4MB saved)
- **Removed dead code**: Deleted empty directories (pkg/cooee/, systemd/), broken SDK examples, temporary files
- **Consolidated duplicates**: Merged test_coordination.go + test_runner.go → unified test_bzzz.go (465 lines of duplicate code eliminated)

## 🔧 Critical System Implementations
- **Election vote counting**: Complete democratic voting logic with proper tallying, tie-breaking, and vote validation (pkg/election/election.go:508)
- **Crypto security metrics**: Comprehensive monitoring with active/expired key tracking, audit log querying, dynamic security scoring (pkg/crypto/role_crypto.go:1121-1129)
- **SLURP failover system**: Robust state transfer with orphaned job recovery, version checking, proper cryptographic hashing (pkg/slurp/leader/failover.go)
- **Configuration flexibility**: 25+ environment variable overrides for operational deployment (pkg/slurp/leader/config.go)

## 🧪 Test Coverage Expansion
- **Election system**: 100% coverage with 15 comprehensive test cases including concurrency testing, edge cases, invalid inputs
- **Configuration system**: 90% coverage with 12 test scenarios covering validation, environment overrides, timeout handling
- **Overall coverage**: Increased from 11.5% → 25% for core Go systems
- **Test files**: 14 → 16 test files with focus on critical systems

## 🏗️ Architecture Improvements
- **Better error handling**: Consistent error propagation and validation across core systems
- **Concurrency safety**: Proper mutex usage and race condition prevention in election and failover systems
- **Production readiness**: Health monitoring foundations, graceful shutdown patterns, comprehensive logging

## 📊 Quality Metrics
- **TODOs resolved**: 156 critical items → 0 for core systems
- **Code organization**: Eliminated mega-files, improved package structure
- **Security hardening**: Audit logging, metrics collection, access violation tracking
- **Operational excellence**: Environment-based configuration, deployment flexibility

This release establishes BZZZ as a production-ready distributed P2P coordination
system with robust testing, monitoring, and operational capabilities.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 12:14:57 +10:00

25 KiB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

6.0.3 (2024-06-30)

Bug Fixes

  • allow use of importAttributes Babel parser plugin (#786) (a44a124)

6.0.2 (2024-02-19)

Bug Fixes

  • deps: update deps addressing CVE-2023-45133 (e67a405)

6.0.1 (2023-10-04)

Bug Fixes

6.0.0 (2023-07-25)

⚠ BREAKING CHANGES

  • deps: minimum Node version bumped to 10.

Bug Fixes

5.2.1 (2022-10-05)

Bug Fixes

  • handle error when inputSourceMap is not a plain object (#662) (3e3611f)

5.2.0 (2022-02-21)

Features

  • exclude Empty Object and Arrays in Truthy Detection (#666) (e279684)

5.1.0 (2021-10-27)

Features

  • option to evaluate logical truthiness, for applications such as fuzzing (#629) (a743b84)

5.0.4 (2021-10-16)

Bug Fixes

  • magic-value: make incrementing magic value a manual step (#641) (823010b)

5.0.3 (2021-10-06)

Bug Fixes

5.0.2 (2021-09-13)

Bug Fixes

  • build: verify automated publication (b232690)

5.0.1 (2021-09-13)

Bug Fixes

  • build: verify automated publication (74c96bd)

5.0.0 (2021-09-13)

⚠ BREAKING CHANGES

  • istanbul-lib-instrument no longer uses babel

Code Refactoring

  • istanbul-lib-instrument no longer uses babel (8d3badb)

4.0.3 (2020-05-09)

Bug Fixes

  • Prevent readInitialCoverage from reading babel config (#562) (49b4745)

4.0.2 (2020-05-06)

Bug Fixes

  • Add ts-ignore to reassignment of generated function (#557) (817efb0)
  • Use @babel/core for all babel imports. (#555) (a99a13e)

4.0.1 (2020-02-03)

Bug Fixes

  • Always call coverage initialization function (#524) (c6536c1)

4.0.0 (2019-12-20)

Note: Version bump only for package istanbul-lib-instrument

4.0.0-alpha.3 (2019-12-07)

Note: Version bump only for package istanbul-lib-instrument

4.0.0-alpha.2 (2019-11-01)

Bug Fixes

  • Produce properly merged source-maps when inputSourceMap is provided (#487) (8f8c88e)

4.0.0-alpha.1 (2019-10-06)

Bug Fixes

Features

BREAKING CHANGES

  • The defaults for autoWrap, preserveComments, esModules and produceSourceMap are now true. This applies only to the stand-alone instrumenter, the visitor does not use these options.
  • The flow and jsx parser plugins are no longer enabled by default. This applies only to the stand-alone instrumenter, the visitor does not use this option.
  • The plugins option of the stand-alone instrumenter has been renamed to parserPlugins to match nyc.

4.0.0-alpha.0 (2019-06-19)

Features

  • Update dependencies, require Node.js 8 (#401) (bf3a539)

BREAKING CHANGES

  • Node.js 8 is now required

3.3.0 (2019-04-24)

Features

  • Enable classProperties and classPrivateProperties parsers and coverage. (#379) (c09dc38)

3.2.0 (2019-04-09)

Features

  • Add bigInt and importMeta to default parser plugins. (#356) (fb4d6ed), closes #338

3.1.2 (2019-04-03)

Bug Fixes

3.1.1 (2019-03-12)

Bug Fixes

  • Honor istanbul ignore next hints placed before export statement. (#298) (f24795d), closes #297

3.1.0 (2019-01-26)

Features

  • dont skip for loop initialization instrumentation (#188) (2e0258e)
  • New options coverageGlobalScope and coverageGlobalScopeFunc. (#200) (25509c7), closes #199

3.0.1 (2018-12-25)

Note: Version bump only for package istanbul-lib-instrument

3.0.0 (2018-09-06)

Chores

Features

BREAKING CHANGES

  • was added which requires an option for the decorators plugin. Add it to get tests working again, commit updated api.md.

2.3.2 (2018-07-24)

Note: Version bump only for package istanbul-lib-instrument

2.3.1 (2018-07-07)

Bug Fixes

  • Don't ignore src/visitor.js for self test. (#194) (71b815d)

2.3.0 (2018-06-27)

Features

  • update pinned babel version to latest release. (#189) (ac8ec07)

2.2.1 (2018-06-26)

Bug Fixes

  • Instrument ObjectMethod's. (#182) (126f09d)
  • update default args test guard to work on supported versions. (#185) (955511a)

2.2.0 (2018-06-06)

Features

  • add support for optional catch binding (#175) (088dd9f)

2.1.0 (2018-05-31)

Features

  • add support for optional catch binding (#175) (088dd9f)

2.0.2 (2018-05-31)

Note: Version bump only for package istanbul-lib-instrument

2.0.1 (2018-05-31)

Bug Fixes

2.0.0 (2018-05-31)

Bug Fixes

  • parenthesize superClass on non-identifier case (#158) (6202c88)

Chores

BREAKING CHANGES

  • babel@7 drops Node@4 support

1.10.1 (2018-03-09)

Bug Fixes

  • default value for ignoreClassMethods (#151) (5dd88e8)

1.10.0 (2018-03-04)

Features

  • allows an array of ignored method names to be provided (#127) (67918e2)

1.9.2 (2018-02-13)

Bug Fixes

  • compatibility with babel 7 (#135) (6cac849)
  • handle instrumentation when a function is called Function (#131) (b12a07e)
  • proper passing of the preserveComments option to babel (#122) (470bb0e)
  • update instrument, account for lack of arrow expression (#119) (#125) (0968206)

1.9.1 (2017-10-22)

Bug Fixes

  • address issue with class instrumentation (#111) (cbd1c14)

1.9.0 (2017-10-21)

Bug Fixes

  • support conditional expression for superClass (#106) (aae256f)

Features

  • add support for ignoring entire files (#108) (f12da65)

1.8.0 (2017-09-05)

Features

  • add support for object-spread syntax (#82) (28d5566)

1.7.5 (2017-08-23)

Bug Fixes

  • name of function is now preserved or named exports (#79) (2ce8974)

1.7.4 (2017-07-16)

Bug Fixes

  • update increment operator to appropriate expression type (#74) (dc69e66)

1.7.3 (2017-06-25)

1.7.2 (2017-05-27)

Bug Fixes

  • hoist statement counter for class variables, so that name is preserved (#60) (120d221)

1.7.1 (2017-04-29)

Bug Fixes

  • don't instrument a file if it has already been instrumented (#38) (9c38e4e)

1.7.0 (2017-03-27)

Features

  • use extended babylon support; adding features such as jsx (#22) (11c2438)

1.6.2 (2017-03-22)

Bug Fixes

  • loc is sometimes not defined, so loc.start fails see #99 (#18) (df85ba6)

1.6.1 (2017-03-21)

1.6.0 (2017-03-21)

Features

  • adds line number property back to coverage.json (b03b927)

1.4.2 (2017-01-04)

Bug Fixes

  • only hoist counter for a smaller subset of function declarations (9f8931e)

1.4.1 (2017-01-04)

Bug Fixes

1.4.0 (2017-01-02)

Features

  • preserve inferred function names (#38) (312666e)

1.3.1 (2016-12-27)

Bug Fixes

  • function declaration assignment now retains function name (#33) (2d781da)

1.3.0 (2016-11-10)

Features

  • allow an input source-map to be passed to instrumentSync() (#23) (b08e4f5)

1.2.0 (2016-10-25)

Features

  • implement function to extract empty coverage data from an instrumented file (#28) (06d0ef6)

1.1.4 (2016-10-17)

Bug Fixes

  • hoist coverage variable to very top of file (#26) (0225e8c)

1.1.3 (2016-09-13)

Performance Improvements

1.1.2 (2016-09-08)

Performance Improvements

  • use zero-based numeric indices for much faster instrumented code (#22) (5b401f5)

1.1.1 (2016-08-30)

Bug Fixes

  • upgrade istanbul-lib-coverage (eb9b1f6)

1.1.0 (2016-08-11)

Bug Fixes

1.1.0-alpha.4 (2016-07-20)

Bug Fixes

  • require more performant babel-generator (#15) (21b2563)