Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 4ba3dff

Browse files
authored
Merge pull request #4581 from withspectrum/2.6.2
2.6.2
2 parents 9342550 + de0c832 commit 4ba3dff

File tree

19 files changed

+852
-93
lines changed

19 files changed

+852
-93
lines changed

api/mutations/thread/publishThread.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @flow
22
const debug = require('debug')('api:mutations:thread:publish-thread');
33
import stringSimilarity from 'string-similarity';
4+
import { convertToRaw } from 'draft-js';
45
import { stateFromMarkdown } from 'draft-js-import-markdown';
56
import type { GraphQLContext } from '../../';
67
import UserError from '../../utils/UserError';
@@ -71,11 +72,13 @@ export default requireAuth(
7172
type = 'DRAFTJS';
7273
if (thread.content.body) {
7374
thread.content.body = JSON.stringify(
74-
stateFromMarkdown(thread.content.body, {
75-
parserOptions: {
76-
breaks: true,
77-
},
78-
})
75+
convertToRaw(
76+
stateFromMarkdown(thread.content.body, {
77+
parserOptions: {
78+
breaks: true,
79+
},
80+
})
81+
)
7982
);
8083
}
8184
}

api/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"babel-preset-env": "^1.7.0",
1818
"backpack-core": "^0.8.3",
1919
"body-parser": "^1.18.3",
20-
"bull": "^3.5.2",
20+
"bull": "^3.6.0",
2121
"casual": "^1.5.12",
2222
"compression": "^1.7.3",
2323
"cookie-parser": "^1.4.3",
@@ -54,8 +54,8 @@
5454
"graphql-date": "^1.0.3",
5555
"graphql-depth-limit": "^1.1.0",
5656
"graphql-log": "^0.1.3",
57-
"graphql-rate-limit": "^1.1.0",
58-
"graphql-tools": "^4.0.3",
57+
"graphql-rate-limit": "^1.2.2",
58+
"graphql-tools": "^4.0.4",
5959
"helmet": "^3.15.0",
6060
"highlight.js": "^9.13.1",
6161
"history": "^4.6.1",
@@ -65,7 +65,7 @@
6565
"hpp": "^0.2.2",
6666
"hsts": "^2.1.0",
6767
"imgix-core-js": "^1.2.0",
68-
"immutability-helper": "^2.9.0",
68+
"immutability-helper": "^2.9.1",
6969
"ioredis": "3.2.2",
7070
"isomorphic-fetch": "^2.2.1",
7171
"iterall": "^1.2.2",
@@ -78,7 +78,7 @@
7878
"lodash": "^4.17.11",
7979
"lodash.intersection": "^4.4.0",
8080
"longjohn": "^0.2.12",
81-
"moment": "^2.23.0",
81+
"moment": "^2.24.0",
8282
"ms": "^2.1.1",
8383
"node-env-file": "^0.1.8",
8484
"node-localstorage": "^1.3.1",

api/yarn.lock

Lines changed: 87 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ binary@~0.3.0:
22382238
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
22392239
integrity sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=
22402240

2241-
"bluebird@>= 3.0.1", bluebird@^3.3.4, bluebird@^3.5.1, bluebird@^3.5.3:
2241+
"bluebird@>= 3.0.1", bluebird@^3.3.4, bluebird@^3.5.1:
22422242
version "3.5.3"
22432243
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.3.tgz#7d01c6f9616c9a51ab0f8c549a79dfe6ec33efa7"
22442244
integrity sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==
@@ -2477,17 +2477,19 @@ builtin-status-codes@^3.0.0:
24772477
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
24782478
integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=
24792479

