Commit Graph

80 Commits

Author SHA1 Message Date
fe42746bcc Fix redis dependency 2022-09-21 12:57:55 +08:00
b6cc41967e Add node-redis package 2022-09-15 19:15:51 +08:00
9117bd668d Update dependencies 2022-09-07 18:20:10 +08:00
33cf975b0e Add dependencies on html-to-text and natural 2022-09-07 15:16:16 +08:00
795ca47414 Save wordsCount when page is created 2022-09-06 10:19:58 +08:00
3953a9098e Send SSML items in the synthesis API 2022-09-02 15:33:00 +08:00
def8f28138 Add Azure Speech Service dependencies 2022-08-18 19:24:38 +08:00
77570aa5ab Synthesize text to speech with azure API 2022-08-18 19:24:36 +08:00
bca0f5ed59 Create Amazon Polly text to speech integration 2022-08-18 19:23:41 +08:00
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
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
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
73bf695cf3 Add function to get highlight start location 2022-08-05 16:08:20 +08:00
469910f2bd Add addressparser types dependency 2022-07-28 11:37:14 +08:00
ec9247bc8a Add addressparser dependency 2022-07-28 10:44:44 +08:00
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
7339a0daf3 add sinon and sinon-chai for faking sendMail 2022-07-25 15:12:55 -07:00
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
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
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
f7a023939d Merge pull request #940 from omnivore-app/feature/allow-fetching-original 2022-07-11 22:08:27 -07:00
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
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
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
9feeb80cf3 Allow fetching original content
This is useful when debugging
2022-07-09 14:35:14 -07:00
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
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
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
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
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
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
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
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
304fe70113 Fix tests 2022-06-01 10:30:23 +08:00
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
0b11c31317 Add linkedom dependency in packages/api 2022-05-10 18:31:25 +08:00
93ed1936f0 Remove jsdom in packages/api 2022-05-10 17:12:52 +08:00
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
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
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
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
26bff1b25d Pin yarn version w/volta 2022-04-06 10:06:24 -07:00
63a374b31d package syntax 2022-04-06 10:05:06 -07:00
1bac06107d Update volta version 2022-04-06 10:04:04 -07:00
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
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
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
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
46c5b8c82a Another attempt at slimming docker file 2022-04-04 10:42:04 -07:00
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