33 Commits

Author SHA1 Message Date
Jovi De Croock
943fa26262 Add flags for component type (#4867)
* Add flags for component type

* Add bit flags for pending error

* Migrate _force flag

* Add _dirty flag

* Save bytes by moving back to typeof
2025-08-05 22:08:54 +02:00
Marvin Hagemeister
0eaed43654 Remove csstype leftovers
Follow up to PR #2869
2022-02-20 10:08:06 +01:00
Andre Wiggins
4e7eacc41b Remove no longer needed prepare script 2020-12-19 19:23:53 -08:00
Marvin Hagemeister
62fab6f894 Inline csstype on build to be dependency free 2020-11-02 22:22:49 +01:00
Andre Wiggins
143d58d88b Upload build artifacts 2020-06-11 12:33:20 -07:00
Andre Wiggins
bf5d07132c Add initial explorations of tachometer benchmarks 2020-04-03 18:23:27 -07:00
jdecroock
1e4e4e8634 adding the package-lock.json 2020-01-16 22:14:07 +01:00
Jovi De Croock
1142fff2b8 (feat) - cleanup changing refs correctly (#2055)
* (feat) - cleanup changing refs correctly

* add test for ref ordering

* add ref to applyRef for children

* apply PR feedback

* remove unused var
2019-11-01 21:43:16 +01:00
38elements
1f598a7fde Reduce 3 bytes (#1466) 2019-03-27 17:07:30 +01:00
Marvin Hagemeister
d7bf0cbf38 Merge ceviche repo 2019-03-02 22:24:02 +01:00
Andre Wiggins
e7164d40e8 Enable code coverage (#105)
* Enable code coverage
* Update karma dev dependencies
* Use babel-plugin-istanbul to generate accurate html coverage reports
2018-10-11 08:55:24 -07:00
Andre Wiggins
d8cfab4ef7 Fix TS unit tests 2018-09-01 18:03:16 -07:00
Andre Wiggins
dc0aff6a24 Add .idea to gitignore 2018-09-01 16:34:31 -07:00
Leah
85be143b33 remove package.lock + add build to test + updates 2018-08-26 01:45:37 +02:00
Leah
afa51003e9 eslint fixes and ci thinger test 2018-08-25 23:38:07 +02:00
Jason Miller
46198c09ea ignore package lock 2018-07-15 13:28:34 -04:00
Marvin Hagemeister
031b53173f Ignore custom vscode or intellij editor settings 2018-03-11 12:02:54 +01:00
Georgios Valotasios
33f86d4021 Improve typescript types 2018-03-03 23:06:08 +01:00
Jason Miller
9ee3031345 ignore npm lockfile 2017-12-12 13:15:37 -05:00
Jason Miller
40a8231001 ITS ALIVE 2017-12-10 13:14:03 -05:00
Jason Miller
af01eacead interim 2017-10-21 20:32:53 -04:00
rmacklin
e29de9dc69 Revert "Add prepublishOnly script (#825)" (#839)
This reverts commit 56455738e5.

Unfortunately, this prepublishOnly script wasn't working properly. The
published package.json was still including the properties that were
supposed to be stripped out by this script, as seen here:
https://unpkg.com/preact@8.2.4/package.json

So instead, to solve #820, we moved the babel settings to a .babelrc
which is not included in the published package:
d6ab85cb12

Thus, we can remove this prepublishOnly script
2017-08-26 10:15:46 -04:00
Rubén Moya
56455738e5 Add prepublishOnly script (#825)
* Add prepublishOnly script

* Use normal function instead of arrow
2017-08-23 21:56:05 -04:00
Arthur Stolyar
eef7d70106 preact/debug ignore debug build artefacts 2017-04-22 08:55:07 +03:00
Jason Miller
ba6b42b689 Mangle internal properties to save some bytes. 2017-04-05 22:57:38 -04:00
Jason Miller
52351d3dff Remove preact/aliases, and export createElement() as an alias of h() by default. 2017-04-04 15:11:58 -04:00
Jason Miller
22bbfcb8c2 Little tweaks 👯 2016-10-11 08:24:35 -04:00
Robert Knight
68f22ebf12 Add React Developer Tools integration (#339)
* Implement React DevTools integration

Add an emulation of the interfaces exposed by React to the devtools,
enabling React DevTools to inspect the preact component tree.

* Add hooks for mounting, updating and unmounting components

Add hooks that can be used by debugging tools to respond to preact
components being mounted, updated or unmounted.

Note that updates are only reported for stateful components, since no
state is persisted in the application about functional components.

* Add polyfills for ES2015 Map class used in devtools integration

* Move devtools integration to a separate bundle

To enable using the React Developer Tools with preact without increasing
the size of the preact bundle, build the React DevTools integration
module as a separate bundle.

* Simplify setting functional component display names

Re-export the original name of a functional component via the
`displayName` static class property, which doesn't suffer from the
problem of being non-writable in certain environments.

* Build React dev tools integration as a UMD build

This allows the dev tools to be used with Preact without any module
bundler just by including preact(.min).js and devtools.js as script tags
and then invoking `preactDevTools.initDevTools()`.

eg:

```js
// Include preact.js / devtools.js via <script> tags

function Label({label}) {
	return preact.h('div',{},'Hello World');
}
preactDevTools.initDevTools();
preact.render(preact.h(Label), document.getElementById('app'));
```

* Add TypeScript definitions for preact/devtools

* Expose Preact component as _instance property

As suggested in https://github.com/developit/preact/pull/339#discussion_r82624951
expose the Preact component instance as the _instance property.

This enables calling methods on the component from the dev tools console
by selecting it in the React Dev Tools inspector and using `$r` in the
console.

* Initialize devtools automatically

Initialize the React Developer Tools integration automatically when
'preact/devtools' is required.

This makes for simpler usage for most users. Anyone who needs to be able
to unregister the devtools integration, such as the tests, can reach
into the module and invoke `initDevTools()` directly.
2016-10-10 19:57:42 -04:00
Nicolas Gasull
a5144c6398 Setup transpiling for preact aliases (#274) 2016-08-18 18:58:55 -04:00
billneff79
9a93a51f68 added test coverage with isparta-loader (#130) 2016-04-19 21:50:54 -04:00
Jason Miller
c27a07cf7b Tweaks to test harness and eslint config 2016-01-31 20:19:45 -05:00
Chris Shepherd
b04af374b6 Now transpiling to dist with rollup 2015-12-03 17:09:27 +00:00
Jason Miller
e9f1a5645e Initial commit 2015-09-10 22:43:47 -04:00