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

Version 10 #124

Open
1 task
sindresorhus opened this issue Nov 19, 2022 · 4 comments
Open
1 task

Version 10 #124

sindresorhus opened this issue Nov 19, 2022 · 4 comments

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Nov 19, 2022

Some ideas for version 10. It will not happen for a long time.

@sindresorhus sindresorhus changed the title Version 8 Version 10 Apr 20, 2024
@ShikiSuen
Copy link

ShikiSuen commented Jan 14, 2025

Uh... I just tried the latest DefaultsMacro and found that it brings too much performance burden (during the decoding process) comparing to use Combine-based Defaults.publisher() if the value type stored in the key is a complicated codable class / struct. I wonder what your suggestion is for replacing Defaults.publisher().

@sindresorhus
Copy link
Owner Author

Defaults.updates() is the replacement of Defaults.publisher().

@ShikiSuen
Copy link

@sindresorhus Thanks for your suggestion. I wonder the following example of API migration is correct. Could you please help me take a look?

image

@sindresorhus
Copy link
Owner Author

Each Defaults.updates() needs a separate Task.

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

No branches or pull requests

2 participants