Skip to content

Commit

Permalink
build(npm): update external dependencies
Browse files Browse the repository at this point in the history
Up'em just updated these outdated dependencies in package.json:

codemirror              5.65.2   -> 5.65.8   dependencies      (policy: wanted)
dependency-cruiser      11.3.1   -> 11.15.0  devDependencies   (policy: latest)
eslint                  7.32.0   -> 8.22.0   devDependencies   (policy: latest)
eslint-config-standard  16.0.3   -> 17.0.0   devDependencies   (policy: latest)
eslint-plugin-import    2.25.4   -> 2.26.0   devDependencies   (policy: latest)
eslint-plugin-promise   5.2.0    -> 6.0.0    devDependencies   (policy: latest)
mocha                   9.2.1    -> 10.0.0   devDependencies   (policy: latest)
mscgenjs                6.0.1    -> 6.0.2    dependencies      (policy: latest)
mscgenjs-inpage         4.0.4    -> 4.0.5    dependencies      (policy: latest)
upem                    7.0.0    -> 7.2.0    devDependencies   (policy: latest)
webpack                 5.70.0   -> 5.74.0   devDependencies   (policy: latest)
webpack-cli             4.9.2    -> 4.10.0   devDependencies   (policy: latest)

- replaces node-sass (deprecated, unmaintained) with sass
- sets codemirror upem policy to wanted
  • Loading branch information
sverweij committed Aug 21, 2022
1 parent 22d0cd7 commit ac87f33
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RESIZE=utl/resize.sh
IOSRESIZE=utl/iosresize.sh
SEDVERSION=utl/sedversion.sh
NPM=npm
SASS=node_modules/.bin/node-sass --output-style compressed
SASS=node_modules/.bin/sass --style compressed --no-source-map

ifeq ($(GIT_PRODUCTION_DEPLOYMENT_BRANCH), $(GIT_CURRENT_BRANCH))
BUILDDIR=dist
Expand Down
37 changes: 23 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,37 @@
"url": "https://github.com/sverweij/mscgen_js"
},
"dependencies": {
"codemirror": "5.65.2",
"mscgenjs": "6.0.1",
"mscgenjs-inpage": "4.0.4",
"codemirror": "^5.65.8",
"mscgenjs": "6.0.2",
"mscgenjs-inpage": "4.0.5",
"query-string": "7.1.1"
},
"devDependencies": {
"chai": "4.3.6",
"dependency-cruiser": "11.3.1",
"eslint": "7.32.0",
"eslint-config-standard": "16.0.3",
"eslint-plugin-import": "2.25.4",
"dependency-cruiser": "11.15.0",
"eslint": "8.22.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.2.0",
"mocha": "9.2.1",
"eslint-plugin-promise": "6.0.0",
"mocha": "10.0.0",
"node-localstorage": "2.2.1",
"node-sass": "7.0.1",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"sass": "1.54.5",
"sw-precache": "5.2.1",
"upem": "7.0.0",
"webpack": "5.70.0",
"webpack-cli": "4.9.2"
"upem": "7.2.0",
"webpack": "5.74.0",
"webpack-cli": "4.10.0"
},
"upem": {
"policies": [
{
"package": "codemirror",
"policy": "wanted",
"because": "there's a bit more to migrating to v6 than I want to handle right now: https://codemirror.net/docs/migration/"
}
]
},
"scripts": {
"build": "make clean build",
Expand All @@ -75,7 +84,7 @@
"test": "mocha --reporter dot --recursive src/script/test",
"test:cover": "nyc --check-coverage npm test",
"update-dependencies": "npm-run-all upem:update upem:install lint:fix build check",
"upem:update": "npm outdated ---json | upem",
"upem:update": "npm outdated ---json --long | upem | pbcopy && pbpaste",
"upem:install": "npm install",
"version": "npm-run-all build depcruise:graph scm:stage"
},
Expand Down
4 changes: 2 additions & 2 deletions src/script/interpreter/animator.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ function _setupEvents () {
}

