This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
This file contains 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
🦋 Changeset detectedLatest commit: 78cd843 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
#44 Bundle Size — 477.72KiB (-0.58%).Bundle metrics
|
Current #44 |
Baseline #42 |
|
---|---|---|
Initial JS | 477.72KiB (-0.58% ) |
480.51KiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 100% |
0% |
Chunks | 1 |
1 |
Assets | 1 |
1 |
Modules | 306 (+0.33% ) |
305 |
Duplicate Modules | 0 |
0 |
Duplicate Code | 0% |
0% |
Packages | 10 |
10 |
Duplicate Packages | 0 |
0 |
Bundle analysis report Branch feat/fetch-urls Project dashboard
…are queued and only executed when you add .get(), .toJson() or toYaml()
hanspagel
force-pushed
the
feat/fetch-urls
branch
from
May 24, 2024 11:01
929f116
to
1673346
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
With this PR references to URLs can be resolved.
To achieve this, I’ve introduced the new utility
load
utility, which imports JSON stings, YAML strings, JS objects, files and urls now. It even comes with a tiny plugin API, which means you can add whatever data source you’d like, or not enable file support (in browser envs).I’ve had to make the
load
utility async, which made the pipeline syntax really ugly (await (await openapi().load()).resolve()
), so I’ve refactored it to put all actions in a queue and work through it at the end, which enables a way nicer syntax:Pipeline syntax
Modular syntax
Additional improvements
openapi().load(…).files()
to retrieve the whole filesystemExample