Skip to content

Commit 5e5af4b

Browse files
committed
feat: rewrite, fixed bson-objectid, support node >= 14
1 parent 96b5b47 commit 5e5af4b

29 files changed

+261
-11104
lines changed

.browserslistrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
# Browsers that we support
2-
3-
> 1%
4-
last 2 versions
1+
defaults, not ie 11

.commitlintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
};

.dist.babelrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
["@babel/env", {
4+
"targets": {
5+
"browsers": [ "defaults, not ie 11" ]
6+
}
7+
}]
8+
],
9+
"sourceType": "script"
10+
}

.dist.eslintrc

Lines changed: 0 additions & 33 deletions
This file was deleted.

.dist.eslintrc.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:compat/recommended"],
3+
"env": {
4+
"node": false,
5+
"browser": true,
6+
"amd": true,
7+
"es6": true
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": "2017"
11+
},
12+
"plugins": ["compat"],
13+
"rules": {
14+
"compat/compat": "error",
15+
"no-func-assign": "off",
16+
"no-unused-vars": "off",
17+
"no-redeclare": "off",
18+
"no-empty": "off",
19+
"no-fallthrough": "off",
20+
"no-cond-assign": "off",
21+
"no-constant-condition": "off",
22+
"no-control-regex": "off",
23+
"no-useless-escape": "off",
24+
"no-extra-semi": "off",
25+
"no-console": "off",
26+
"no-sparse-arrays": "off",
27+
"no-undef": "off",
28+
"no-prototype-builtins": "off",
29+
"no-unsafe-finally": "off",
30+
"no-inner-declarations": "off",
31+
"getter-return": "off"
32+
},
33+
"globals": {
34+
},
35+
"settings": {
36+
"polyfills": [
37+
"performance",
38+
"WeakRef"
39+
]
40+
}
41+
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.*.js

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* text=auto
1+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os:
11+
- ubuntu-latest
12+
node_version:
13+
- 14
14+
- 16
15+
- 18
16+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Setup node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node_version }}
23+
- name: Install dependencies
24+
run: npm install
25+
- name: Run tests
26+
run: npm run test

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@
44
node_modules
55
coverage
66
.nyc_output
7+
locales/
8+
package-lock.json
9+
yarn.lock
10+
11+
Thumbs.db
12+
tmp/
13+
temp/
14+
*.lcov
15+
.env
716
lib
817
dist

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

0 commit comments

Comments
 (0)