- Can migrate using config in environment variables
- Add an option to always log in the terminal
./hearthjs start prod --console_log
- Stop creating conf file if it does not exists on startup, use process.env instead (see doc)
- Fix bug in SQL to JSON converter when using JSON object in database
- Fix bug with test file refresh
- 🔥 Improve performance of
sqlToJson
function. On big queries, the function could be really slow. Performance has been imrpoved up to 80% on tested queries (parsing going from 1.34s to 248ms) - Add a new constant that can be used in SQL file (
PRINT_READY
which print the SQL request already filled with data)
- Can start a socket server to send event to client
- Remove semi colon
- Fix authorization issue (#7)
- Dot not parse upload directory when launching test. When the upload directory is big, it tooks too much time to launch tests.
- Fix SQL request parameters bugs when including a SQL request in another SQL file.
- Expose validation file in index.js
- Stringify SQL parameters when printing request.
- Add
CASCADE
to cleanTRUNCATE
request (#6) request
anddebug
are moved to dependencies instead of dev dependencies (#8 & #9)- Init command create all directories with .gitkeep files (#10)
- Add
(
et)
in translation regex
- Fix translate command to also fin tr tag
- Ignore the following directories while finding translations ('/uploads', '/migration', '/sql', '/config', '/datasets', '/logs')
- Return a 400 code when an error is returned
- Can return a specific status code in addon
- Can send index in include parameters for templating
- Can set default value for array and object
- Upgrade commander and pg package to be comaptible with node 14.15
- Can update status code in before/after callback
- Add auth token in cookie and in Authorization header
- Remove https server for prod environment
- Can set a lang key for all translations used in schema
- Can update listening port for HTTPS
- Run a HTTPS server when using
prod
environment.
- Add assertTableOfObject in helper
- Remove JSON parse middleware from hearthjs, now you have to set it in your init function.
- Add object type in converter to avoid duplicating object
- Fix bug in mustache when a loop was too big and results in a
maximum call stacks size exceeded
- Don't display migration diff if file is too big
- Correct bugs
- Can add force and yes option to migrate command
- Improve converter
- Update returned result of database
exec
andquery
promise function, return an array now - Can pass parameter to SQL includes
- Add a helper to handle async/await error
- Correct bugs with log file deletion
- Can call
exec
andquery
function of the database with promise - Can access the env (test, dev or prod) with
hearthjs.env
- Correct bugs
- Add the possibility to include SQL file in another SQL file
- Add genericQueue in helpers
- Log errors which are generated by the query key (SQL filename) of a schema
- Send
req
instead ofreq.body
to SQL files - Correct the
put
request in testClient
- Can access express from hearthjs module
- Add dynamic command
- Update commander version from 3.0.1 to 4.0.1
- Execute addons before middleware
- Rework CLI
- Fix bug when converting the result of a SQL request to a JSON object with date type
- Fix migration name which gave a bad order
- Add the possibility to update the header in client test request
- Fix bug which throws an error when a test failed usint client test request
- Watch following files when launching
./hearthjs test
command./api/**/test/test.*.js
/api/**/api.*.js
/api/**/sql/*.sql
/test/test.*.js
- Correct errors in documentation
- Data validation: Correct date type validation. Accet any valid date.
./hearthjs test
crash on first failed test- translations: Check value is not empty. If the value is empty, the key is returned.
- Add http client for tests. It is possible to create instance of login user to execute authenticated request.
- Add init function (beforeInit, init and after init)
- Correct translations regex. Now it match space,
.
,,
,/
,\
,|
,?
,!
,:
,+
,-
,*
,=
- Improve test documentation
- Add documentation on server
- Data validation: type date accepts date object
- Update main in package.json
- Add first version of hearthjs
- Add Logger
- Add API declaration
- Add Database management
- Add Cron
- Add Translations
- Add Data mapping
- Add Data validation
- Add Documentation
- Add Addons
- Add Extern API declaration