Skip to content

Commit

Permalink
Merge branch 'master' into fix-return-to-last-collection-page-after-d…
Browse files Browse the repository at this point in the history
…ocument-update-mongo-express#724
  • Loading branch information
shakaran committed Sep 9, 2022
2 parents aad323f + 34234b1 commit ab94901
Show file tree
Hide file tree
Showing 54 changed files with 3,646 additions and 4,986 deletions.
58 changes: 0 additions & 58 deletions .eslintrc.js

This file was deleted.

54 changes: 54 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
extends: airbnb-base
parser: '@babel/eslint-parser'
parserOptions:
requireConfigFile: false
sourceType: module
env:
node: true
es6: true
plugins:
- import
- lodash
rules:
strict: [error, global]
global-require: off
func-names: off
new-cap: off
consistent-return: off
no-console: off
vars-on-top: off
no-param-reassign: off
prefer-arrow-callback: off
no-nested-ternary: off

no-restricted-syntax: off
no-mixed-operators: off
no-plusplus: off
guard-for-in: off
no-continue: off

no-multi-spaces: off
max-len: [error, 150, 2]
prefer-template: off
no-underscore-dangle: off

import/extensions: [error, always]
import/no-extraneous-dependencies:
- error
- devDependencies:
- '**/test/**/*.js'
- '**/scripts/*.js'
- '**/webpack.config.js'

lodash/callback-binding: error
lodash/collection-method-value: error
lodash/collection-return: error
lodash/no-double-unwrap: error
lodash/no-extra-args: error
lodash/no-unbound-this: error
lodash/unwrap: error

# To be turned on
no-shadow:
- off
- allow: [err, error]
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ updates:
versions:
- 4.0.1
- 4.0.2
- dependency-name: commander
versions:
- 7.0.0
- 7.1.0
- dependency-name: json2csv
versions:
- 5.0.5
- dependency-name: update-notifier
versions:
- 5.0.1
47 changes: 47 additions & 0 deletions .github/workflows/standard-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

name: standard-ci

on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'

