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

Breaking Change: Remove direct export of methods #97

Closed
xiaodong2008 opened this issue Apr 17, 2024 · 1 comment
Closed

Breaking Change: Remove direct export of methods #97

xiaodong2008 opened this issue Apr 17, 2024 · 1 comment

Comments

@xiaodong2008
Copy link
Member

Exports like FastjsDom, and FastjsDate will not provided in the entry file anymore

We will still keep these exports at a module level

How do I change my code

For example, you need to use FastjsDate directly in your code. You can write like this:

import { date } from 'jsfast'
const dateInstance = date.create()

Different modules have different APIs to let you use underlying implementation, for example:

  • FastjsDom: dom.newEl
  • FastjsDomList: dom.newElList
  • FastjsRequest: request.create
@xiaodong2008
Copy link
Member Author

This breaking change will be completed at v1.0.0-alpha.5 or v1.0.0-beta.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant