8000 Refactor Babel and update dependencies by hightouch67 · Pull Request #515 · steemit/steem-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor Babel and update dependencies #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 7, 2025
Merged

Conversation

hightouch67
Copy link
Contributor
  • Replaced deprecated Babel presets with @babel/preset-env in .babelrc.
  • Bumped package version to 0.8.0 and updated dependencies in package.json, including Babel and Webpack.
  • Enhanced README with examples for using Promises in broadcasting votes.
  • Improved error handling and timeout management in HTTP transport methods.
  • Refactored various modules to use CommonJS require syntax instead of ES6 imports for compatibility.
  • Removed unused visualizer plugin from Webpack configuration.

In short I removed all vulnerabilities, added a promise without breaking the existent patterns (eg: voteAsync) kept the same tests and added one more for promises based operations.

- Replaced deprecated Babel presets with @babel/preset-env in .babelrc.
- Bumped package version to 0.8.0 and updated dependencies in package.json, including Babel and Webpack.
- Enhanced README with examples for using Promises in broadcasting votes.
- Improved error handling and timeout management in HTTP transport methods.
- Refactored various modules to use CommonJS require syntax instead of ES6 imports for compatibility.
- Removed unused visualizer plugin from Webpack configuration.
@ety001
Copy link
Member
ety001 commented Apr 27, 2025

TODO

  • I need more time to confirm all the new import packages.
  • babel-loader@10.0.0: The engine "node" is incompatible with this module. Expected version "^18.20.0 || ^20.10.0 || >=22.0.0". You should also upgrade github action about three versions of node. Otherwise the CI will not pass.

Other things about the Future development of steem-js

I'm rewriting steem-js with new frontend technology.

The main direction are:

  • Change to Rollup build tool
  • Change to Typescript
  • Change to ESM

Due to the busy work, the current rebuild progress is on hold.
At present, there is no clear completion time.
After all review work of this PR we could release a version as an interim version。

- Removed deprecated Dockerfiles for Node.js 4 and 6.
- Updated package.json dependencies to newer versions for improved compatibility and security.
- Adjusted GitHub Actions workflow to use the new Node.js 12 Dockerfile.
- Modified CircleCI configuration to use Node.js 18.
- Removed deprecated Dockerfile for Node.js 12 and adjusted GitHub Actions workflow to use the new Node.js 18 Dockerfile.
- Updated package.json scripts for compatibility with the new Node.js version.
- Added polyfills for browser compatibility in Webpack configuration.
@ety001
Copy link
Member
ety001 commented May 7, 2025

I have checked the new imported packages.

8000
@@ -1,4 +1,4 @@
var ByteBuffer = require('@exodus/bytebuffer');
var ByteBuffer = require('bytebuffer');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the differences between '@exodus/bytebuffer' and 'bytebuffer'?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forget it. This package was edited by me but I forgot that detail.

@ety001 ety001 merged commit 66958eb into steemit:master May 7, 2025
1 check passed
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
0