Skip to content

Conversation

meabed
Copy link
Contributor

@meabed meabed commented Sep 3, 2025

Summary

  • 🎯 Unified Rollup configuration into single rollup.config.js
  • ✨ Improved TypeScript configuration with modern ES2020 target
  • πŸš€ Leveraged TypeScript's type inference to reduce code duplication
  • πŸ“¦ Simplified build scripts from 8 to 4 commands

Changes

Build System

  • Unified configuration: Single rollup.config.js replaces two separate config files
  • ES modules: Added "type": "module" for modern JavaScript support
  • Cleaner scripts: Reduced complexity while maintaining all build outputs
  • Kept Rollup: Maintained Rollup as the bundler with simplified configuration

TypeScript Improvements

  • Modern target: Updated to ES2020 from ES5 for better performance
  • Type inference: Removed redundant type annotations (: void, : string | null, etc.)
  • Better defaults: Added declarationMap, skipLibCheck, and other useful options
  • Simplified parameters: Using inference for default parameters

Code Quality

  • Removed 40+ redundant type declarations
  • Cleaner function signatures leveraging TypeScript's inference
  • More maintainable configuration with less duplication
  • Consistent formatting applied by Biome

Test Results

βœ… All 70 tests passing
βœ… Build outputs identical (CJS, ESM, UMD, minified)
βœ… Type declarations generated correctly with source maps

Breaking Changes

None - All public APIs and outputs remain identical

meabed and others added 12 commits August 28, 2025 22:03
- Add 50+ new serverless architecture test cases covering:
  - Concurrent resource loading
  - Error handling and recovery
  - Locale fallback mechanisms
  - Performance and latency monitoring
  - Cache management strategies
  - Edge cases and validation

- Integrate lint-staged with Husky for automated code quality
  - Run Biome checks and formatting on staged files
  - Ensure code consistency before commits

- Update CHANGELOG with v1.6.0 features and improvements
- Format scripts with Biome standards and Node.js protocol imports
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ration

- Replace Rollup + ESBuild with Rolldown for faster, simpler builds
- Remove redundant type declarations, leverage TypeScript inference
- Modernize TypeScript config (ES2020 target, bundler resolution)
- Simplify build scripts and configuration files
- Add ES module support with "type": "module"
- Reduce build dependencies from 7 packages to just Rolldown

Build performance: ~90ms with Rolldown (native TypeScript support)
All 70 tests passing successfully
…oved TypeScript

- Unified Rollup configuration: Single rollup.config.js instead of two files
- Improved TypeScript configuration: ES2020 target with better type inference
- Removed redundant type annotations leveraging TypeScript's inference
- Added ES module support with "type": "module" in package.json
- Simplified build scripts from 8 to 4 commands
- Modern TypeScript settings with declaration maps and better defaults

All 70 tests passing successfully with cleaner, more maintainable configuration.
@meabed meabed changed the title feat: Migrate to Rolldown bundler with improved TypeScript configuration feat: Simplify build with unified Rollup config and improved TypeScript Sep 3, 2025
- Renamed rollup.config.js to rollup.config.cjs
- Removed "type": "module" from package.json
- Updated build scripts to explicitly reference .cjs config file
- Maintained all TypeScript improvements and unified configuration

This ensures compatibility with existing Node.js environments that may not
fully support ES modules while keeping the simplified build setup.
Copy link

github-actions bot commented Sep 3, 2025

πŸŽ‰ This PR is included in version 1.6.0-beta.6 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

- Document migration to unified Rollup configuration
- Add build system changes section in CHANGELOG
- Include Building section in README with build instructions
- Document CommonJS compatibility fix for Rollup config
- Note removal of redundant serverless config file
@meabed meabed merged commit 3c510b6 into master Sep 3, 2025
Copy link

github-actions bot commented Sep 3, 2025

πŸŽ‰ This PR is included in version 1.6.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Copy link

github-actions bot commented Sep 4, 2025

πŸŽ‰ This PR is included in version 1.6.0-beta.7 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@meabed meabed mentioned this pull request Sep 4, 2025
Copy link

github-actions bot commented Sep 4, 2025

πŸŽ‰ This PR is included in version 1.7.0-beta.1 πŸŽ‰

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.

1 participant