jobs:
test:
strategy:
matrix:
node: [14, 16, 18]
os: [ubuntu-latest]
name: Node v${{ matrix.node }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

services:
mongodb:
image: mongo
ports:
- 27017:27017

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Test
run: yarn mocha

- name: Lint
run: yarn lint

7 changes: 0 additions & 7 deletions .mocharc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
recursive: true
reporter: dot
exit: true
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12-slim
FROM node:18.7.0-slim

# grab tini for signal processing and zombie killing
ENV TINI_VERSION 0.9.0
Expand All @@ -9,7 +9,8 @@ RUN set -x \
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini" -o /usr/local/bin/tini \
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini.asc" -o /usr/local/bin/tini.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
&& key=6380DC428747F6C393FEACA59A84159D7001A4E5 \
&& ( gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" || gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ) \
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
&& rm -r "$GNUPGHOME" /usr/local/bin/tini.asc \
&& chmod +x /usr/local/bin/tini \
Expand All @@ -21,7 +22,7 @@ EXPOSE 8081

# override some config defaults with values that will work better for docker
ENV ME_CONFIG_EDITORTHEME="default" \
ME_CONFIG_MONGODB_SERVER="mongo" \
ME_CONFIG_MONGODB_URL="mongodb://mongo:27017" \
ME_CONFIG_MONGODB_ENABLE_ADMIN="true" \
ME_CONFIG_BASICAUTH_USERNAME="" \
ME_CONFIG_BASICAUTH_PASSWORD="" \
Expand Down
53 changes: 31 additions & 22 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,63 @@
# 1.0-alpha.4 - Fri Jun 4, 2021
Fix:
- Fix invalid config fallback values [(#710)](https://github.com/mongo-express/mongo-express/pull/710)

Deps:
- Upgrade to GitHub-native Dependabot [(#682)](https://github.com/mongo-express/mongo-express/pull/682)
- Bump webpack-cli from 4.1.0 to 4.7.0 [(#695)](https://github.com/mongo-express/mongo-express/pull/695)
- Bump browserslist from 4.14.5 to 4.16.6 [(#707)](https://github.com/mongo-express/mongo-express/pull/707)

# 1.0-alpha.2 - Mon Apr 3, 2021
New:
- Property to disable delete action [(#608)](https://github.com/mongo-express/mongo-express/pull/#608)
- Property to disable delete action [(#608)](https://github.com/mongo-express/mongo-express/pull/608)

Fix:
- Fix boolean parameter parsing [(#604)](https://github.com/mongo-express/mongo-express/pull/#604)
- Fix invalid default values for config [(#614)](https://github.com/mongo-express/mongo-express/pull/#614)
- Fix query options bug from Mongodb breaking change [(#615)](https://github.com/mongo-express/mongo-express/pull/#615)
- Fix boolean parameter parsing [(#604)](https://github.com/mongo-express/mongo-express/pull/604)
- Fix invalid default values for config [(#614)](https://github.com/mongo-express/mongo-express/pull/614)
- Fix query options bug from Mongodb breaking change [(#615)](https://github.com/mongo-express/mongo-express/pull/615)
- Fix several XSS vulnerability [(#merge](https://github.com/mongo-express/mongo-express/commit/f5e0d4931f856f032f22664b5e5901d5950cfd4b)

Deps:
- Update babel to 7 [(#624)](https://github.com/mongo-express/mongo-express/pull/#624)
- Update webpack to 5 [(#625)](https://github.com/mongo-express/mongo-express/pull/#625)
- Update eslint [(#626)](https://github.com/mongo-express/mongo-express/pull/#626)
- Update babel to 7 [(#624)](https://github.com/mongo-express/mongo-express/pull/624)
- Update webpack to 5 [(#625)](https://github.com/mongo-express/mongo-express/pull/625)
- Update eslint [(#626)](https://github.com/mongo-express/mongo-express/pull/626)


# 1.0-alpha.1 - Mon Jun 22, 2020
Breaking:
- Change mongo-query-parser to 2.0. This changes how parsing works altogether and drop support for some advanced syntax but is safer [(#528)](https://github.com/mongo-express/mongo-express/pull/#528)
- Rewrite the connection module to use mongo as much as possible and update mongodb to 3.5 [(#528)](https://github.com/mongo-express/mongo-express/pull/#528)
- Change mongo-query-parser to 2.0. This changes how parsing works altogether and drop support for some advanced syntax but is safer [(#528)](https://github.com/mongo-express/mongo-express/pull/528)
- Rewrite the connection module to use mongo as much as possible and update mongodb to 3.5 [(#528)](https://github.com/mongo-express/mongo-express/pull/528)

New:
- Add csv extension in file export [(#578)](https://github.com/mongo-express/mongo-express/pull/#578)
- Don't drop the collection on Delete docs action when no query is provided. [(#502)](https://github.com/mongo-express/mongo-express/pull/#502)
- Fix broken delete document for UUID (BinData 3 & 4) [(#538)](https://github.com/mongo-express/mongo-express/pull/#538)
- Add csv extension in file export [(#578)](https://github.com/mongo-express/mongo-express/pull/578)
- Don't drop the collection on Delete docs action when no query is provided. [(#502)](https://github.com/mongo-express/mongo-express/pull/502)
- Fix broken delete document for UUID (BinData 3 & 4) [(#538)](https://github.com/mongo-express/mongo-express/pull/538)

Deps:
- Bump lodash to 4.6.2 [(#525)](https://github.com/mongo-express/mongo-express/pull/#525)
- Bump lodash to 4.6.2 [(#525)](https://github.com/mongo-express/mongo-express/pull/525)


# 0.54 - Tue Dec 24, 2019

Breaking:
- Change bson parsing to use mongo-query-parser [(#522)](https://github.com/mongo-express/mongo-express/pull/#522)
- Change bson parsing to use mongo-query-parser [(#522)](https://github.com/mongo-express/mongo-express/pull/522)
- Drop support for node 6

New:
- Support playing .wav file inline in collection [(#508)](https://github.com/mongo-express/mongo-express/pull/508)
- Add node 12, and 13 to CI [(#517)](https://github.com/mongo-express/mongo-express/pull/517)
- Add yarn.lock [(#515)](https://github.com/mongo-express/mongo-express/pull/515)
- Fix broken save document for UUID (BinData 3 & 4) [(#537)](https://github.com/mongo-express/mongo-express/pull/#537)
- Fix broken save document for UUID (BinData 3 & 4) [(#537)](https://github.com/mongo-express/mongo-express/pull/537)

Deps:
- Pin Event stream to 4.0 [(#514)](https://github.com/mongo-express/mongo-express/pull/514)
- Bump bootstrap from 3.3.7 to 3.4.1 [(#523)](https://github.com/mongo-express/mongo-express/pull/#523)
- Bump lodash from 4.17.11 to 4.17.13 [(#532)](https://github.com/mongo-express/mongo-express/pull/#532)
- Bump jquery from 3.3.1 to 3.4.1 [(#530)](https://github.com/mongo-express/mongo-express/pull/#530)
- Bump mixin-deep from 1.3.1 to 1.3.2 [(#526)](https://github.com/mongo-express/mongo-express/pull/#526)
- Bump js-yaml from 3.12.0 to 3.13.1 [(#527)](https://github.com/mongo-express/mongo-express/pull/#527)
- Bump cross-env from 3.2.4 to 6.0.3 [(#519)](https://github.com/mongo-express/mongo-express/pull/#519)
- Bump concurrently from 3.6.1 to 5.0.0 [(#507)](https://github.com/mongo-express/mongo-express/pull/#507)
- Bump bootstrap from 3.3.7 to 3.4.1 [(#523)](https://github.com/mongo-express/mongo-express/pull/523)
- Bump lodash from 4.17.11 to 4.17.13 [(#532)](https://github.com/mongo-express/mongo-express/pull/532)
- Bump jquery from 3.3.1 to 3.4.1 [(#530)](https://github.com/mongo-express/mongo-express/pull/530)
- Bump mixin-deep from 1.3.1 to 1.3.2 [(#526)](https://github.com/mongo-express/mongo-express/pull/526)
- Bump js-yaml from 3.12.0 to 3.13.1 [(#527)](https://github.com/mongo-express/mongo-express/pull/527)
- Bump cross-env from 3.2.4 to 6.0.3 [(#519)](https://github.com/mongo-express/mongo-express/pull/519)
- Bump concurrently from 3.6.1 to 5.0.0 [(#507)](https://github.com/mongo-express/mongo-express/pull/507)


# 0.53 - Sat Jul 20, 2019
Expand Down
Loading

0 comments on commit ab94901

Please sign in to comment.