8000 Upgrade non-breaking JS dependencies (#14152) · arangodb/arangodb@f98dd99 · GitHub
[go: up one dir, main page]

Skip to content

Commit f98dd99

Browse files
authored
Upgrade non-breaking JS dependencies (#14152)
* Upgrade non-breaking JS dependencies accepts 1.3.5 -> 1.3.7 ansi_up 4.0.3 -> 5.0.1 chalk 1.1.3 -> 4.1.1 error-stack-parser 2.0.2 -> 2.0.6 highlight.js 9.15.6 -> 10.7.2 http-errors 1.7.2 -> 1.8.0 js-yaml 3.13.1 -> 4.1.0 lodash 4.17.13 -> 4.17.21 mime-types 2.1.22 -> 2.1.30 netmask 1.0.6 -> 2.0.2 qs 6.7.0 -> 6.10.1 range-parser 1.2.0 -> 1.2.1 timezone 1.0.22 -> 1.0.23 type-is 1.6.16 -> 1.6.18 underscore 1.9.1 -> 1.13.1 Closes #14120. * Downgrade js-yaml * Bump deps iconv-lite 0.4.24 -> 0.6.2 semver 6.0.0 -> 7.3.5 media-typer 0.3.0 -> content-type 1.0.4 * Add note to CHANGELOG * Add content-type license / remove media-typer license * Replace underscore imports with lodash But mostly it wasn't used at all so the useless imports have been removed. * Remove marked, underscore * Add note about underscore * Remove underscore/marked licenses * Update CHANGELOG * Add underscore back Apparently some of our demo services use this, breaking tests. * Fix Foxx type internals * Bump deps * npm audit fix * Keep mime type parameters * xmldom -> 0.6.0 (BREAKING) * Revert "Keep mime type parameters" This reverts commit 261df1d. This commit breaks shell-foxx-swagger-spec.js * Extract used parts of mocha * Convert to classes * Better module load error messages * Move mocha.js to mocha/index.js * Extract reporters, interfaces, utils * Remove mocha dep * Add mocha copyright headers * jslint * Add ms This is used by the mocha internals and was dropped in the rebase. * Restore cause attribute This previously broke a testcase. * Fix utils/jslint.sh * Fix test title * Fix missing reporters exports This is actually used in the Foxx HTTP API app.
1 parent 57cb9e5 commit f98dd99

File tree

2,585 files changed

+101250
-169350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,585 files changed

+101250
-169350
lines changed

CHANGELOG

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
devel
22
-----
3+
* Updated JavaScript dependencies, including breaking changes to non-public
4+
modules. We recommend always bundling your own copy of third-party modules,
5+
even ones listed as public.
6+
7+
- accepts: 1.3.5 -> 1.3.7
8+
- ansi_up: 4.0.3 -> 5.0.1
9+
- chalk: 1.1.3 -> 4.1.1
10+
- content-type: (added) -> 1.0.4
11+
- error-stack-parser: 2.0.2 -> 2.0.6
12+
- highlight.js: 9.15.6 -> 10.7.3
13+
- http-errors: 1.7.2 -> 1.8.0
14+
- iconv-lite: 0.4.24 -> 0.6.3
15+
- js-yaml: 3.13.1 -> 3.14.1
16+
- lodash: 4.17.13 -> 4.17.21
17+
- marked: 0.6.2 -> removed
18+
- media-typer: 0.3.0 -> removed
19+
- mime-types: 2.1.22 -> 2.1.31
20+
- mocha: 6.1.3 -> removed
21+
- netmask: 1.0.6 -> 2.0.2
22+
- qs: 6.7.0 -> 6.10.1
23+
- range-parser: 1.2.0 -> 1.2.1
24+
- semver: 6.0.0 -> 7.3.5
25+
- sinon: 1.17.6 -> 1.17.7
26+
- timezone: 1.0.22 -> 1.0.23
27+
- type-is: 1.6.16 -> 1.6.18
28+
- underscore: 1.9.1 -> 1.13.1
29+
- xmldom: 0.1.27 -> 0.6.0
30+
331
* Adapt various places related to handling of execution plans non-recursive
432
in order to avoid stack overflows. This allows us now to execute much larger
533
queries.
@@ -338,6 +366,32 @@ devel
338366
* Fixed ES-881: ensure that LDAP options for async, referrals and restart set
339367
the off value correctly. Otherwise, this can result in an "operations error".
340368

369+
* Updated JavaScript dependencies, including breaking changes to non-public
370+
modules. Note that this removes underscore, which was previously listed as a
371+
public module in ArangoDB 2. We recommend always bundling your own copy of
372+
third-party modules, even ones listed as public.
373+
374+
- accepts: 1.3.5 -> 1.3.7
375+
- ansi_up: 4.0.3 -> 5.0.1
376+
- chalk: 1.1.3 -> 4.1.1
377+
- content-type: (added) -> 1.0.4
378+
- error-stack-parser: 2.0.2 -> 2.0.6
379+
- highlight.js: 9.15.6 -> 10.7.2
380+
- http-errors: 1.7.2 -> 1.8.0
381+
- iconv-lite: 0.4.24 -> 0.6.2
382+
- js-yaml: 3.13.1 -> 3.14.1
383+
- lodash: 4.17.13 -> 4.17.21
384+
- marked: 0.6.2 -> removed
385+
- media-typer: 0.3.0 -> removed
386+
- mime-types: 2.1.22 -> 2.1.30
387+
- netmask: 1.0.6 -> 2.0.2
388+
- qs: 6.7.0 -> 6.10.1
389+
- range-parser: 1.2.0 -> 1.2.1
390+
- semver: 6.0.0 -> 7.3.5
391+
- timezone: 1.0.22 -> 1.0.23
392+
- type-is: 1.6.16 -> 1.6.18
393+
- underscore: 1.9.1 -> removed
394+
341395
* Fixed DEVSUP-764 (SEARCH-7): inconsistent BM25 scoring for LEVENSHTEIN_MATCH
342396
function.
343397

Documentation/Scripts/exampleHeader.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ function normalize(lang) {
6363
return MAP[lower] || lower;
6464
}
6565

66-
function highlight(lang, code) {
67-
if(!lang) {
66+
function highlight(language, code) {
67+
if(!language) {
6868
return code;
6969
}
70-
// Normalize lang
71-
lang = normalize(lang);
70+
// Normalize language
71+
language = normalize(language);
7272

7373
try {
74-
return hljs.highlight(lang, code).value;
74+
return hljs.highlight(code, {language}).value;
7575
} catch(e) { }
7676

7777
return code;

0 commit comments

Comments
 (0)
0