Skip to content

Conversation

@jrquak
Copy link
Collaborator

@jrquak jrquak commented Aug 6, 2025

DO NOT MERGE YET
The component set also needs to be updated to support this CLI release.

emielwit and others added 28 commits August 4, 2025 11:10
- Updated all instances of `import program from 'commander'` to `import { Command } from 'commander'` across multiple files.
- Introduced a new build script using Bun to compile TypeScript files from the `src` directory to the `build` directory.
- Changed the main entry point in `package.json` to point to the new TypeScript file structure.
- Added `@types/bun` as a development dependency.
- Removed deprecated files related to function testing and icon conversion.
- Enhanced error handling in various files to provide clearer feedback.
- Removes obsolete `runtimeVersion` option and v2 specific logic.
- Updates dependencies and file handling for increased reliability.
- Ensures consistent error handling by wrapping errors in a standard format.
- Fixes prefab filtering to avoid errors.
- Updates component serving port
Updates `@betty-blocks/cli` and `@betty-blocks/component-sdk` dependencies to their latest versions.

Refactors command argument parsing to use explicit `argument` definitions, improving clarity and maintainability.
Migrates the CI/CD pipeline from Node.js and Yarn to Bun
for improved performance and maintainability.

Updates dependencies and scripts to be compatible with Bun.
Migrates from the deprecated `.eslintrc.js` style to the new flat config file `eslint.config.mjs`.
This involves updating eslint, typescript-eslint and prettier related dependencies to latest version and adjusting the configuration.
Updates prettier scripts for improved readability and maintainability.
Updates the prettier execution command in the CI workflow to use the `fix` script.
Addresses potential null/undefined values by incorporating nullish coalescing operators and optional chaining.

Also, applies minor cleanup:
- Adds missing return type annotations for better type safety.
- Uses destructuring for more concise variable assignment.
- Removes unused imports.
Updates the `validatePrefabs` function to accept a single object containing prefabs, styles, and other configuration options, instead of multiple arguments.

This change improves code readability and maintainability by grouping related parameters into a single object.

Updates tests to reflect the new signature of `validatePrefabs`.
Updates linting and formatting setup.

- Adds prettierignore to ignore build files, node_modules, lock files, changelog, coverage and readme files.
- Updates ci.yml to use format:check and lint:check scripts for checking formatting and linting.
- Updates lint and format scripts in package.json
- Fixes minor code style issues.
This resolves compatibility issues and ensures the application
benefits from the latest features and security patches.
Refactors the `validatePrefabs` and `publish` functions to
accept options objects, improving code clarity and maintainability.
- @babel
- form-data
- fs-extra
- joi
- ora
- prismjs
- serve-handler
Updates minimist dependency to version 1.2.8 for security fixes.

Refactors eslint configuration to improve performance by removing unnecessary ignored paths and simplifies JSDoc comment processing by using TypeScript's factory for more concise object creation.
Refactors code structure for better readability and maintainability across multiple test files.
Updates dependencies to their latest versions, including @types/adm-zip, adm-zip, @types/babel__generator, and @types/babel__traverse.

Increases the timeout for block validation tests to prevent failures due to slow validation.

Adds instructions for local development in the README.
- Improves error handling throughout the CLI, ensuring more informative error messages.
- Moves `stripVTControlCharacters` to `__tests__/utils.ts`
- Updates dependencies in `bun.lock` and `package.json`.
Replaces lodash's kebabCase and other string manipulation libraries with the 'case' package for consistent and more comprehensive string case conversions.

The 'pick' utility function is also introduced to replace lodash's pick.
Refactors test file imports for consistency and improves test assertions for component and interaction compatibility.
@jrquak jrquak changed the title Draft: Feature/update cli to bun and update depedencies phoen 147 Feature/update cli to bun and update depedencies phoen 147 Aug 12, 2025
@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-beta.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Updates the shebang to use node instead of bun.

This change ensures compatibility with environments where bun is not available but node is.
@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-beta.17 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-beta.18 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
13.6% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@bettyblocks-release-bot
Copy link
Collaborator

🎉 This PR is included in version 26.0.0-alpha.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants