Skip to content
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

Web3ApiClient - Preload API resolvers #777

Merged
merged 19 commits into from
Apr 9, 2022

Conversation

nerfZael
Copy link
Contributor

Closes: #715
Unblocks: polywrap/demos#23

@nerfZael nerfZael changed the title Nerfzael uri resolution infinite recursion URI resolution infinite recursion Mar 23, 2022
@nerfZael nerfZael changed the base branch from prealpha to prealpha-dev March 23, 2022 23:03
@nerfZael nerfZael changed the title URI resolution infinite recursion Web3ApiClient - Preload API resolvers Mar 23, 2022
private deserializeOptions?: DeserializeManifestOptions,
disablePreloadResolvers?: boolean
) {
if (disablePreloadResolvers) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a sort of hacky solution to the problem of using the aggregator in core-js tests

Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm, should we use a TEST environment variable maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe, but I think this is also has usecases elsewhere, eg a performance increase if you know all of your resolvers are local

@nerfZael nerfZael marked this pull request as ready for review March 25, 2022 13:43
Copy link
Contributor

@dOrgJelli dOrgJelli left a comment

Choose a reason for hiding this comment

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

This all looks really good!

I spent some time restructuring the terminology to something that I think makes more sense to new users. Would love to discuss here: #806

If you're okay with these proposed changes, I'm good with this PR :D

Everything looks great 💯

@dOrgJelli dOrgJelli merged commit 8e29306 into prealpha-dev Apr 9, 2022
@dOrgJelli dOrgJelli deleted the nerfzael-uri-resolution-infinite-recursion branch February 2, 2023 15:40
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.

URI Resolver Wrapper Infinite Loop
2 participants