Releases: pmndrs/react-nil
Releases · pmndrs/react-nil
v2.0.0
What's Changed
- feat!: React 19 by @CodyJasonBennett in #19
This release adds support for React 19, and removes its own act
export in favor of React.act
.
Any augmentations or references to global JSX are now to be included in the react
module. You can check out the React 19 changelog here.
import { useState, useEffect, act } from 'react'
import { render } from 'react-nil'
declare module 'react' {
namespace JSX {
interface IntrinsicElements {
timestamp: Record<string, unknown>
}
}
}
function Test() {
const [value, setValue] = useState(-1)
useEffect(() => setValue(Date.now()), [])
return <timestamp value={value} />
}
const container = await act(async () => render(<Test />))
// { type: 'timestamp', props: { value: number }, children: [] }
console.log(container.head)
Full Changelog: v1.3.1...v2.0.0
v1.3.1
What's Changed
- fix: narrow React range for 18 reconciler by @CodyJasonBennett in #21
Full Changelog: v1.3.0...v1.3.1
v1.3.0
v1.2.0
v1.1.2
What's Changed
- fix: safely handle internal props by @CodyJasonBennett in #15
- fix(types): act should infer return type by @CodyJasonBennett in #16
Full Changelog: v1.1.1...v1.1.2
v1.1.1
What's Changed
- fix: pool containers, mutate props on update by @CodyJasonBennett in #14
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
- feat: return JSON tree from
render
by @CodyJasonBennett in #12
Full Changelog: v1.0.1...v1.1.0
v1.0.1
What's Changed
- fix: use explicit imports for ESM by @CodyJasonBennett in #11
Full Changelog: v1.0.0...v1.0.1
v1.0.0
What's Changed
- fix(deps): add scheduler and react-reconciler as dependencies by @CodyJasonBennett in #8
- refactor!: v1, add types, react 18 support by @CodyJasonBennett in #10
Full Changelog: v0.0.3...v1.0.0