2480-
bull@^3.5.2:
2481-
version "3.5.2"
2482-
resolved "https://registry.yarnpkg.com/bull/-/bull-3.5.2.tgz#9c85f205b17686efab2ee28aaa4388887360de32"
2483-
integrity sha512-tuL4Uj0kUeaQ7Cow3POkca20fk+VSsR8AiTFeNkyMmuicBnE1ZMwvF1NRDY7vIH43pD9PiMCSEP4Li/934Pw1w==
2480+
bull@^3.6.0:
2481+
version "3.6.0"
2482+
resolved "https://registry.yarnpkg.com/bull/-/bull-3.6.0.tgz#9d137a4470d9f5a0df54801ca4390656e5054a42"
2483+
integrity sha512-705Vf3weiRr8D49/+lsPSxV/1NejhjfmVviv9qG2srIYPr7IS2euLwHa+2GNfaVDA2tmx8xyJFW9bPw3fPfHPg==
24842484
dependencies:
2485-
bluebird "^3.5.3"
2486-
cron-parser "^2.5.0"
2485+
cron-parser "^2.7.3"
24872486
debuglog "^1.0.0"
2488-
ioredis "^3.1.4"
2487+
ioredis "^4.5.1"
24892488
lodash "^4.17.11"
2489+
p-timeout "^2.0.1"
2490+
promise.prototype.finally "^3.1.0"
24902491
semver "^5.6.0"
2492+
util.promisify "^1.0.0"
24912493
uuid "^3.2.1"
24922494

24932495
busboy@^0.2.14:
@@ -3018,7 +3020,7 @@ create-react-class@^15.6.0:
30183020
loose-envify "^1.3.1"
30193021
object-assign "^4.1.1"
30203022

3021-
cron-parser@^2.5.0:
3023+
cron-parser@^2.7.3:
30223024
version "2.7.3"
30233025
resolved "https://registry.yarnpkg.com/cron-parser/-/cron-parser-2.7.3.tgz#12603f89f5375af353a9357be2543d3172eac651"
30243026
integrity sha512-t9Kc7HWBWPndBzvbdQ1YG9rpPRB37Tb/tTviziUOh1qs3TARGh3b1p+tnkOHNe1K5iI3oheBPgLqwotMM7+lpg==
@@ -3767,7 +3769,19 @@ es-abstract@^1.5.1:
37673769
is-callable "^1.1.3"
37683770
is-regex "^1.0.4"
37693771

3770-
es-to-primitive@^1.1.1:
3772+
es-abstract@^1.9.0:
3773+
version "1.13.0"
3774+
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9"
3775+
integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==
3776+
dependencies:
3777+
es-to-primitive "^1.2.0"
3778+
function-bind "^1.1.1"
3779+
has "^1.0.3"
3780+
is-callable "^1.1.4"
3781+
is-regex "^1.0.4"
3782+
object-keys "^1.0.12"
3783+
3784+
es-to-primitive@^1.1.1, es-to-primitive@^1.2.0:
37713785
version "1.2.0"
37723786
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377"
37733787
integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==
@@ -4589,13 +4603,14 @@ graphql-log@^0.1.3:
45894603
deep-for-each "^1.0.6"
45904604
is-function "^1.0.1"
45914605

4592-
graphql-rate-limit@^1.1.0:
4593-
version "1.1.0"
4594-
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.1.0.tgz#209462f8f978e820a4c8e5b61622277e246388a5"
4595-
integrity sha512-xBEmAu2pE3coAqEhG5WbGnn9FxP9T40SpSpuej96hfgdy+ZhZytxLQphl5pN1mERjGR2L+nzPkZ/l4EaE787OA==
4606+
graphql-rate-limit@^1.2.2:
4607+
version "1.2.2"
4608+
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.2.tgz#4c97e7bcb5b8c8ca1ee67aaf194d22b88bba6f53"
4609+
integrity sha512-Osns7iZkKLAANZokorAKKIehQ3Wm03nXts2aBBy15r/QhKTNPxVwc71sXTn3IPJ7SzAfoARvPN1Jm3bmblHtiQ==
45964610
dependencies:
45974611
"@types/redis-mock" "^0.17.0"
45984612
graphql-tools "^4.0.3"
4613+
lodash.get "^4.4.2"
45994614
ms "^2.1.1"
46004615

