Skip to content

Commit

Permalink
Upgrade plugin infrastructure, dependencies and use maintained NeDB f…
Browse files Browse the repository at this point in the history
…ork (#118)
  • Loading branch information
daffl authored Dec 15, 2021
1 parent cd687b0 commit d033454
Show file tree
Hide file tree
Showing 15 changed files with 17,621 additions and 2,903 deletions.
24 changes: 0 additions & 24 deletions .github/stale.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
mongodb-replica-set: test-rs
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
31 changes: 31 additions & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update dependencies

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '15.x'
- run: npm ci
- run: |
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git checkout -b update-dependencies-$GITHUB_RUN_ID
- run: |
npm run update-dependencies
npm install
- run: |
git commit -am "chore(dependencies): Update dependencies"
git push origin update-dependencies-$GITHUB_RUN_ID
- run: |
gh pr create --title "chore(dependencies): Update all dependencies" --body ""
env:
GITHUB_TOKEN: ${{secrets.CI_ACCESS_TOKEN}}
15 changes: 0 additions & 15 deletions .istanbul.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

42 changes: 42 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"verbose": false,
"tempDirectory": "./coverage/.tmp",
"semistandard": {
"env": [
"mocha"
]
},
"extension": [
".ts",
".tsx",
".js"
],
"exclude": [
"**/test/*"
],
"print": "detail",
"reporter": [
"html",
"text",
"text-summary",
"lcov"
],
"watermarks": {
"statements": [
70,
90
],
"lines": [
70,
90
],
"functions": [
70,
90
],
"branches": [
70,
90
]
}
}
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 FeathersJS
Copyright (c) 2021 FeathersJS

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# feathers-nedb

[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs-ecosystem/feathers-nedb.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/feathersjs-ecosystem/feathers-nedb.png?branch=master)](https://travis-ci.org/feathersjs-ecosystem/feathers-nedb)
[![Dependency Status](https://img.shields.io/david/feathersjs-ecosystem/feathers-nedb.svg?style=flat-square)](https://david-dm.org/feathersjs-ecosystem/feathers-nedb)
[![Download Status](https://img.shields.io/npm/dm/feathers-nedb.svg?style=flat-square)](https://www.npmjs.com/package/feathers-nedb)

[feathers-nedb](https://github.com/feathersjs-ecosystem/feathers-nedb/) is a database service adapter for [NeDB](https://github.com/louischatriot/nedb), an embedded datastore with a [MongoDB](https://www.mongodb.org/) like API. NeDB can store data in-memory or on the filesystem which makes it useful as a persistent storage without a separate database server.

```bash
$ npm install --save nedb feathers-nedb
$ npm install --save @seald-io/nedb feathers-nedb
```

> __Important:__ `feathers-nedb` implements the [Feathers Common database adapter API](https://docs.feathersjs.com/api/databases/common.html) and [querying syntax](https://docs.feathersjs.com/api/databases/querying.html).
Expand All @@ -21,7 +17,7 @@ $ npm install --save nedb feathers-nedb
Returns a new service instance initialized with the given options. `Model` has to be an NeDB database instance.

```js
const NeDB = require('nedb');
const NeDB = require('@seald-io/nedb');
const service = require('feathers-nedb');

// Create a NeDB instance
Expand Down Expand Up @@ -93,7 +89,7 @@ const feathers = require('@feathersjs/feathers');
const express = require('@feathersjs/express');
const socketio = require('@feathersjs/socketio');

const NeDB = require('nedb');
const NeDB = require('@seald-io/nedb');
const service = require('feathers-nedb');

const db = new NeDB({
Expand Down
2 changes: 0 additions & 2 deletions mocha.opts

This file was deleted.

Loading

0 comments on commit d033454

Please sign in to comment.