Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to TypeScript #43

Draft
wants to merge 50 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
9e8f5b0
Add upgrade guide
kennyek Sep 19, 2021
60d118b
Replace testing libs with Jest
kennyek Sep 19, 2021
0624647
Replace jscs & jshint with eslint & prettier
kennyek Sep 19, 2021
3665aab
Update dependencies
kennyek Sep 19, 2021
cb0dbae
Add babel transpilation
kennyek Sep 19, 2021
3b9f18f
Add build dir to gitignore
kennyek Sep 19, 2021
0813bb2
Import/export update plus rename modules to exported names
kennyek Sep 19, 2021
f964a29
Update Collection to class based syntax
kennyek Sep 19, 2021
eb42828
Update Store to class based syntax
kennyek Sep 19, 2021
eb0c753
Update ViewDBTimestampPlugin to class based syntax
kennyek Sep 19, 2021
057f07e
Add some spacing for readability
kennyek Sep 19, 2021
6aa1cb8
Update ViewDBVersioningPlugin to class based syntax
kennyek Sep 19, 2021
a4ea0bc
Update Observer to class based syntax
kennyek Sep 20, 2021
7fb3724
Update ViewDB to class based syntax
kennyek Sep 20, 2021
79953da
Update Cursor to class based syntax
kennyek Sep 21, 2021
92fe38a
Replace `var` in merge
kennyek Aug 2, 2022
b4b1ea0
Move test files to src dir
kennyek Aug 2, 2022
e87369a
Replace Babel with SWC & update dependencies
kennyek Aug 2, 2022
16e6cb6
Rename to TS & add TS support
kennyek Aug 2, 2022
1c435bf
Fix Collection & Store types naively
kennyek Aug 2, 2022
5fc9be4
Fix ViewDB types naively
kennyek Aug 2, 2022
cac2e83
Move types from InMemoryCollection to Collection interface
kennyek Aug 2, 2022
9d6da28
Fix types for Cursor & Observer naively
kennyek Aug 3, 2022
aa0fa85
Fix import from incorrect module
kennyek Aug 3, 2022
f4ca64b
Fix Merger types naively
kennyek Aug 3, 2022
78a9a16
Fix some plugin type issues
kennyek Aug 5, 2022
d2ef174
Fix type issues and update types
kennyek Aug 6, 2022
803dced
Bump major package version
kennyek Aug 6, 2022
ca25bb4
Remove "directories" property from package.json
kennyek Aug 6, 2022
018eb9d
Add initial documentation to the README
kennyek Aug 6, 2022
8740999
Merge branch 'develop' into feature/modernize
kennyek Aug 6, 2022
c521ceb
Add `.npmignore` to customize what will be published
kennyek Aug 6, 2022
27cff46
Fix flaky test
kennyek Aug 6, 2022
681770b
Make Cursor_.refresh public
kennyek Aug 6, 2022
52609f1
Update jest-config to not run tests in lib
kennyek Aug 7, 2022
cf13b57
Replace function callbacks with arrow functions
kennyek Aug 7, 2022
a44976c
Update test cases
kennyek Aug 7, 2022
95f66c9
Make Cursor.toArray() async
kennyek Aug 7, 2022
140dbf7
Make Cursor.count() and Collection.count() async
kennyek Aug 7, 2022
8298c3c
Add helper for better Promise or Callback typing
kennyek Aug 7, 2022
278e227
Fix so that either callback or promise is used, not both
kennyek Aug 7, 2022
765a1f3
Make insert, save & remove async, update drop API
kennyek Aug 7, 2022
6ca5363
Update some documentation in the README
kennyek Aug 7, 2022
da2e79f
Update the plugin names in the README
kennyek Aug 7, 2022
0fcd774
More promise/cb support and README updates
kennyek Aug 8, 2022
6b2c636
Fix type error in plugins
kennyek Aug 8, 2022
48ee66b
Rename with IndexedDB prefix
kennyek Aug 14, 2022
8e9384a
Merge branch 'develop' into feature/modernize
Mar 2, 2023
82fd0a9
Upgrade kuery version to latest
Mar 2, 2023
f101023
Update prettier version and format code
Mar 2, 2023
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
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "surikat"
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Build files
lib

# Logs
logs
*.log
Expand Down Expand Up @@ -28,4 +31,4 @@ node_modules
.lock-wscript

# IntelliJ idea workspace directory
.idea
.idea
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*
!lib/**/*
**/__*__/
**/*.spec.*
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"prettier-config-surikaterna"
13 changes: 13 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"jsc": {
"target": "es5",
"baseUrl": "./src",
"parser": {
"syntax": "typescript"
}
}
}
Loading