46014616
graphql-subscriptions@^1.0.0:
@@ -4621,6 +4636,17 @@ graphql-tools@^4.0.0, graphql-tools@^4.0.3:
46214636
iterall "^1.1.3"
46224637
uuid "^3.1.0"
46234638

4639+
graphql-tools@^4.0.4:
4640+
version "4.0.4"
4641+
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.4.tgz#ca08a63454221fdde825fe45fbd315eb2a6d566b"
4642+
integrity sha512-chF12etTIGVVGy3fCTJ1ivJX2KB7OSG4c6UOJQuqOHCmBQwTyNgCDuejZKvpYxNZiEx7bwIjrodDgDe9RIkjlw==
4643+
dependencies:
4644+
apollo-link "^1.2.3"
4645+
apollo-utilities "^1.0.1"
4646+
deprecated-decorator "^0.1.6"
4647+
iterall "^1.1.3"
4648+
uuid "^3.1.0"
4649+
46244650
graphql-upload@^8.0.2:
46254651
version "8.0.2"
46264652
resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-8.0.2.tgz#1c1f116f15b7f8485cf40ff593a21368f0f58856"
@@ -4737,7 +4763,7 @@ has-values@^1.0.0:
47374763
is-number "^3.0.0"
47384764
kind-of "^4.0.0"
47394765

4740-
has@^1.0.1:
4766+
has@^1.0.1, has@^1.0.3:
47414767
version "1.0.3"
47424768
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
47434769
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
@@ -5008,10 +5034,10 @@ imgix-core-js@^1.2.0:
50085034
js-base64 "^2.1.9"
50095035
md5 "^2.2.1"
50105036

5011-
immutability-helper@^2.9.0:
5012-
version "2.9.0"
5013-
resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-2.9.0.tgz#04a1c646300cd3a68aa5dc1daa7758da2ca75292"
5014-
integrity sha512-2LYtDuGugMLyoFV0qGvblnq39E2VVQ9m4dDktlRLVBBVV1LnUMK0rlqkbtlUjfT1UJO876OobtPlNZTEbOOYVQ==
5037+
immutability-helper@^2.9.1:
5038+
version "2.9.1"
5039+
resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-2.9.1.tgz#71c423ba387e67b6c6ceba0650572f2a2a6727df"
5040+
integrity sha512-r/RmRG8xO06s/k+PIaif2r5rGc3j4Yhc01jSBfwPCXDLYZwp/yxralI37Df1mwmuzcCsen/E/ITKcTEvc1PQmQ==
50155041
dependencies:
50165042
invariant "^2.2.0"
50175043

@@ -5082,7 +5108,7 @@ invert-kv@^1.0.0:
50825108
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
50835109
integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY=
50845110

5085-
[email protected], ioredis@^3.1.4:
5111+
50865112
version "3.2.2"
50875113
resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-3.2.2.tgz#b7d5ff3afd77bb9718bb2821329b894b9a44c00b"
50885114
integrity sha512-g+ShTQYLsCcOUkNOK6CCEZbj3aRDVPw3WOwXk+LxlUKvuS9ujEqP2MppBHyRVYrNNFW/vcPaTBUZ2ctGNSiOCA==
@@ -5127,6 +5153,22 @@ ioredis@^4.0.0:
51275153
redis-parser "^3.0.0"
51285154
standard-as-callback "^1.0.0"
51295155

