fastjs-team / core

Fastjs is a useful, lightweight JavaScript library for any types of project.
https://fastjs.dev
MIT License
341 stars 37 forks source link

Breaking Change: Remove direct export of methods #97

Closed xiaodong2008 closed 2 months ago

xiaodong2008 commented 2 months ago

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:

xiaodong2008 commented 2 months ago

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