Phillip Thelen
f8d315ff6e
Upgrade to mongoose 7 ( #14971 )
...
* remove some unused dependencies
* update mongoose version
* make common tests pass
* Make unit tests pass
* make api v3 integration tests pass
* fix lint issues
* fix issue with package-lock
* fix(lint): we don't need no .js
* fix(lint): update to latest config-habitrpg
* chore(npm): update package locks
* fix(test): replace deprecated fn
* chore(package): update eslint-habitrpg again
* fix(lint): server linting
* fix(lint): client linting
* fix(client): correct mangled common imports
* chore(npm): update package-locks
* fix(lint): punctuation, module
---------
Co-authored-by: SabreCat <sabrecat@gmail.com >
Co-authored-by: SabreCat <sabe@habitica.com >
2024-01-16 15:18:47 -06:00
Bart Enkelaar
234258b41e
Move from deprecated moment#zone to moment#utcOffset ( #12207 )
...
* Issue 10209 - Remove read usages of zone
* Issue 10209 - Add coverage on daysSince and startOfDay cron utility functions
* Issue 10209 - Add unit test for daysUserHasMissed method
* Issue 10209 - Remove usages of deprecated `moment.js#zone` method.
* Issue 10209 - Add helper function to centralise logic
Also simplify timezoneOffsetToUtc function in site.vue
* Issue 10209 - Also add getUtcOffset as method on user
Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com >
2020-07-25 13:22:41 +02:00
Matteo Pagliazzi
8bae0223bb
fix linting for server (except for length of apidoc)
2019-10-10 20:11:50 +02:00
Matteo Pagliazzi
621787915c
start upgrading eslint
2019-10-08 16:57:10 +02:00
Matteo Pagliazzi
573f2e4732
fix preening when history entries are null
2018-06-29 20:03:45 +02:00
Matteo Pagliazzi
c1bd7f5dc5
Habits: store one history entry per day ( #10442 )
...
* initial refactor
* add scoredUp and scoredDown values for habits history entries, one entry per habit per day
* fix lint and add initial migration
* update old test
* remove scoreNotes
* dry run for migration
* migration fixes
* update migration and remove old test
* fix
* add challenges migration (read only)
* fix challenges migration
* handle custom day start
* update tasks in migration
* scoring: support cds
* add new test
2018-06-21 21:25:19 +02:00
Matteo Pagliazzi
98c019a0b6
Upgrade lodash to v4 and lint more files ( #8495 )
...
* common: import lodash modules separately
* remove test/content from .eslintignore, fix with eslint --fix content/index
* lint test/content
* lint content/index except for lodash methods
* upgrade server/models
* upgrade server/middlewares and server/libs
* port server/controllers/top-level
* port server/controllers/api-v3
* port views and tests
* client old port lodash and _(, missing _.
* upgrade client-old
* port common/script (root level files only)
* port common/script/fns
* port common/libs
* port common/script/ops
* port common/script/content and common/script/libs/shops.js
* misc fixes
* misc fixes
* misc fixes
* more tests fixes
* fix payments test stubbing, down to 2 failing tests
* remove more instances of lodash wrapping
* fix bug where toObject does not clone object
* fix tests
* upgrade migration or add lodash 4 note
* update shrinkwrap
* fix linting
* upgrade eslint-config-habitrpg
* update shrinkwrap
* recompile shrinkwrap
2017-03-01 17:10:48 +01:00
Matteo Pagliazzi
60f34dafb0
Deprecate API v2 (was Revert "Revert "Deprecate API v2"") ( #7802 )
...
* Revert "Revert "Deprecate API v2""
* fix path in shops controller
2016-08-01 22:36:10 +02:00
Matteo Pagliazzi
590adb3438
Revert "Deprecate API v2" ( #7801 )
2016-07-17 18:15:25 +02:00
Matteo Pagliazzi
45c31a2bcf
Deprecate API v2 ( #7761 )
...
* deprecate api-v2
* remove v2 test helpers
* remove unused string
2016-07-16 19:56:18 +02:00