Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4f545e1
Add probot-stale config.
guumaster Jun 15, 2019
4bf8201
Add ci-reporter bot config.
guumaster Jun 15, 2019
c400771
Update stale.yml
guumaster Jun 15, 2019
fb1e65a
Merge Develop into master. (#473)
guumaster Jun 15, 2019
c6be63c
Configure Renovate (#474)
renovate[bot] Jun 15, 2019
0ccdcbf
Pin dependencies (#475)
renovate[bot] Jun 15, 2019
a50a113
Update all (#476)
renovate[bot] Jun 15, 2019
f829f88
Update force-index-refresh-test.js
guumaster Jun 15, 2019
8c36677
Update all (major) (#477)
renovate[bot] Jun 15, 2019
1eb0d3e
Better docs. prepare next version (#479)
guumaster Jun 15, 2019
5a55e65
4.5.0
guumaster Jun 15, 2019
c09a515
Update README.md
guumaster Jun 15, 2019
ef3d2f4
Update dependency eslint to v6 (#483)
renovate[bot] Jun 22, 2019
0c1d1df
Update dependency async to v3.1.0 (#484)
renovate[bot] Jun 23, 2019
8771995
Bump eslint-utils from 1.3.1 to 1.4.2
dependabot[bot] Aug 27, 2019
8eddce1
Fix/linted code only (#501)
guumaster Sep 12, 2019
1ba9fc8
Update README.md
sherif-hafiz Sep 26, 2019
4b9bfab
Update dependency mongoose to v5.7.5 [SECURITY]
renovate-bot Oct 29, 2019
9496449
Update all
renovate-bot Mar 15, 2020
9c72692
Update dependency mocha to v7
renovate-bot Mar 15, 2020
1869580
Merge commit '9496449d0c3da6dd934d4216be4e9b21ee269793'
ngmitam Mar 25, 2020
79a306d
Merge commit '9c72692b0d8d9574a1c3138e4af440558b427e3e'
ngmitam Mar 25, 2020
5780bc1
Fix routing
ngmitam Mar 31, 2020
fb7a61c
Update AUTHORS
ngmitam Mar 31, 2020
45c89ba
Delete scripts/AUTHORS
guumaster Mar 31, 2020
01cb254
Merge branch 'ngmitam-master'
Mar 31, 2020
ec3dbeb
update authors
Mar 31, 2020
44df0bd
Update all
renovate-bot Mar 31, 2020
558ba1a
4.6.0
Mar 31, 2020
b9b6343
Update README.md
guumaster Nov 15, 2021
c27947c
Migrate to TS and tests to jest (#573)
yahia-kerim Nov 14, 2021
cb7148d
update dependencies. add editorconfig setup, tweak eslintrc and pass …
Nov 15, 2021
bf686b2
Update dependencies (#578)
yahia-kerim Nov 19, 2021
eae46e5
Refactor esTruncate method (#580)
yahia-kerim Nov 25, 2021
9dfd8dd
Pass an existing esClient (#579)
yahia-kerim Nov 29, 2021
7cd2ada
Update the example folder (#581)
yahia-kerim Dec 1, 2021
90f9f82
Update documentation (#582)
yahia-kerim Jan 11, 2022
0d616be
Update README.md
yahia-kerim Jan 18, 2022
c3b2228
Integrate github actions CI (#587)
yahia-kerim Mar 3, 2022
105a782
npm script prepare should be used instead of prepublish (#588)
Dreaming-Codes Mar 7, 2022
5fd44c6
Add .npmignore file (#589)
yahia-kerim Mar 7, 2022
0f64d86
add publish workflow
Mar 16, 2022
4aaaf55
add publish workflow
Mar 16, 2022
3e19f8b
direct publish without an action
Mar 16, 2022
282e66a
bump rc version
Mar 16, 2022
45bc8c7
split into separate workflows
Mar 16, 2022
686aa7c
publish on tags
Mar 16, 2022
c03b67c
bump rc version
Mar 16, 2022
3d87f57
skip CI on tags
Mar 16, 2022
f241ef8
bump version
Mar 16, 2022
49ff5ba
const to let
diode02 Apr 5, 2022
f585e4f
Fix custom properties (#598)
callumgare Aug 25, 2022
3ef79b5
Allow tranform func to be async (#597)
callumgare Aug 25, 2022
cb4f62d
Resolve merge issue with #598 (#609)
callumgare Sep 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true
40 changes: 36 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
{
"env": {
"node": true,
"mocha": true
"env": {
"es2021": true
},
"extends": "standard"
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"node_modules/**",
"dist/**"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single"
],
"curly": [
"error"
],
"semi": [
"error",
"never"
],
"no-prototype-builtins": "off"
}
}
8 changes: 8 additions & 0 deletions .github/ci-reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set to false to create a new comment instead of updating the app's first one
updateComment: true

# Use a custom string, or set to false to disable
before: "✨ Good work on this PR so far! ✨ Unfortunately, the [ build]() is failing as of . Here's the output:"

# Use a custom string, or set to false to disable
after: false
9 changes: 9 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"config:base"
],
"groupName": "all",
"ignorePaths": [
"examples"
]
}
19 changes: 19 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- help wanted
- security
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closing this issue due to lack of activity. Thank you
for your contributions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI
on:
push:
paths:
- "lib/**"
- "test/**"
- "package.json"
- "package-lock.json"
pull_request:
types: [opened]
paths:
- "lib/**"
- "test/**"
- "package.json"
- "package-lock.json"
branches:
- "!*"
- "develop"
- "master"
tags:
- "!v*"

jobs:
build:
runs-on: ubuntu-latest

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

strategy:
matrix:
elasticsearch-version: [7.15.0]

steps:
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144

- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: ${{ matrix.elasticsearch-version }}

- uses: actions/checkout@v2
with:
# checkout full tree
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "16"

- run: npm ci
- run: npm test

35 changes: 35 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pre-Release to NPM
on:
push:
tags:
- 'v*-rc.*'

jobs:
release:
name: Create Pre-Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Pre-Release ${{ github.ref }}
draft: false
prerelease: true
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release to NPM
on:
push:
tags:
- 'v*'
- '!v*-rc.*'

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

136 changes: 131 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,132 @@
.DS_Store
node_modules
.idea
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
.coveralls.yml
*.swp
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache
.stylelintcache

# SvelteKit build / generate output
.svelte-kit

# MkDocs build / site
site/
22 changes: 22 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Configs files
.editorconfig
mkdocs.yml
jest.config.ts

# Actions
.github
.travis.yml

# Documents
CONTRIBUTING.md

# folders
docs
example
lib
scripts
site
test

# Others
.DS_Store
Loading