You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.good first issueFor issues. An issue that is a good choice for first-time contributors.
Not sure if I'm too late here but over the years Sequelize has create many many aliases functions. I think it would be a good idea to remove the aliases with the next major release.
find vs. findOne
findById vs. findByPrimary
afterBulkDestroy vs afterBulkDelete
addHook v. hook
VIRTUAL vs NONE
Edit: Formatting
Reacted by bozdoz, antonov-abto, Felipe Torres (fforres), Ruben Bridgewater and caleb.xiang
new DATETYPE() is sure more verbose than DATETYPE, I prefer short functional syntax in this case. Once I tried to convert datatypes to classes but stopped just because of this issue
Another alias I came across is Transaction.LOCK vs. transactionInstance.LOCK, all other enums like that are static, why is that one available on the instance as well?
Also at the same time that section should be optimized, accessing enums shouldn't invoke object creation, we should just Object.freeze and assign it directly :)
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.good first issueFor issues. An issue that is a good choice for first-time contributors.
Activity
sushantdhiman commentedon Apr 30, 2018
I have edited your post for better readability.
Good idea overall, we need to deprecate duplicate cases first, then remove them from master. This change should be easy to implement in small PRs
SimonSchick commentedon Apr 30, 2018
@sunshinewyin the ones Iisted where just examples, there are quite a few more.
SimonSchick commentedon Apr 30, 2018
@sushantdhiman I'll see if I can do that.
madmoizo commentedon Sep 14, 2018
As requested by @sushantdhiman
Final
Question
Should we add deprecation message or just add the migration table in the changelog ?
sushantdhiman commentedon Sep 14, 2018
Thanks @frlinw , A few changes
hasHooks/hasHook.upsertis well known name so we can keep thisfindByPksuggestion acceptedI can take care of deprecating them from v4 once these changes land to master
SimonSchick commentedon Sep 14, 2018
Yea sorry, been super busy, cudos to @frlinw for taking over.
madmoizo commentedon Sep 14, 2018
I started to work on it. I'm doing some reorg for imports (require) in test files because it's a mess, will make a PR after that.
madmoizo commentedon Sep 15, 2018
beforeConnection added to the list, it's not used internally and it's the last hook alias
sushantdhiman commentedon Sep 19, 2018
Implemented in #9933
SimonSchick commentedon Oct 19, 2018
Hey, what about all the
prototypealiases eg.and more?
sushantdhiman commentedon Oct 20, 2018
They are ok for now
SimonSchick commentedon Oct 20, 2018
One more, what about the
new DATATYPE()vs.DATETYPE()calls?sushantdhiman commentedon Oct 21, 2018
new DATETYPE()is sure more verbose thanDATETYPE, I prefer short functional syntax in this case. Once I tried to convert datatypes to classes but stopped just because of this issueSimonSchick commentedon Nov 17, 2018
Another alias I came across is
Transaction.LOCKvs.transactionInstance.LOCK, all otherenums like that are static, why is that one available on the instance as well?Also at the same time that section should be optimized, accessing enums shouldn't invoke object creation, we should just Object.freeze and assign it directly :)
test fix after sequelize update
✅ test fix after sequelize update
✅ test fix after sequelize update
Chore: npm audit (#39)