Commit graph

321 commits

Author SHA1 Message Date
Michael Grinich 8bd013e9e9 Update docs config
- Don't ignore built class docs
- pin requirement versions for docs
- update docs build instructions
- update repo URL
2017-01-30 13:05:36 -08:00
Evan Morikawa bf0aa51148 fix(rename): update nylas/N1 to nylas/nylas-mail Github references 2017-01-30 11:50:39 -08:00
Michael Grinich 05da3a6c0d Update documentation with GitBook 2017-01-30 02:38:37 -08:00
Juan Tejada f6b4cfdacb bump(version) 1.0.17 2017-01-27 12:51:49 -08:00
Evan Morikawa dfc09254e6 bump(version): 1.0.16 2017-01-27 10:11:27 -05:00
Juan Tejada 5a67198226 bump(version) 1.0.15 2017-01-25 16:47:04 -08:00
Evan Morikawa 14514a3413 fix(specs): change spec scheduler back to setTimeout
Summary:
Adds a new `npm run test-window` that will launch specs in a window so you
can use the debugger

The spec window wouldn't close because `onbeforeunload` was unnecessarily
preventing close. This circumvents this in spec mode.

Most significantly I discovered we can't use the synchronous timer for the
promise scheduler anymore. Suppose you do:

```
it('should error', async () => {
  try {
    await doSomething()
    throw new Error("doSomething should have thrown!")
  } catch (err) {
    expect(err.message).toMatch(/my message/)
  }
})
```

The way async/await is transpiled, when `doSomething` throws, the error
will propagate all the way back up to the uncaughtPromiseException handler
before the `catch` gets called and registered. The transpilation method
assumes that when the function gets executed it can synchrously advance
beyond the call before the `then` or `catch` resolve. When the promise
scheduler is synchronous this doesn't happen.

I chose to use `setTimeout` instead of `process.nextTick` or
`setImmediate` as the promise scheduler. `setTimeout` seems to work better
with Chrome's async function call stacks. `nextTick` and `setImmediate`,
being Node methods, skip Chrome's async watchers.

Test Plan:
I talked with Juan about these changes, in an upcoming diff he will be
testing these in the context of our broader test suite.

Reviewers: mark, khamidou, halla, spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3779
2017-01-25 17:43:11 -05:00
Juan Tejada be99845d41 bump(version) 1.0.14 2017-01-25 12:28:47 -08:00
Evan Morikawa 77bc501eb7 bump(spellcheck) upgrade to 1.0.0
Summary: This bumps the spellcheck and restores the specs

Test Plan:
Manually open a composer, type some text and ensure it underlines them as
misspelled. Also restore test coverage

Reviewers: mark, halla, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3776
2017-01-25 15:26:38 -05:00
Evan Morikawa 313bd18913 bump(version): 1.0.13 2017-01-25 10:20:52 -05:00
Juan Tejada 5ed1f4da9e 🎨 Fix to using imap-provider-settings package
Summary: see title

Test Plan: manual

Reviewers: spang, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3772
2017-01-24 16:25:03 -08:00
Evan Morikawa 2e7e8c2d01 fix(build): add output log interval to prevent travis from dying 2017-01-24 14:27:32 -05:00
Evan Morikawa 677b56f714 feat(build) add npm run local-ci 2017-01-24 14:09:17 -05:00
Evan Morikawa d96672ab57 bump(version): 1.0.12 2017-01-24 12:23:25 -05:00
Evan Morikawa 5fe0650058 bump(version): 1.0.11 2017-01-20 13:55:57 -08:00
Halla Moore 0bd7ecd740 bump(version) 2017-01-19 11:39:50 -08:00
Evan Morikawa fc3e891fe9 bump(version): 1.0.9 2017-01-17 16:33:16 -08:00
Evan Morikawa 0b700c424c bump(version): 1.0.8 2017-01-16 20:21:39 -08:00
Evan Morikawa 964cb3bd86 bump(version): 1.0.7 2017-01-16 18:36:16 -08:00
Evan Morikawa 238c986c46 bump(version): 1.0.6 2017-01-16 10:48:05 -08:00
Evan Morikawa d4e2f71f15 bump(version): 1.0.5 2017-01-15 17:53:47 -08:00
Evan Morikawa 0be3b91ff4 bump(version): 1.0.4 2017-01-15 15:23:27 -08:00
Evan Morikawa cd25918955 bump(version): 1.0.3 2017-01-14 17:51:39 -08:00
Evan Morikawa e5e01e2834 bump(version): 1.0.2 2017-01-13 19:31:43 -08:00
Evan Morikawa 3f15112b8d bump(version): 1.0.1 2017-01-13 19:03:22 -08:00
Karim Hamidou 4fd976167a Bump to version 1.0 2017-01-13 13:28:39 -08:00
Evan Morikawa 61f7a62c5a bump(version): 0.5.11 2017-01-13 12:20:07 -08:00
Evan Morikawa e7ac46d5b4 bump(version): 0.5.10 2017-01-12 12:09:53 -08:00
Jackie Luo 78a7388318 🎨(rename): Update Nylas N1 to Nylas Mail
Test Plan: Tested locally.

Reviewers: halla, juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3645
2017-01-12 12:05:44 -08:00
Evan Morikawa 71c00776ff bump(version): 0.5.9 2017-01-10 18:25:30 -08:00
Juan Tejada d15272c3dc bump(version) 0.5.8 2017-01-10 15:31:05 -08:00
Juan Tejada ce9057cc8c bump(version) 0.5.7 2017-01-10 14:51:09 -08:00
Juan Tejada e6b4cd135a bump(electron) 2017-01-10 14:16:11 -08:00
Evan Morikawa 0c8c37d18d bump(version): 0.5.6 2017-01-10 12:15:22 -08:00
Evan Morikawa 0bcda05832 bump(version): 0.5.5 2017-01-09 15:20:40 -08:00
Juan Tejada aadb1182c0 [local-sync] Make the sync loop interruptible
Summary:
This commit introduces interruptible sync operations. Now, the `SyncWorker`, `FetchFolderList` operation and `FetchMessagesInFolder` operation can be interrupted at several p

To achieve this, this commit adds an Interruptible abstraction, which is an object that can run functions and interrupt them at points marked by the function. For more info o

This commit also splits up the SyncWorker a little bit to make it smaller, byadding a SyncbackTaskWorker.

Test Plan: manual

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3613
2017-01-09 14:42:57 -08:00
Evan Morikawa c0e2943c26 bump(version): 0.5.4 2017-01-09 09:46:31 -08:00
Evan Morikawa b8f126d45b bump(version): 0.5.3 2017-01-06 15:58:04 -08:00
Juan Tejada 1ad337d345 fix(deps) Correctly fix debug version 2017-01-04 10:33:37 -08:00
Juan Tejada 22e4327cb0 fix(deps) Fix debug to v2.4.5. See #3139 2017-01-03 17:36:47 -08:00
Evan Morikawa 0e36afa05e bump(version): 0.5.2 2017-01-03 09:32:59 -08:00
Evan Morikawa baa9d7d363 bump(version): 0.5.1 2016-12-22 09:36:07 -08:00
Evan Morikawa fd8949e9f2 bump(version): 0.5.0 2016-12-19 09:35:21 -08:00
Evan Morikawa f34a8f8f0a feat(babel): bump local babel and update K2 to use babel toolchain 2016-12-16 13:08:52 -05:00
Evan Morikawa f7491d7e7b bump(bluebird): upgrade bluebird
Summary:
I upgraded bluebird because I thought there was some missing dependency
issue when I booted K2. It actually turned out that the issue was missing
`striptags` require in the K2 local-sync package json and had nothing to
do with Bluebird.

But since were here and about to QA I figured I might as well bump it
anyway. Especially since I'll need it later to better diagnose async
tests.

I carefully went through the 3.0 changelog and believe I fixed the
outstanding issues

Test Plan: manual

Reviewers: juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3523
2016-12-15 17:33:37 -05:00
Evan Morikawa dd2acf4b74 bump(electron): to 1.4.12 from 1.4.5 2016-12-15 13:24:28 -05:00
Ben Gotow d4b7f3ee15 bump(version): 0.4.400 2016-11-21 16:38:29 -08:00
Juan Tejada ebfe24a648 bump(version): 0.4.205 2016-11-18 11:02:07 -08:00
Evan Morikawa 8489ee59c7 feat(lint): upgrade linter and add exceptions for dumb new rules 2016-11-15 09:56:39 -08:00
Evan Morikawa 8775876c4a feat(lint): add eslint_d to package.json 2016-11-15 09:22:46 -08:00