⚡ Release 3.1.2 (#5193)
- Removes dev script - Removes nodemon and problematic dependenceis - addressed event-stream security debacle
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
## Parse Server Changelog
|
||||
|
||||
### master
|
||||
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.1.1...master)
|
||||
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.1.2...master)
|
||||
|
||||
### 3.1.2
|
||||
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.1.1...3.1.2)
|
||||
|
||||
- Removes dev script, use TDD instead of server.
|
||||
- Removes nodemon and problematic dependencies.
|
||||
- Addressed event-stream security debacle.
|
||||
|
||||
### 3.1.1
|
||||
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.1.0...3.1.1)
|
||||
|
||||
50
bin/dev
50
bin/dev
@@ -1,50 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const args = process.argv;
|
||||
const babel = require("@babel/core");
|
||||
const fs = require('fs');
|
||||
const gaze = require('gaze');
|
||||
const nodemon = require('nodemon');
|
||||
const path = require('path');
|
||||
|
||||
// Watch the src and transpile when changed
|
||||
gaze('src/**/*', (err, watcher) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
watcher.on('changed', sourceFile => {
|
||||
console.log(sourceFile + " has changed");
|
||||
try {
|
||||
let targetFile = path.relative(__dirname, sourceFile).replace(/\/src\//, '/lib/');
|
||||
targetFile = path.resolve(__dirname, targetFile);
|
||||
fs.writeFile(
|
||||
targetFile,
|
||||
babel.transformFileSync(sourceFile).code,
|
||||
() => {
|
||||
console.log('Re-running the parse-server...')
|
||||
},
|
||||
);
|
||||
} catch (e) {
|
||||
console.error(e.message, e.stack);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// ignore command and file
|
||||
args.splice(0, 2);
|
||||
|
||||
try {
|
||||
// Run and watch dist
|
||||
nodemon({
|
||||
script: 'bin/parse-server',
|
||||
args: args,
|
||||
ext: 'js json',
|
||||
watch: 'lib'
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e.message, e.stack);
|
||||
}
|
||||
|
||||
process.once('SIGINT', () => {
|
||||
process.exit(0);
|
||||
});
|
||||
3316
package-lock.json
generated
3316
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "parse-server",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"description": "An express module providing a Parse-compatible API server",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
@@ -66,7 +66,6 @@
|
||||
"jsdoc-babel": "^0.5.0",
|
||||
"lint-staged": "^7.2.2",
|
||||
"mongodb-runner": "4.3.2",
|
||||
"nodemon": "1.18.4",
|
||||
"nyc": "^12.0.2",
|
||||
"prettier": "1.15.2",
|
||||
"supports-color": "^5.4.0"
|
||||
|
||||
Reference in New Issue
Block a user