5156+
ioredis@^4.5.1:
5157+
version "4.5.1"
5158+
resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-4.5.1.tgz#b1c1c1657697caa3a617acb9370e3c0694edb775"
5159+
integrity sha512-p1BblrFZdb5Oc5EBsEb4EoycDqn7xi/NTNT4bDvo/w6B08eMNO1E7RAOOEA1GAb65+8Hbs2LgUyz3cZOTiP3xg==
5160+
dependencies:
5161+
cluster-key-slot "^1.0.6"
5162+
debug "^3.1.0"
5163+
denque "^1.1.0"
5164+
flexbuffer "0.0.6"
5165+
lodash.defaults "^4.2.0"
5166+
lodash.flatten "^4.4.0"
5167+
redis-commands "1.4.0"
5168+
redis-errors "^1.2.0"
5169+
redis-parser "^3.0.0"
5170+
standard-as-callback "^1.0.0"
5171+
51305172
51315173
version "1.8.0"
51325174
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.0.tgz#eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e"
@@ -6225,6 +6267,11 @@ lodash.foreach@^4.5.0:
62256267
resolved "https://registry.yarnpkg.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz#1a6a35eace401280c7f06dddec35165ab27e3e53"
62266268
integrity sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM=
62276269

6270+
lodash.get@^4.4.2:
6271+
version "4.4.2"
6272+
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
6273+
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=
6274+
62286275
lodash.includes@^4.3.0:
62296276
version "4.3.0"
62306277
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
@@ -6667,10 +6714,10 @@ moment-timezone@^0.5.23:
66676714
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
66686715
integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=
66696716

6670-
moment@^2.23.0:
6671-
version "2.23.0"
6672-
resolved "https://registry.yarnpkg.com/moment/-/moment-2.23.0.tgz#759ea491ac97d54bac5ad776996e2a58cc1bc225"
6673-
integrity sha512-3IE39bHVqFbWWaPOMHZF98Q9c3LDKGTmypMiTM2QygGXXElkFWIH7GxfmlwmY2vwa+wmNsoYZmG2iusf1ZjJoA==
6717+
moment@^2.24.0:
6718+
version "2.24.0"
6719+
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
6720+
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
66746721

66756722
move-concurrently@^1.0.1:
66766723
version "1.0.1"
@@ -7156,6 +7203,13 @@ p-timeout@^1.1.1:
71567203
dependencies:
71577204
p-finally "^1.0.0"
71587205

7206+
p-timeout@^2.0.1:
7207+
version "2.0.1"
7208+
resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-2.0.1.tgz#d8dd1979595d2dc0139e1fe46b8b646cb3cdf038"
7209+
integrity sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==
7210+
dependencies:
7211+
p-finally "^1.0.0"
7212+
71597213
p-try@^1.0.0:
71607214
version "1.0.0"
71617215
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
@@ -7510,6 +7564,15 @@ promise-inflight@^1.0.1:
75107564
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
75117565
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
75127566

7567+
promise.prototype.finally@^3.1.0:
7568+
version "3.1.0"
7569+
resolved "https://registry.yarnpkg.com/promise.prototype.finally/-/promise.prototype.finally-3.1.0.tgz#66f161b1643636e50e7cf201dc1b84a857f3864e"
7570+
integrity sha512-7p/K2f6dI+dM8yjRQEGrTQs5hTQixUAdOGpMEA3+pVxpX5oHKRSKAXyLw9Q9HUWDTdwtoo39dSHGQtN90HcEwQ==
7571+
dependencies:
7572+
define-properties "^1.1.2"
7573+
es-abstract "^1.9.0"
7574+
function-bind "^1.1.1"
7575+
75137576
promise@^6.0.0:
75147577
version "6.1.0"
75157578
resolved "https://registry.yarnpkg.com/promise/-/promise-6.1.0.tgz#2ce729f6b94b45c26891ad0602c5c90e04c6eef6"

chronos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
},
55
"dependencies": {
66
"aws-sdk": "^2.383.0",
7-
"bull": "^3.5.2",
7+
"bull": "^3.6.0",
88
"datadog-metrics": "^0.8.1",
99
"debug": "^4.1.1",
1010
"decode-uri-component": "^0.2.0",

0 commit comments

Comments
 (0)