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

WIP: Feathers-Vuex 2.0 rewritten with TypeScript #216

Merged
merged 408 commits into from Oct 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
408 commits
Select commit Hold shift + click to select a range
8687e4b
Test customizing idField for two services
marshallswain Apr 1, 2019
227f8dd
Run all tests
marshallswain Apr 1, 2019
d1fa45b
Fix bug with makeFindMixin watcher
marshallswain Apr 2, 2019
d2ef209
Start test for makeFindMixin with dynamic service
marshallswain Apr 2, 2019
f79a029
Expose handleFindResponse and handleFindError
marshallswain Apr 2, 2019
e74c6bd
Clone params for all actions.
marshallswain Apr 2, 2019
1d9c6f0
v2.0.0-pre.6
marshallswain Apr 2, 2019
1df7ae2
2.0.0
marshallswain Apr 2, 2019
66e0969
v2.0.0-pre.7
marshallswain Apr 3, 2019
243032c
More DRY handleFindResponse, with comment
marshallswain Apr 3, 2019
371f7d8
Allow cloning non-enumerable props that aren’t __ob__
marshallswain Apr 3, 2019
c975735
Add notes about enumerables
marshallswain Apr 3, 2019
766c3c3
v2.0.0-pre.8
marshallswain Apr 3, 2019
77b58cf
Add module to store references to global feathers clients
marshallswain Apr 15, 2019
e8e376a
v2.0.0-pre.9
marshallswain Apr 15, 2019
f1cb47c
Fix git url
marshallswain Apr 15, 2019
540d476
Fix more URLs in package.json
marshallswain Apr 15, 2019
3fc03ec
Allow eager removal from store
marshallswain Apr 15, 2019
f26d377
v2.0.0-pre.10
marshallswain Apr 15, 2019
7b3a46d
Fix eager removal
marshallswain Apr 15, 2019
aa3e351
v2.0.0-pre.11
marshallswain Apr 15, 2019
289010c
Guard against missing params in instance.remove()
marshallswain Apr 15, 2019
4b416a7
v2.0.0-pre.12
marshallswain Apr 15, 2019
0e356b9
diff on patch should use the keyedById record.
marshallswain Apr 15, 2019
0ce9894
v2.0.0-pre.13
marshallswain Apr 15, 2019
5e06e45
Remove diffOnPatch
marshallswain Apr 15, 2019
2ac3f39
v2.0.0-pre.14
marshallswain Apr 15, 2019
128f126
Remove serialize since we can just override toJSON
marshallswain Apr 15, 2019
bd18147
v2.0.0-pre.15
marshallswain Apr 15, 2019
c21b098
Add blacklist to cloneWithAccessors, ignore __isClone
marshallswain Apr 17, 2019
5c92293
v2.0.0-pre.16
marshallswain Apr 17, 2019
72375e8
Don’t make __isClone readonly
marshallswain Apr 17, 2019
65fcc38
v2.0.0-pre.17
marshallswain Apr 17, 2019
682ec64
Return correct values after .clone() and .commit()
marshallswain Apr 17, 2019
4c53e12
v2.0.0-pre.18
marshallswain Apr 17, 2019
1d040e9
getCopyById getter now supports Model.copiesById
marshallswain Apr 18, 2019
d129cd6
v2.0.0-pre.19
marshallswain Apr 18, 2019
ff36eed
Allow instantiating models without any data
marshallswain Apr 19, 2019
887414b
v2.0.0-pre.20
marshallswain Apr 19, 2019
9dbb0e0
Getters should always be declared in the class
marshallswain Apr 19, 2019
18ad378
Actually allow passing undefined this time
marshallswain Apr 19, 2019
2b61a26
v2.0.0-pre.21
marshallswain Apr 19, 2019
fec423d
You must pass an empty object to get a tempId
marshallswain Apr 19, 2019
988e273
Remove __isTemp after a temp record is saved
marshallswain Apr 19, 2019
15ca4f6
Delete __isTemp in the mutation instead of the action
marshallswain Apr 19, 2019
971a851
v2.0.0-pre.22
marshallswain Apr 19, 2019
bb9e629
Add test for specifying a tempId in a new record
marshallswain Apr 20, 2019
2c79429
Make sure temp items are always marked with __isTemp
marshallswain Apr 21, 2019
9f348ad
v2.0.0-pre.23
marshallswain Apr 21, 2019
24811cb
Add find getter to make-find-mixin
marshallswain Apr 24, 2019
06321b6
v2.0.0-pre.24
marshallswain Apr 24, 2019
1fefe75
Add name to BaseModel
marshallswain May 8, 2019
a441bc9
2.0.0-pre.25
marshallswain May 8, 2019
76be529
Add prerelease publishing script
marshallswain May 8, 2019
9d8da05
Fix main
marshallswain May 8, 2019
59739ba
2.0.0-pre.26
marshallswain May 8, 2019
a8a464b
use BaseModel.modelName instead of BaseModel.name
marshallswain May 8, 2019
eec9f10
2.0.0-pre.27
marshallswain May 8, 2019
89e9f60
Give all Model classes a modelName static prop
marshallswain May 8, 2019
048a52a
Update vscode settings
marshallswain May 13, 2019
0b365f7
Make modelName required
marshallswain Jun 5, 2019
8b4ba70
Make debugging easier.
marshallswain Jun 5, 2019
9922015
Update tests now that modelName is required
marshallswain Jun 5, 2019
c15cd04
2.0.0-pre.28
marshallswain Jun 5, 2019
a7097ea
lint cleanup
marshallswain Jun 6, 2019
82fedf5
Target es6
marshallswain Jun 6, 2019
ed8c776
BaseModel has modelName of BaseModel
marshallswain Jun 6, 2019
9703cee
2.0.0-pre.29
marshallswain Jun 6, 2019
bca692e
2.0.0-pre.30
marshallswain Jun 6, 2019
1213e68
2.0.0-pre.31
marshallswain Jun 6, 2019
eac6fc7
2.0.0-pre.32
marshallswain Jun 6, 2019
1c4fe50
2.0.0-pre.33
marshallswain Jun 6, 2019
b31f30f
Test env:modules:false in babelrc
marshallswain Jun 7, 2019
fbd6050
2.0.0-pre.34
marshallswain Jun 7, 2019
1802514
turn off source maps
marshallswain Jun 7, 2019
cf40972
2.0.0-pre.35
marshallswain Jun 7, 2019
9f5cd94
Lint Cleanup
marshallswain Jun 7, 2019
f9607ea
2.0.0-pre.36
marshallswain Jun 7, 2019
674fd70
More lint cleanup
marshallswain Jun 7, 2019
749457d
2.0.0-pre.37
marshallswain Jun 7, 2019
c051b3f
Use data if no instanceDefaults returned
marshallswain Jun 7, 2019
cabe31b
2.0.0-pre.38
marshallswain Jun 7, 2019
743090f
Make queryWhen a computed property
marshallswain Jun 14, 2019
56a6076
Warn against instanceDefaults as an object #224
Jun 10, 2019
05dd38f
Fix test for todosQueryWhen
marshallswain Jun 14, 2019
9323a81
Add requestedOnce and loadedOnce to the makeFindMixin
marshallswain Jun 14, 2019
1c63c90
2.0.0-pre.39
marshallswain Jun 14, 2019
47d6a20
Add note about es5 accessors going on model classes
marshallswain Jun 16, 2019
c16734a
catch errors about getters without a setter
marshallswain Jun 18, 2019
2ecc883
2.0.0-pre.40
marshallswain Jun 18, 2019
3acec71
remove node moduleresolution
marshallswain Jun 18, 2019
04a87fb
2.0.0-pre.41
marshallswain Jun 18, 2019
bcec987
Revert "remove node moduleresolution"
marshallswain Jun 18, 2019
7658a68
Make sure update/patched data become model instances
marshallswain Jun 19, 2019
401d8a3
2.0.0-pre.42
marshallswain Jun 19, 2019
257db6a
Add getId method
marshallswain Jun 19, 2019
c3f1b91
Remove mergeWithAccessors
marshallswain Jun 19, 2019
75eacf1
Remove old model
marshallswain Jun 19, 2019
f73ba80
lint cleanup
marshallswain Jun 19, 2019
00d23c3
Support id and _id without configuration
marshallswain Jun 19, 2019
2bbb877
Document idField support
marshallswain Jun 19, 2019
2e2dff1
2.0.0-pre.43
marshallswain Jun 19, 2019
ce63d4d
Use addOrUpdate method for socket events
marshallswain Jun 19, 2019
0352fe0
2.0.0-pre.44
marshallswain Jun 19, 2019
8ebddc3
Fix create action documentation
marshallswain Jun 27, 2019
97b449e
Document setting the `idField` and `debug` mode.
marshallswain Jun 27, 2019
78f98e5
Remove old Mocha config in launch.json
marshallswain Jun 27, 2019
88ead37
Make sure instanceDefaults stay after patch
marshallswain Jun 27, 2019
9f112dd
2.0.0-pre.45
marshallswain Jun 27, 2019
7ea70f9
Remove diffOnPatch option
marshallswain Jul 1, 2019
dac81ef
update notes
marshallswain Jul 1, 2019
39562c4
Clarifications in notes
marshallswain Jul 1, 2019
07b51d7
Fix id checks through the app
marshallswain Jul 2, 2019
7ee187f
Move diffOnPatch to the Model
marshallswain Jul 2, 2019
6993e4a
2.0.0-pre.46
marshallswain Jul 2, 2019
3de7104
Fix another round of broken ids
marshallswain Jul 2, 2019
0302586
2.0.0-pre.47
marshallswain Jul 2, 2019
d9aef66
Lint cleanup
marshallswain Jul 2, 2019
d983424
2.0.0-pre.48
marshallswain Jul 2, 2019
6484c2d
More lint cleanup
marshallswain Jul 2, 2019
c357e65
2.0.0-pre.49
marshallswain Jul 2, 2019
9f272b5
Lint cleanup
marshallswain Jul 2, 2019
99b497a
2.0.0-pre.50
marshallswain Jul 2, 2019
462212c
Only log namespace error when debug is enabled.
marshallswain Jul 2, 2019
8a0e310
2.0.0-pre.51
marshallswain Jul 2, 2019
55f6fd4
Turn temps off in find getter by default
marshallswain Jul 7, 2019
b9679ce
Change registration of components to PascalCase
marshallswain Jul 7, 2019
c0833bd
Fix docs build
marshallswain Jul 7, 2019
c6cf092
Markdownlint cleanup on docs
marshallswain Jul 7, 2019
2baa0fa
Manually merge in commits from pagination branch
marshallswain Jul 7, 2019
f829a17
2.0.0-pre.52
marshallswain Jul 7, 2019
fec5a88
Fix the make-find-mixin pagination
marshallswain Jul 8, 2019
6438f92
2.0.0-pre.53
marshallswain Jul 8, 2019
970763b
Fix fall-through cache for make-find-mixin
marshallswain Jul 8, 2019
29570d1
disable markdown lint rule
marshallswain Jul 8, 2019
d51ecd5
Add docs for implementing pagination
marshallswain Jul 8, 2019
88c8074
2.0.0-pre.54
marshallswain Jul 8, 2019
b5a81ae
Add docs about makeFindMixin debouncing
marshallswain Jul 8, 2019
8288aa3
Refactor & simplify the find getter
marshallswain Jul 9, 2019
1590997
Fix _get with complex stringified objects as keys
marshallswain Jul 9, 2019
8308f2a
2.0.0-pre.55
marshallswain Jul 9, 2019
e4aa279
Better docs for enabling live lists again.
marshallswain Jul 9, 2019
39b4ce8
Fix naming of the Service Module page in navigation
marshallswain Jul 9, 2019
02e1c8f
Allow passing paginate:false in the params
marshallswain Jul 10, 2019
b3a8d60
2.0.0-pre.56
marshallswain Jul 10, 2019
50ad69b
Document the paginate: false in makeFindMixin
marshallswain Jul 10, 2019
4a1c86a
Pagination++ add total to the mostRecent data
marshallswain Jul 10, 2019
555ea53
2.0.0
marshallswain Jul 10, 2019
e3a2c28
2.0.1-0
marshallswain Jul 10, 2019
f94490c
Fix version number
marshallswain Jul 10, 2019
94ab8ee
2.0.0-pre.57
marshallswain Jul 10, 2019
bc688a4
Fix infinite loop / stack overflow
marshallswain Jul 10, 2019
3af7a25
Add total to mostRecent in tests
marshallswain Jul 10, 2019
c9e0bfe
Fix error in makeFindMixin when params are missing.
marshallswain Jul 10, 2019
f9f2a45
2.0.0-pre.58
marshallswain Jul 10, 2019
aa5bad0
Fix logic for pagination lookup with skip and sort
marshallswain Jul 10, 2019
f29a768
2.0.0-pre.59
marshallswain Jul 10, 2019
0e147e9
Prevent error when params.query is assumed
marshallswain Jul 10, 2019
5645d34
2.0.0-pre.60
marshallswain Jul 10, 2019
4a2bac1
Guard against null values for most recent query
marshallswain Jul 13, 2019
fb46f35
2.0.0-pre.61
marshallswain Jul 13, 2019
1411681
Add `get<Item>FromStore` to makeFindGetter
marshallswain Jul 15, 2019
aad86b4
2.0.0-pre.62
marshallswain Jul 15, 2019
b1f25a5
Auth: prefer the user from the authenticate response.
marshallswain Jul 19, 2019
2f79fab
2.0.0-pre.63
marshallswain Jul 19, 2019
1058170
Properly instantiate user returned with auth response
marshallswain Jul 20, 2019
8ff57fb
2.0.0-pre.64
marshallswain Jul 20, 2019
9cc1ae6
Call setupInstance before storing data.
marshallswain Jul 21, 2019
e7173fb
Assure that dates on instances remain as dates
marshallswain Jul 21, 2019
8702c8e
2.0.0-pre.65
marshallswain Jul 21, 2019
25cd054
Test that getters are sorting properly with decmal values
marshallswain Jul 21, 2019
cf5fdf4
Add a simple form binding example
marshallswain Jul 21, 2019
2bf5786
makeFindMixin, set variables for requested and loaded
marshallswain Jul 24, 2019
78a2dfb
2.0.0-pre.66
marshallswain Jul 24, 2019
ef682f7
Fix watcher for makeGetMixin
marshallswain Jul 26, 2019
cf9f506
2.0.0-pre.67
marshallswain Jul 26, 2019
e077064
fix: Remove unused utility function
marshallswain Jul 27, 2019
73bd282
docs: Document removal of isFeathersVuexInstance
marshallswain Jul 28, 2019
7fbe394
fix: assure only one clone ever exists in memory
marshallswain Jul 28, 2019
e3dfb39
fix: Do not attempt to overwrite non-writable props
marshallswain Jul 28, 2019
5d3bf3c
fix: Fix memory leak fast-copying nested instance
marshallswain Jul 28, 2019
d6f1fb6
2.0.0-pre.68
marshallswain Jul 28, 2019
0b9a7ed
feat: Add error state to the make-find-mixin
marshallswain Aug 2, 2019
ebccc6b
feat: add error state to make-get-mixin
marshallswain Aug 2, 2019
bc4d888
2.0.0-pre.69
marshallswain Aug 2, 2019
b2a0b11
chore: Add some skipped tests to fill out later
marshallswain Aug 2, 2019
5682edc
fix travis tests
marshallswain Aug 6, 2019
0ec4b8e
Remove codeclimate test reporter
marshallswain Aug 6, 2019
9327b7e
fix: makeGetMixin can now check data for the id
marshallswain Aug 8, 2019
a5cabad
2.0.0-pre.70
marshallswain Aug 8, 2019
3d5ad28
feat: set pending state before debounced requests
marshallswain Aug 15, 2019
4862ac5
2.0.0-pre.71
marshallswain Aug 15, 2019
1980d6a
Fix circular dependencies
marshallswain Aug 22, 2019
08d548e
2.0.0-pre.72
marshallswain Aug 22, 2019
4cc9f66
fix transpilation bug for async arrow function
marshallswain Aug 23, 2019
aa8ddd7
2.0.0-pre.73
marshallswain Aug 23, 2019
08cd393
fix: tree shaking by using specific lodash modules
marshallswain Aug 23, 2019
6072c13
2.0.0-pre.74
marshallswain Aug 23, 2019
c102025
Fix import
marshallswain Aug 29, 2019
92e1e85
2.0.0-pre.75
marshallswain Aug 29, 2019
a0794c0
addItems mutation fix tempId
fratzinger Sep 5, 2019
039da02
fix addItems-mutation for tempId
fratzinger Sep 5, 2019
68c093f
Merge pull request #258 from fratzinger/patch-2
marshallswain Sep 5, 2019
2cf5775
remove package-lock.json
marshallswain Sep 5, 2019
240af6d
2.0.0-pre.76
marshallswain Sep 5, 2019
c17d174
Update FeathersVuexFind.ts
fratzinger Sep 9, 2019
25da7c0
components.md add server-side pagination example
fratzinger Sep 10, 2019
69051a6
fix FeathersVuexFind.ts
fratzinger Sep 10, 2019
edbfd5c
Merge pull request #261 from fratzinger/patch-3
marshallswain Sep 10, 2019
3599e07
2.0.0-pre.77
marshallswain Sep 10, 2019
9c1b652
Fix Model.find() return type
morphatic Sep 15, 2019
a3b414e
Merge pull request #263 from morphatic/fix-model-find
marshallswain Sep 19, 2019
8e2250c
compatibility with feathers@4.x auth
marshallswain Sep 24, 2019
ffad3b8
Merge branch 'typescript' of https://github.com/feathers-plus/feather…
marshallswain Sep 24, 2019
c342fc2
2.0.0-pre.78
marshallswain Sep 24, 2019
bec2b7c
Begin updating docs
marshallswain Sep 28, 2019
143fa14
Add a note about finding the old docs
marshallswain Sep 29, 2019
34baedb
Version in the title
marshallswain Sep 30, 2019
2dfee5e
new docs for setting up
marshallswain Oct 18, 2019
47e944b
Document FeathersVuexGet props
marshallswain Oct 18, 2019
fb8acdb
The `serverAlias` prop now defaults to `api`.
marshallswain Oct 18, 2019
ff69aa8
Add FeathersVuexFormWrapper
marshallswain Oct 18, 2019
c74c850
Update vuepress
marshallswain Oct 18, 2019
73b27cc
Move FeathersVuexFormWrapper docs in with other docs
marshallswain Oct 18, 2019
a83ee68
More Form Wrapper docs
marshallswain Oct 18, 2019
9c70e33
Rename components page to data-components page
marshallswain Oct 18, 2019
8665e53
docs: clarify new and improved features
marshallswain Oct 18, 2019
8a9468a
Add Dark mode support to docs
marshallswain Oct 18, 2019
731f2f9
docs: rename module to plugin, where applicable
marshallswain Oct 18, 2019
1a2d9ca
Rename docs:dev to docs:serve
marshallswain Oct 20, 2019
654a0f5
Reorganize the api-overview page
marshallswain Oct 20, 2019
d6f332c
Docs: new vue-plugin docs
marshallswain Oct 20, 2019
587779f
feat: FeathersVuexFormWrapper in the vue plugin
marshallswain Oct 20, 2019
3cc27b0
Update Global Configuration options
marshallswain Oct 20, 2019
8ada9cf
docs: change to $FeathersVuex object.
marshallswain Oct 20, 2019
b407d58
Docs: auth module updates
marshallswain Oct 20, 2019
3fa3e2b
docs: Fix comment about default temps behavior
marshallswain Oct 20, 2019
b904558
docs: add 2.0 changes page to end of docs
marshallswain Oct 20, 2019
43b32d2
docs: data-components updates
marshallswain Oct 20, 2019
8b5f8e5
docs: service-plugin updates
marshallswain Oct 20, 2019
d5d8932
docs: note about typescript
marshallswain Oct 20, 2019
119dfd0
docs: import feathers-vuex
marshallswain Oct 20, 2019
8f0e2ce
docs: Add feathersClient to imports in example
marshallswain Oct 21, 2019
1947c81
docs: update example for accessing store from hooks
marshallswain Oct 21, 2019
115ae81
docs: fix typos in last update
marshallswain Oct 21, 2019
ddc6f77
docs: update example re: require.context
marshallswain Oct 21, 2019
00829e3
docs: updated data modeling page
marshallswain Oct 21, 2019
589c594
docs: add note about Webpack’s require.context
marshallswain Oct 21, 2019
c9f0af1
docs: Fix broken fenced code block
marshallswain Oct 21, 2019
82ce214
docs: finish updating common patterns page
marshallswain Oct 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .babelrc
@@ -1,4 +1,8 @@
{
"plugins": [ "add-module-exports" ],
"presets": [ "es2015", "stage-2"]
"presets": [
[ "env", { "modules": false } ],
"es2015",
"stage-2"
]
}
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -39,3 +39,4 @@ lib/
*.ntvs*
*.njsproj
*.sln
/dist
12 changes: 3 additions & 9 deletions .travis.yml
Expand Up @@ -5,13 +5,7 @@ addons:
code_climate:
repo_token: 'your repo token'
firefox: "51.0"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
services:
- xvfb
notifications:
email: false
before_script:
- npm install codeclimate-test-reporter
- alias codeclimate="./node_modules/codeclimate-test-reporter/bin/codeclimate.js"
after_script:
- codeclimate-test-reporter < coverage/lcov.info
email: false
26 changes: 14 additions & 12 deletions .vscode/launch.json
Expand Up @@ -7,22 +7,23 @@
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
},
"runtimeArgs": [
"--opts",
"mocha.opts",
"name": "TS - Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--require",
"ts-node/register",
"-u",
"tdd",
"--timeout",
"999999",
"--colors"
"--colors",
"--recursive",
"${workspaceFolder}/test/**/*.ts"
],
"internalConsoleOptions":"openOnFirstSessionStart"
"env": {
"TS_NODE_PROJECT": "tsconfig.esnext.json"
},
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
Expand All @@ -36,6 +37,7 @@
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
},

]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Expand Up @@ -8,5 +8,10 @@
"lib/**": true,
"**/node_modules": true,
"**/bower_components": true
},
"workbench.colorCustomizations": {
"activityBar.background": "#2B3011",
"titleBar.activeBackground": "#3C4418",
"titleBar.activeForeground": "#FAFBF4"
}
}
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -35,7 +35,7 @@ See [https://feathers-vuex.feathers-plus.com/index.html](https://feathers-vuex.f

## Installation

```console
```bash
npm install feathers-vuex --save
```

Expand Down
11 changes: 7 additions & 4 deletions docs/.vuepress/config.js
@@ -1,20 +1,23 @@
module.exports = {
title: 'FeathersVuex',
description: 'Integration of FeathersJS, Vue, and Nuxt for the artisan developer',
theme: 'default-prefers-color-scheme',
themeConfig: {
repo: 'feathers-plus/feathers-vuex',
docsDir: 'docs',
editLinks: true,
sidebar: [
'/api-overview.md',
'/vue-plugin.md',
'/service-module.md',
'/auth-module.md',
'/service-plugin.md',
'/auth-plugin.md',
'/model-classes.md',
'/common-patterns.md',
'/mixins.md',
'/components.md',
'/nuxt.md'
'/data-components.md',
'/feathers-vuex-form-wrapper.md',
'/nuxt.md',
'/2.0-major-release.md'
],
serviceWorker: {
updatePopup: true
Expand Down