10
45
Fork
You've already forked doipjs
28

Turn doip-js into an ES module #52

Merged
yarmo merged 3 commits from into-es-module into dev 2023年07月10日 10:41:13 +02:00
Owner
Copy link

This PR turns the library from a CommonJS module into an ES module.

All the require/exports have been replaced with import/export. Rollup has replaced browserify to generate browser builds.

The new build system produces three outputs:

  • doip.core.js: the doip-js library without fetchers
  • doip.fetchers.js: the fetchers doip-js needs to fetch proofs
  • doip.fetchers.minimal.js: the fetchers only used in browsers (missing fetchers: DNS, XMPP, IRC)

Skipping DNS, XMPP and IRC allows the minimal variant to be 700+ kB lighter than the full variant (92 kB vs 835 kB). All sizes are before minification.

This PR turns the library from a CommonJS module into an ES module. All the require/exports have been replaced with import/export. Rollup has replaced browserify to generate browser builds. The new build system produces three outputs: - doip.core.js: the doip-js library without fetchers - doip.fetchers.js: the fetchers doip-js needs to fetch proofs - doip.fetchers.minimal.js: the fetchers only used in browsers (missing fetchers: DNS, XMPP, IRC) Skipping DNS, XMPP and IRC allows the minimal variant to be 700+ kB lighter than the full variant (92 kB vs 835 kB). All sizes are before minification.
feat: use rollup for bundling
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/publish-npm Pipeline was successful
535d35bd48
fix: remove obsolete dep
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/publish-npm Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/publish-npm Pipeline was successful
92d150efea
Sign in to join this conversation.
No reviewers
Labels
Clear labels
bug
Something is not working

Archived

enhancement
New feature

Archived

Contribution welcome
Get started contributing here
Good first issue
Good if you are new to the project or to open source contributions
Impact
External
Affects the people using the project
Impact
Internal
Affects on the people working on the project
Priority
Critical
Work on right now
Priority
High
Work on at earliest convenience
Priority
Low
Work on in spare time
Priority
Medium
Work on regularly
Review
Duplicate
Already exists
Review
Off Topic
Does not fall within the scope of the repo/project
Status
Backlog
Is not being worked on yet
Status
Blocked
Is waiting on something or someone
Status
Completed
Is done
Status
In Progress
Is being worked on
Status
Investigating
Is waiting on research or questions
Status
Needs Decision
Is waiting on a decision by the devs/contributors
Status
Needs Info
Is waiting on additional information before it can be solved
Status
Needs Triage
Is new issue that needs reviewing
Status
Testing
Is being checked and verified
Status
Waiting For Review
Is waiting on reviewers to approve
Status
Won't Fix
Won't be fixed
Type
Bug
Related to something not working as intended
Type
CI
Related to continuous integration
Type
Documentation
Related to documentation
Type
Enhancement
Related to a new feature or an improved one
Type
New Claim
Related to a new identity claim/proof
Type
Security
Related to security
Type
Tests
Related to code tests
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
keyoxide/doipjs!52
Reference in a new issue
keyoxide/doipjs
No description provided.
Delete branch "into-es-module"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?