module.exports = {
initialize: initialize,
close: close
initialize,
close
}
/*
This file is part of mscgen_js.
Expand Down
2 changes: 1 addition & 1 deletion src/script/interpreter/output-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function showSaveAsOnClick () {

module.exports = {
svgOnDblClick: null,
showSaveAsOnClick: showSaveAsOnClick,
showSaveAsOnClick,
htmlOnClick: function () {
window.open(
exporter.toHTMLSnippetURI(
Expand Down
4 changes: 2 additions & 2 deletions src/script/interpreter/param-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function tagAllLinks () {
}

module.exports = {
processParams: processParams,
tagAllLinks: tagAllLinks
processParams,
tagAllLinks
}
/*
This file is part of mscgen_js.
Expand Down
4 changes: 2 additions & 2 deletions src/script/interpreter/populate-lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function initNamedStyles () {
}

module.exports = {
initSamples: initSamples,
initNamedStyles: initNamedStyles
initSamples,
initNamedStyles
}
/*
This file is part of mscgen_js.
Expand Down
16 changes: 8 additions & 8 deletions src/script/interpreter/uistate.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,19 @@ module.exports = {
* @type {string} source
* @type {string} language (one of mscgen, xu, msgenny or json)
*/
render: render,
render,

/**
* parse + renders the current source in the current
* language if 'autorender' is on
*/
requestRender: requestRender,
requestRender,
getAutoRender: state.getAutoRender,
setAutoRender: setAutoRender,
getSource: getSource,
setSource: setSource,
setAutoRender,
getSource,
setSource,
getLanguage: state.getLanguage,
setLanguage: setLanguage,
setLanguage,
getDebug: state.getDebug,
setDebug: function (pBoolean) {
state.setDebug(pBoolean)
Expand All @@ -339,7 +339,7 @@ module.exports = {
})
}
},
getAST: getAST,
getAST,
getLinkToInterpeter: state.getLinkToInterpreter,
setLinkToInterpeter: function (pBoolean) {
state.setLinkToInterpreter(pBoolean)
Expand Down Expand Up @@ -381,7 +381,7 @@ module.exports = {
state.setVerticalLabelAlignment(pVerticalLabelAlignment)
},
getVerticalLabelAlignment: state.getVerticalLabelAlignment,
preRenderReset: preRenderReset
preRenderReset
}
/*
This file is part of mscgen_js.
Expand Down
4 changes: 2 additions & 2 deletions src/script/test/utl/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ describe('ui/utl/store', function () {

describe('#load and save', function () {
before(function () {
/* eslint node/no-new-require:0, new-cap:0 */
global.localStorage = new require('node-localstorage').LocalStorage(
const nodeLocalStorage = require('node-localstorage')
global.localStorage = new nodeLocalStorage.LocalStorage(
'./throwmeaway'
)
localStorage.clear()
Expand Down
2 changes: 1 addition & 1 deletion src/script/utl/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = {
return 'data:image/svg+xml;charset=utf-8,' +
encodeURIComponent('<!DOCTYPE svg [<!ENTITY nbsp "&#160;">]>'.concat(pSVGSource))
},
toHTMLSnippet: toHTMLSnippet,
toHTMLSnippet,
toHTMLSnippetURI: function (pSource, pLanguage, pOptions) {
return 'data:text/plain;charset=utf-8,' +
encodeURIComponent(toHTMLSnippet(pSource, pLanguage, pOptions))
Expand Down
8 changes: 4 additions & 4 deletions src/script/utl/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ function saveSettings (pState) {
}

module.exports = {
save: save,
load: load,
saveSettings: saveSettings,
loadSettings: loadSettings
save,
load,
saveSettings,
loadSettings
}
/*
This file is part of mscgen_js.
Expand Down

0 comments on commit ac87f33

Please sign in to comment.