**chore(release): bump version to 0.10.0 and refactor project structure**
- Updated version to `0.10.0` in `README.md`, `cli-package/package.json`, and `src/utils/version.ts`. - Removed `CHANGELOG.md` from the root and `cli-package`, as GitHub auto-generates release notes. - Refactored `brainy-wrapper.js` to simplify utility methods (`isFloat32Array` and `isTypedArray`) by moving them to instance-level definitions. - Standardized Node.js version requirement to `>= 24.3.0` across documentation and configuration files. - Improved `textEncoding.ts` by introducing a unified `Platform` class for cross-environment compatibility (Node.js and browser). - Restructured scripts: - Replaced outdated commands (e.g., `test-cli` -> `test:cli` and `test-all` -> `test:all`) for consistency. - Removed changelog updates from `scripts/create-github-release.js` as part of simplification. - Enhanced `patch-textencoder.js` to also patch `worker.js` for both `TextEncoder` and `TextDecoder`. This release improves compatibility with Node.js 24, simplifies the deployment/changelog process, and refines text encoding and worker functionalities.
This commit is contained in:
parent
1a88aecdb6
commit
00039f836f
18 changed files with 183 additions and 292 deletions
|
|
@ -81,17 +81,15 @@ try {
|
|||
|
||||
console.log(`GitHub release v${version} created successfully!`)
|
||||
|
||||
// Update CHANGELOG.md with the release notes
|
||||
console.log('Updating CHANGELOG.md with release notes...')
|
||||
execSync('node scripts/update-changelog.js', { stdio: 'inherit', cwd: rootDir })
|
||||
// GitHub will automatically handle the changelog
|
||||
console.log('GitHub release created with auto-generated notes')
|
||||
} catch (error) {
|
||||
// If the release already exists, this is not a fatal error
|
||||
if (error.message.includes('already exists')) {
|
||||
console.log(`GitHub release v${version} already exists, skipping creation.`)
|
||||
|
||||
// Still update CHANGELOG.md with the release notes
|
||||
console.log('Updating CHANGELOG.md with release notes...')
|
||||
execSync('node scripts/update-changelog.js', { stdio: 'inherit', cwd: rootDir })
|
||||
// GitHub will automatically handle the changelog
|
||||
console.log('GitHub release already exists with auto-generated notes')
|
||||
} else {
|
||||
console.error('Error creating GitHub release:', error.message)
|
||||
// Don't exit with error to allow the npm publish to continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue