github-actions
released this
30 Sep 08:10
·
116 commits
to main
since this release
Major Changes
-
1c4c390: Moves
MDXContent
andMDXComponents
type exports to@renoun/mdx
package. -
5fa1a9e: Renames
createCollection
tocollection
.Breaking Changes
Replace all instances of
createCollection
withcollection
:-import { createCollection } from 'renoun/collections' +import { collection } from 'renoun/collections' -const PostsCollection = createCollection({ +const PostsCollection = collection({ filePattern: 'posts/*.mdx', })
-
f5ecc15: Removes
getDefaultExport
andgetNamedExport
from collection export sources in favor of a newgetExport
method. This method works exactly the same as the previousgetNamedExport
method with the addition of acceptingdefault
as an export. This simplifies the API and reduces the number of methods needed to query an export source.Breaking Changes
Update any usage of
getDefaultExport
andgetNamedExport
to use the newgetExport
method:getDefaultExport()
->getExport('default')
getNamedExport('metadata')
->getExport('metadata')
Minor Changes
- 5cdff4d: Adds
@renoun/mdx
to corerenoun
package as arenoun/mdx
export. The@renoun/mdx
package was initially split off to make maintenance easier. Since renoun is catering to content authoring, the MDX features should be as easy as possible to use.
Patch Changes
- 482e1e4: Fixes fast refresh when using a custom JSX pragma.
- 78080ed: Fixes fast refresh for collections targeting files outside of workspace.
- abca1f8: Fixes package manager tab panel layout shift on page load.
- 7e58c6d: Adds better error handling to internal CLI
WebSocketClient
. - 5da3781: Fixes watch command running during deployments.
- Updated dependencies [1c4c390]
- Updated dependencies [b9d52a3]
- @renoun/[email protected]