medikoo / dbjs

In-Memory Database Engine for JavaScript
MIT License
28 stars 4 forks source link

Clearly separate normalization of internal (from store) and external (to store) values #61

Open medikoo opened 8 years ago

medikoo commented 8 years ago

So far same normalize method was used for both sources, but it appears there are cases where rules for each case should differ, e.g. for Date type

Currently it was patched with: https://github.com/medikoo/dbjs/commit/852582a7cc291636f3314ce708e13fc3c639b354 https://github.com/medikoo/dbjs-ext/commit/3c3be9b08d6196db30091a7cfd611dde4827779e

But separation of those concerns should probably be cleaner.

Related bug report: https://github.com/egovernment/eregistrations-guatemala/issues/580