feat: export everything from 'snabbdom'
ISSUES CLOSED: #913, #748 BREAKING CHANGE: The imports of snabbdom functions have changed. Every file in the project had to be imported on its own, e.g. ``` import { h } from 'snabbdom/h' import { VNode } from 'snabbdom/vnode' ``` Now, the main snabbdom package exports all of the public API like ``` import { h, VNode } from 'snabbdom' ``` This means consumers of the snabbdom package need to update their imports. The change makes the use of the `exports` field in `package.json` unnecessary, which caused issues for TypeScript userspull/948/head
parent
a1e505370d
commit
7af7e3f684
@ -0,0 +1,30 @@
|
||||
// core
|
||||
export { DOMAPI, htmlDomApi } from './htmldomapi';
|
||||
export { init } from './init';
|
||||
export { ThunkData, Thunk, ThunkFn, thunk } from './thunk';
|
||||
export { Key, VNode, VNodeData, vnode } from './vnode';
|
||||
|
||||
// helpers
|
||||
export { AttachData, attachTo } from './helpers/attachto';
|
||||
export { array, primitive } from './is';
|
||||
export { toVNode } from './tovnode';
|
||||
export {
|
||||
VNodes,
|
||||
VNodeChildElement,
|
||||
ArrayOrElement,
|
||||
VNodeChildren,
|
||||
h,
|
||||
} from './h';
|
||||
|
||||
// types
|
||||
export * from './hooks';
|
||||
export { Module } from './modules/module';
|
||||
|
||||
// modules
|
||||
export { Attrs, attributesModule } from './modules/attributes';
|
||||
export { Classes, classModule } from './modules/class';
|
||||
export { Dataset, datasetModule } from './modules/dataset';
|
||||
export { On, eventListenersModule } from './modules/eventlisteners';
|
||||
export { Hero, heroModule } from './modules/hero';
|
||||
export { Props, propsModule } from './modules/props';
|
||||
export { VNodeStyle, styleModule } from './modules/style';
|
Loading…
Reference in New Issue