Refactor Babel and update dependencies#515
Merged
ety001 merged 4 commits intosteemit:masterfrom May 7, 2025
Merged
Conversation
- 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.
Member
TODO
Other things about the Future development of steem-jsI'm rewriting steem-js with new frontend technology. The main direction are:
Due to the busy work, the current rebuild progress is on hold. |
- 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.
Member
|
I have checked the new imported packages. |
ety001
approved these changes
May 7, 2025
| @@ -1,4 +1,4 @@ | |||
| var ByteBuffer = require('@exodus/bytebuffer'); | |||
| var ByteBuffer = require('bytebuffer'); | |||
Member
There was a problem hiding this comment.
What's the differences between '@exodus/bytebuffer' and 'bytebuffer'?
Member
There was a problem hiding this comment.
Forget it. This package was edited by me but I forgot that detail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.