**docs: remove outdated statistics-related documentation and add standards**

- **Removed Files**:
  - Deleted outdated statistics documentation files (`statistics.md`, `statistics-flush-solution.md`, `statistics-summary.md`) to clean up the repository and avoid confusion.

- **Added Standards**:
  - Introduced `DOCUMENTATION_STANDARDS.md` to outline naming conventions and troubleshooting practices for more consistent and maintainable project documentation.

- **Tests**:
  - Added a new test file `edge-cases.test.ts` to verify handling of edge cases, ensuring robust behavior against boundary values and invalid inputs.

**Purpose**: Cleans up deprecated documentation while introducing concrete standards for maintaining and updating documentation. Enhances test coverage for unusual or boundary inputs, improving overall system resilience.
This commit is contained in:
David Snelling 2025-07-28 16:00:05 -07:00
parent 3337c9f78e
commit 94c88e128c
41 changed files with 5583 additions and 498 deletions

View file

@ -17,7 +17,14 @@
import './setup.js'
// Import environment detection functions
import { isBrowser, isNode } from './utils/environment.js'
import {
isBrowser,
isNode,
isWebWorker,
isThreadingAvailable,
isThreadingAvailableAsync,
areWorkerThreadsAvailable
} from './utils/environment.js'
// Export environment information with lazy evaluation
export const environment = {
@ -29,6 +36,18 @@ export const environment = {
},
get isServerless() {
return !isBrowser() && !isNode()
},
isWebWorker: function() {
return isWebWorker()
},
get isThreadingAvailable() {
return isThreadingAvailable()
},
isThreadingAvailableAsync: function() {
return isThreadingAvailableAsync()
},
areWorkerThreadsAvailable: function() {
return areWorkerThreadsAvailable()
}
}