Skip to content

Comments

build: Update build process and remove deprecated dependencies#51

Open
phala wants to merge 9 commits intodevelopfrom
upgrade
Open

build: Update build process and remove deprecated dependencies#51
phala wants to merge 9 commits intodevelopfrom
upgrade

Conversation

@phala
Copy link

@phala phala commented Mar 13, 2025

Key Changes

Build System

  • Replaced nwb with Rollup for bundle generation
  • Added proper ESM/CJS/UMD build outputs with appropriate package exports
  • Improved CSS processing using Sass (replacing node-sass-chokidar)
  • Added environment-specific build configurations
  • Removed nwb.config.js in favor of rollup.config.js

React Framework Updates

  • Upgraded to React 18 (from React 16)
  • Converted class components to functional components with hooks
  • Migrated from React-Redux v5 to v8 with hooks-based API
  • Renamed component files from .js to .jsx for better tooling support

Component Structure

  • Flattened component directory structure for simpler imports
  • Added new components: AttachmentMessage, LinkifyWrapper, Markdown
  • Replaced react-mark-ii with react-markdown for enhanced markdown support

Dependencies

  • Updated all dependencies to latest compatible versions
  • Removed deprecated packages:
    • recompose (no longer maintained, functionality now in React hooks)
    • node-sass-chokidar (replaced with sass)
    • esdoc and related plugins (outdated documentation generator)
    • @prk/eslint-config and @prk/prettier-config (replaced with direct configs)
  • Established explicit React 18 peer dependency requirement
  • Added Node.js and Yarn version requirements in package.json

Breaking Changes

This is a major version upgrade (v2.0.0) and includes several breaking changes:

  • React 18 is now required (previously supported older React versions)
  • Node.js 18.0.0 or higher is required (was previously 8.12.0)
  • Yarn 1.22.0 or higher is recommended for package management
  • Build output structure has changed
  • Some component APIs have been updated to use current React patterns

@phala phala requested a review from aleciafb March 13, 2025 12:56
@aleciafb aleciafb marked this pull request as ready for review April 3, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants