Commit graph

74 commits

Author SHA1 Message Date
Hongbo Wu
def8f28138 Add Azure Speech Service dependencies 2022-08-18 19:24:38 +08:00
Hongbo Wu
77570aa5ab Synthesize text to speech with azure API 2022-08-18 19:24:36 +08:00
Hongbo Wu
bca0f5ed59 Create Amazon Polly text to speech integration 2022-08-18 19:23:41 +08:00
dependabot[bot]
9ded821d85
Bump @sentry/integrations from 6.19.6 to 7.10.0
Bumps [@sentry/integrations](https://github.com/getsentry/sentry-javascript) from 6.19.6 to 7.10.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.19.6...7.10.0)

---
updated-dependencies:
- dependency-name: "@sentry/integrations"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 02:16:56 +00:00
Jackson Harper
5de2d65ce4
Merge pull request #1052 from omnivore-app/dependabot/npm_and_yarn/sentry/tracing-7.9.0
Bump @sentry/tracing from 5.30.0 to 7.9.0
2022-08-15 10:14:54 +08:00
dependabot[bot]
858c91d814
Bump @sentry/tracing from 5.30.0 to 7.9.0
Bumps [@sentry/tracing](https://github.com/getsentry/sentry-javascript) from 5.30.0 to 7.9.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.30.0...7.9.0)

---
updated-dependencies:
- dependency-name: "@sentry/tracing"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 21:51:50 +00:00
Hongbo Wu
73bf695cf3 Add function to get highlight start location 2022-08-05 16:08:20 +08:00
Hongbo Wu
469910f2bd Add addressparser types dependency 2022-07-28 11:37:14 +08:00
Hongbo Wu
ec9247bc8a Add addressparser dependency 2022-07-28 10:44:44 +08:00
Jackson Harper
ca33f31ebb
Merge pull request #1014 from omnivore-app/dependabot/npm_and_yarn/opentelemetry/instrumentation-pg-0.30.0
Bump @opentelemetry/instrumentation-pg from 0.29.0 to 0.30.0
2022-07-26 16:11:46 -07:00
Hongbo Wu
7339a0daf3 add sinon and sinon-chai for faking sendMail 2022-07-25 15:12:55 -07:00
dependabot[bot]
9dbf9bce67
Bump @opentelemetry/instrumentation-pg from 0.29.0 to 0.30.0
Bumps [@opentelemetry/instrumentation-pg](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/host-metrics-v0.29.0...contrib-test-utils-v0.30.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-pg"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:29:38 +00:00
dependabot[bot]
b86d9a08b9
Bump @google-cloud/logging-winston from 4.2.2 to 5.1.1
Bumps [@google-cloud/logging-winston](https://github.com/googleapis/nodejs-logging-winston) from 4.2.2 to 5.1.1.
- [Release notes](https://github.com/googleapis/nodejs-logging-winston/releases)
- [Changelog](https://github.com/googleapis/nodejs-logging-winston/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/nodejs-logging-winston/compare/v4.2.2...v5.1.1)

---
updated-dependencies:
- dependency-name: "@google-cloud/logging-winston"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 21:59:44 +00:00
Jackson Harper
b33f87c982
Merge pull request #943 from omnivore-app/dependabot/npm_and_yarn/opentelemetry/instrumentation-graphql-0.29.0
Bump @opentelemetry/instrumentation-graphql from 0.24.0 to 0.29.0
2022-07-12 09:32:35 -07:00
Jackson Harper
f7a023939d
Merge pull request #940 from omnivore-app/feature/allow-fetching-original 2022-07-11 22:08:27 -07:00
dependabot[bot]
87e4ea0d5c
Bump @opentelemetry/instrumentation-graphql from 0.24.0 to 0.29.0
Bumps [@opentelemetry/instrumentation-graphql](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/v0.24.0...host-metrics-v0.29.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-graphql"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 21:33:57 +00:00
dependabot[bot]
73f9f64aea
Bump @google-cloud/monitoring from 2.3.5 to 3.0.0
Bumps [@google-cloud/monitoring](https://github.com/googleapis/nodejs-monitoring) from 2.3.5 to 3.0.0.
- [Release notes](https://github.com/googleapis/nodejs-monitoring/releases)
- [Changelog](https://github.com/googleapis/nodejs-monitoring/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/nodejs-monitoring/compare/v2.3.5...v3.0.0)

---
updated-dependencies:
- dependency-name: "@google-cloud/monitoring"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 02:50:23 +00:00
Jackson Harper
9f007d72d2
Merge pull request #892 from omnivore-app/dependabot/npm_and_yarn/opentelemetry/instrumentation-dns-0.29.0
Bump @opentelemetry/instrumentation-dns from 0.27.1 to 0.29.0
2022-07-10 19:48:26 -07:00
Jackson Harper
9feeb80cf3 Allow fetching original content
This is useful when debugging
2022-07-09 14:35:14 -07:00
Jackson Harper
c94d5db259
Merge pull request #889 from omnivore-app/dependabot/npm_and_yarn/axios-0.27.2
Bump axios from 0.26.0 to 0.27.2
2022-07-08 13:48:27 -07:00
dependabot[bot]
a4219ac15c
Bump googleapis from 100.0.0 to 105.0.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 100.0.0 to 105.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v100.0.0...googleapis-v105.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 21:40:35 +00:00
dependabot[bot]
33d94edfac
Bump @opentelemetry/instrumentation-dns from 0.27.1 to 0.29.0
Bumps [@opentelemetry/instrumentation-dns](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.27.1 to 0.29.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/host-metrics-v0.27.1...host-metrics-v0.29.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-dns"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 21:34:28 +00:00
dependabot[bot]
e91f25e58c
Bump axios from 0.26.0 to 0.27.2
Bumps [axios](https://github.com/axios/axios) from 0.26.0 to 0.27.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.27.2/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.26.0...v0.27.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 21:31:14 +00:00
Jackson Harper
189f95d14b Use mocha-unfunk-reporter with the API tests
This should give us better reporting of failures in GitHub
Actions.
2022-06-24 11:55:29 -07:00
dependabot[bot]
e22b575759
Bump @opentelemetry/core from 0.24.0 to 1.3.1
Bumps [@opentelemetry/core](https://github.com/open-telemetry/opentelemetry-js) from 0.24.0 to 1.3.1.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/commits)

---
updated-dependencies:
- dependency-name: "@opentelemetry/core"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 21:26:08 +00:00
dependabot[bot]
cfbfed300f
Bump @opentelemetry/instrumentation-grpc from 0.27.0 to 0.29.2
Bumps [@opentelemetry/instrumentation-grpc](https://github.com/open-telemetry/opentelemetry-js) from 0.27.0 to 0.29.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/commits)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-grpc"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 16:34:22 +00:00
dependabot[bot]
726e918791
Bump @opentelemetry/instrumentation-pg from 0.24.0 to 0.29.0
Bumps [@opentelemetry/instrumentation-pg](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.24.0 to 0.29.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/v0.24.0...contrib-test-utils-v0.29.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-pg"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 21:21:03 +00:00
Hongbo Wu
304fe70113 Fix tests 2022-06-01 10:30:23 +08:00
dependabot[bot]
cf516bba54
Bump ts-loader from 8.3.0 to 9.3.0
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.3.0 to 9.3.0.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.3.0...v9.3.0)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 21:20:01 +00:00
Hongbo Wu
0b11c31317 Add linkedom dependency in packages/api 2022-05-10 18:31:25 +08:00
Hongbo Wu
93ed1936f0 Remove jsdom in packages/api 2022-05-10 17:12:52 +08:00
dependabot[bot]
1b27bf1f4b
Bump cookie from 0.4.2 to 0.5.0
Bumps [cookie](https://github.com/jshttp/cookie) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Changelog](https://github.com/jshttp/cookie/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/cookie/compare/v0.4.2...v0.5.0)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-21 01:43:26 +00:00
Hongbo Wu
83cdec42f7
Add rate limiter for api request (#454)
* Add rate limiter for api request

* apply rate limit on Demo/Prod
2022-04-21 09:41:33 +08:00
Jackson Harper
035b61665d
Merge pull request #376 from omnivore-app/dependabot/npm_and_yarn/googleapis-100.0.0
Bump googleapis from 59.0.0 to 100.0.0
2022-04-12 08:47:11 -07:00
Hongbo Wu
ae0d1dd2ee
Feature/search highlights backend (#395)
* add highlight mappings

* return highlight in resolvers

* temporarily skip highlight tests

* add test for getting highlights

* update merge highlight

* separate elastic methods

* roll back merge highlight test

* add highlight to elastic script

* update delete highlight in elastic

* migrate highlight data from postgres to elastic

* rescue not found exception when page is not found in the migration script

* exclude highlights in searching pages results

* search pages with highlights only with has:highlight query

* add search endpoint to search pages or highlights

* reduce code smell in search api

* fix rebase error

* fix tests

* add test for search highlight

* add test for new search endpoint

* add labels to search results

* update schema

* update search query

* fix update/share highlights

* fix rebase error

* fix tests

* add highlight model in elastic

* add savedAt and publishedAt date range in search query

* add sort by updated and recently read

* fix tests

* close db connection when tests are done

* test github action

* revert github action test

* fix rebase error

* add docker-compose for api-test

* remove unused env

* remove highlights with no page attached to

* allow get_articles resolver to search for query so we can merge it without web changes
2022-04-12 12:31:08 +08:00
Jackson Harper
26bff1b25d Pin yarn version w/volta 2022-04-06 10:06:24 -07:00
Jackson Harper
63a374b31d package syntax 2022-04-06 10:05:06 -07:00
Jackson Harper
1bac06107d Update volta version 2022-04-06 10:04:04 -07:00
Hongbo Wu
7569e988bf
upgrade typeorm to 3.0 (#359)
* upgrade typeorm to 3.0

* use new datasource object in typeorm 3

* fix tests

* fix tests

* migrate before creating connection

* fail the test if migration failed
2022-04-06 10:32:41 +08:00
dependabot[bot]
8df6e750dc
Bump googleapis from 59.0.0 to 100.0.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 59.0.0 to 100.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/v59.0.0...googleapis-v100.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 22:36:25 +00:00
Jackson Harper
62c3bcd968
Merge pull request #338 from omnivore-app/dependabot/npm_and_yarn/opentelemetry/semantic-conventions-1.0.1
Bump @opentelemetry/semantic-conventions from 0.24.0 to 1.0.1
2022-04-04 15:35:51 -07:00
dependabot[bot]
3b4254a711
Bump luxon from 1.28.0 to 2.3.1
Bumps [luxon](https://github.com/moment/luxon) from 1.28.0 to 2.3.1.
- [Release notes](https://github.com/moment/luxon/releases)
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moment/luxon/compare/1.28.0...2.3.1)

---
updated-dependencies:
- dependency-name: luxon
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 17:55:59 +00:00
Jackson Harper
46c5b8c82a Another attempt at slimming docker file 2022-04-04 10:42:04 -07:00
Jackson Harper
946734d76c Revert docker changes
These were creating fatter images than we want because of the
lerna dependencies.
2022-04-04 09:59:18 -07:00
Jackson Harper
b8b471d369 Move @types into dev 2022-04-04 08:17:00 -07:00
Jackson Harper
fc17daa546 Remove unneeded mocha params 2022-04-02 17:02:11 -07:00
Jackson Harper
da28998130 Pull ul list out of newsletter blurb
next/react doesnt want child elements of the paragraphs

Improve formatting

Improve wording

Use buttons in the subscribe directly blocks

Simplify docs on setting up forwarding rules

Add extra padding on bottom of help docs

Remove unused style

Add emails help page

Improve formatting

Prefetch page content on iOS

Reduce the reader overly length now that items are precached

Add invalidation when highlights are added to items

fix missing index_settings.json file in api dockerfile for creating elastic index (#363)

Handle full email address objects in the to param from sendgrid

These come in a format like:

"jacksonh-dfdf@inbox.omnivore.app" <jacksonh-dfdf@inbox-demo.omnivore.app>

New IDs for short highlights because they dont cascade delete now

Testing CI issues

Simplify test

CI test

Use promises for async tests

Temporarily remove test to debug CI

Re-enable

re-enable test, return error

Specify a userId when looking up saved email pages

create a unique url for newsletters without a URL

Use 500ms on page test timeouts

Increase timeout

Dont use deep equal to match newsletter label

Run just the labels API

Run against just the newsletter emails

Run without the page tests

Fix

Set the allow uncaught flag

Remove highlight tests

Remove newsletters tests

more resolver tests

Remove newsetter tests

Comment out resolver tests

Use nock for external requests in tests

Specify puppeteer url for tests

Comment out more tests

uncomment tests

re-enable

re-enable email test

Re-disable

Re-enable one pdf attachment test

Re-disable pdf attachment test

Use promises on setTimeout tests

rm label tests

mv label tests into a context

Comment out pdf tests

Comment out pdf tests

Async test

Async wrappers

Delay when creating test pages

More debugging

Unique short ids

Remove potentially problematic test

Fetch page before returning for test

handler in before block

more debugging

More debugging

Move errors checks into contexts

Use a context when saving newsletters to force index refresh

Prettier fix

Fix newsletter label check, remove setTimeout

Re-enable test

timeout on pdf router handler

Fix method call

comment out PDF test

Unique fake username

Comment out PDF test

Debugging signed urls

Re-enable

New email

pdf test

PDF tests

Comment out pdf test

Add nock stubs for email URLs

Use full address for PDF test

Remove debug

Use full email addresses
2022-04-02 16:56:24 -07:00
dependabot[bot]
d0af8b2186
Bump @opentelemetry/semantic-conventions from 0.24.0 to 1.0.1
Bumps [@opentelemetry/semantic-conventions](https://github.com/open-telemetry/opentelemetry-js) from 0.24.0 to 1.0.1.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/v0.24.0...stable/v1.0.1)

---
updated-dependencies:
- dependency-name: "@opentelemetry/semantic-conventions"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 21:28:57 +00:00
Jackson Harper
5036924b21
Merge pull request #280 from omnivore-app/dependabot/npm_and_yarn/jsdom-19.0.0
Bump jsdom from 16.7.0 to 19.0.0
2022-03-25 09:08:55 -07:00
dependabot[bot]
3ec6f22199
Bump jsdom from 16.7.0 to 19.0.0
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.7.0 to 19.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.7.0...19.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 18:51:08 +00:00