Brian Vaughn
66c9fedc34
Flow fixes
2019-08-20 13:33:33 -07:00
Brian Vaughn
2e549efae5
Moved DevTools custom Flow definitions
2019-08-20 11:37:31 -07:00
Brian Vaughn
4da836af71
Merged changes from 4.0.0 -> 4.0.5 from DevTools fork
2019-08-20 11:34:51 -07:00
Brian Vaughn
833f206348
Merge branch 'master' into devtools-v4-merge
2019-08-20 10:41:38 -07:00
bbolek
efa5dbe7a5
Update CHANGELOG.md ( #16439 )
...
* Update CHANGELOG.md
Fixed typo
2019-08-20 09:51:01 -07:00
Heaven
da0a47bec3
fix typo in CHNAGELOG.md ( #16447 )
2019-08-20 09:48:03 -07:00
Morgan McCauley
69aafbf4df
Fix spelling in react-devtools CHANGELOG.md ( #16448 )
2019-08-20 09:47:18 -07:00
Sebastian Markbåge
c80678c760
Add "hydrationOptions" behind the enableSuspenseCallback flag ( #16434 )
...
This gets invoked when a boundary is either hydrated or if it is deleted
because it updated or got deleted before it mounted.
2019-08-19 13:26:39 -07:00
Dan Abramov
2d68bd0960
Fix message loop behavior when host callback is cancelled ( #16407 )
...
* Add a regression test for cancelCallback with message loop
* If there's nothing scheduled, we're not running
* Add more tests from #16271
2019-08-19 21:20:21 +01:00
Dan Abramov
96eb703bbf
[ESLint] Forbid top-level use*() calls ( #16455 )
...
* Add a way to skip/only tests to RulesOfHooks test
* [ESLint] Forbid top-level use*() calls
* Add a regression test for logical expressions
This is not a change. Just adding more coverage.
2019-08-19 19:54:06 +01:00
Dan Abramov
56f93a7f38
Throw on unhandled SSR suspending ( #16460 )
...
* Throw on unhandled SSR suspending
* Add a nicer message when the flag is off
* Tweak internal refinement error message
2019-08-19 19:53:02 +01:00
Dominic Gannaway
dce430ad92
[Flare] Rework the responder dispatching/batching mechanism ( #16334 )
2019-08-19 19:22:46 +01:00
Brian Vaughn
6ae6a7c020
Updated React DevTools changelog for 4.0.5
2019-08-19 09:28:10 -07:00
Brian Vaughn
5441b094a4
4.0.4 -> 4.0.5
2019-08-19 09:26:55 -07:00
Nicolas Gallagher
56d1b0fb59
[react-events] DOM event testing library ( #16433 )
...
This patch formalizes the mock native events and event sequences used in unit tests.
The `createEventTarget` function returns an object that can be used to dispatch native event sequences on the target without having to manually do so across all the scenarios we need to account for. Unit tests can be written as if we were only working with PointerEvent, but they will dispatch realistic native event sequences based on the execution environment (e.g., is PointerEvent supported?) and pointer type.
```
describe.each(environments)('Suite', (hasPointerEvents) => {
beforeEach(() => {
// setup
});
test.each(pointerTypes)('Test', (pointerType) => {
const target = createEventTarget(node);
target.pointerdown({pointerType});
expect(callback).toBeCalled();
});
});
```
Every native event that is dispatched now includes a complete object by default. The properties of the events can be customized. Properties that shouldn't be relied on in responder implementations are excluded from the mock native events to ensure tests will fail. Equivalent properties are normalized across different event types, e.g., 'pointerId' is converted to 'identifier' before a TouchEvent is dispatched.
2019-08-19 09:21:55 -07:00
Brian Vaughn
d2456c7572
Fixed standalone target not properly serving backend over localhost:8097
2019-08-19 07:36:41 -07:00
Brian Vaughn
e89c19d16c
Added DevTools 4.0.4 CHANGELOG entry
2019-08-18 08:55:49 -07:00
Brian Vaughn
3c6a219466
4.0.3 -> 4.0.4
2019-08-18 08:45:52 -07:00
Brian Vaughn
d97af798d2
Updated DevTools CHANLOGE to add an unreleased change
2019-08-17 21:19:00 -07:00
Brian Vaughn
95ca079556
Fixed standalone bug that prevented backend from being served over localhost:8097
2019-08-17 21:11:10 -07:00
Brian Vaughn
21e793fb4f
Added 4.0.1, 4.0.2, and 4.0.3 changelog entries ( #16438 )
...
* Added 4.0.1, 4.0.2, and 4.0.3 changelog entries
* Added entry about Map/Set/Immutable
2019-08-17 11:47:38 -07:00
Brian Vaughn
95ffd3ccf8
4.0.2 -> 4.0.3
2019-08-17 11:31:31 -07:00
Dan Abramov
c1d3f7f1a9
[DevTools Changelog] Add a note on 4.0.2
2019-08-16 16:15:19 +01:00
Brian Vaughn
2bcc6c6d04
4.0.1 -> 4.0.2
2019-08-15 17:35:30 -07:00
Brian Vaughn
c100cc7b31
4.0.0 -> 4.0.1
2019-08-15 16:29:13 -07:00
Dan Abramov
6f86294e68
[DevTools Changelog] Add a note about restoring selection ( #16409 )
...
Also a tiny nit, "inline" spelling seems more common in this context. My eyes stumbled at it on every read.
2019-08-15 23:11:37 +01:00
Brian Vaughn
0763c48ed8
Bumped all versions to 4.0.0
2019-08-15 14:28:09 -07:00
Brian Vaughn
732f3a6ef1
4.0.0-alpha.9 -> 4.0.0-alpha.10
2019-08-15 11:26:04 -07:00
Brian Vaughn
600c57a9b9
Added OVERVIEW.md and updated CHANGELOG to point to it ( #16405 )
2019-08-15 11:22:11 -07:00
Brian Vaughn
db9e5c9715
Updated all GitHub links to point to React repo
2019-08-15 11:17:59 -07:00
Brian Vaughn
9b5985b3c1
Added release date to DevTools CHANGELOG
2019-08-15 10:40:59 -07:00
Nicolas Gallagher
ebd1f5ddb0
[react-events] Press: improve test coverage ( #16397 )
...
1. Run the tests in both an environment without PointerEvent and one with PointerEvent.
2. Improve test coverage to include both mouse and touch pointers.
3. Change 'Press' so that it only listens to either pointer events or fallbacks events.
2019-08-15 10:28:00 -07:00
Brian Vaughn
85fbe3be3f
Merge branch 'master' into devtools-v4-merge
2019-08-15 10:14:34 -07:00
Brian Vaughn
a9304e79d4
Add DevTools package placeholder package.json
2019-08-15 10:12:27 -07:00
Brian Vaughn
6edff8f5e1
Added CHANGELOG and READMEs for DevTools v4 NPM packages ( #16404 )
2019-08-15 10:06:16 -07:00
Brian Vaughn
7ce229d3b0
Made some incremental progress on Jest tests
2019-08-15 09:53:22 -07:00
Brian Vaughn
41db902ed4
Removed unused __TEST__ files
2019-08-14 19:03:32 -07:00
Brian Vaughn
a473dca59e
Merge branch 'master' into devtools-v4-merge
2019-08-14 14:01:46 -07:00
Dan Abramov
4ba1412305
Revert "[Scheduler] Profiling features ( #16145 )" ( #16392 )
...
This reverts commit a34ca7bce6 .
2019-08-14 20:02:41 +01:00
Brian Vaughn
4078167255
Removed (no longer necessary) node->node-events mapping
2019-08-14 11:43:59 -07:00
Brian Vaughn
d7ca8847f5
Add build-info.json to package files array for non-private DT packages
2019-08-14 11:40:09 -07:00
Brian Vaughn
39209dc5b5
Update react-devtools-inline to embed react-debug-tools since it's not published yet
2019-08-14 11:37:48 -07:00
Brian Vaughn
45dff31a75
Patched up react-devtools-core Webpack configs
2019-08-14 11:22:28 -07:00
Brian Vaughn
58b39c60db
Fixed web extensions
2019-08-14 10:33:33 -07:00
Brian Vaughn
30b8ef3756
Iterated on Webpack configs until I got the inline and shell packages seemingly working
2019-08-14 09:24:35 -07:00
Brian Vaughn
44e410900d
Merged master (with events -> legacy-events package rename)
2019-08-14 07:35:49 -07:00
Brian Vaughn
b1a03dfdc8
Rename legacy "events" package to "legacy-events" ( #16388 )
...
* Renamed 'events' package to 'legacy-events'
* Updated 'events' references to point to 'legacy-events'
2019-08-14 07:32:42 -07:00
Hristo Kanchev
9e64bf18e1
[eslint-plugin-react-hooks] Fixed crash when referencing arguments in arrow functions. ( #16356 )
...
* Fixed issue with def being undefined while referencing arguments.
* Removed todo comment.
* Skip exhaustive deps check if def is null.
* Fixed code formatting in ExhaustiveDeps.
* Removed unneeded comment in ExhaustiveDeps.
2019-08-14 14:44:06 +01:00
Simen Bekkhus and Sunil Pai
e308a037be
chore: make tests compatible with Jest 24 ( #15779 )
...
* chore: make tests compatible with Jest 24
* remove fake rafs
* rollback jsdom for localstorage compat
* Apply suggestions from code review
Co-Authored-By: Sunil Pai <threepointone@oculus.com >
* chore: cleanup lockfile
2019-08-14 12:32:26 +01:00
Simen Bekkhus
5fa99b5aa6
chore: add eslint-plugin-jest's valid-expect rule ( #16332 )
...
* chore: add eslint-plugin-jest's valid-expect rule
* update assertion
2019-08-14 11:51:01 +01:00