Skip to content

Releases: thinkjs/thinkjs

v3.2.13

16 Dec 03:21
Compare
Choose a tag to compare

2.1.3

22 Jan 02:59
Compare
Choose a tag to compare

Added think.isMaster property.
Service class added method model.
think.base added method parseModuleFromPath.
Fix bug with parsing model default value incorrect.
Fix bug when model where condition is string, add another condition will cause error.

2.1.2

22 Jan 02:59
Compare
Choose a tag to compare

Add --allowSyntheticDefaultImports parameters for TypeScript compiling.
Fix bug with creating TypeScript project error if file name suffix is not .ts.

2.1.1

22 Jan 02:59
Compare
Choose a tag to compare

Fix bug with database prefix not working.
Added support Babel set presets and plugins.
Fix bug with multiple hierachy controller can't be found.
Added deprected method getTableFields to compatible with former version.
Fix bug with baseAssign overrides custom settings.
Fix bug with missing think.RUNTIME_PATH cause path incorrect.

2.1.0

22 Jan 03:00
Compare
Choose a tag to compare

Support TypeScript, see details here.
Performance increase 90%, better than Koa and express, see benchmark here.
Added support Controller sub-folder.
Added support PostgreSQL database.
Added support set default value in Model schema.
Change Hook middleware return null will block the rest middleware.
Added alias method render for http and controller display.
Added synchronous method think.waterfall.
Added support Validate with Regex.
Added support transmit data with fetch.
Added support Logic to get request type.
Added support timed task can directly invoke action.
Upgrade Babel to 6.
Locale name is not case sensiive.
Change to asynchronous fetch template file content.
http object no longer inherit from EventEmitter.
Drop think.mode_mini mode, controller support sub-folder.
Rename name to database in database setting.
Rename fields to schema.
Rename pwd to password in database setting.
Optimize http object creation, no need to copy each time.
Filtered hidden file types like .svn, .git etc.
Move bin/index.js to src/command.js.
Move runtime folder to project root, added think.RUNTIME_PATH constant.
Added support to auto lower case adapter type, with prompt.
Added thinkData, for frequently-used data caching.
Combine think.locale and controller.locale.
Fix bug with nunjucks inherit file can't be found.
Fix bug with escaped / in pathname cause parsing error.
Fix bug with modifying data response by http.file will cause source data being modified.
Add support path / no need to change to \ in windows.
Fix bug resulting in nunjucks can place template files not only in root folder.
Added on production mode, prevent the page from outputting sensitive data.
Added on development mode, JSON parse failed message will be logged for debugging.
Fix bug resulting in on view root_path changed will also update the view path.
Fix bug with incorect required|int rule validation.
Fix bug with redis cache parsing settings.
Fix bug resulting in REST API can support logic.
Fix bug with count method failed when parameter name is keyword.

2.0.16

22 Jan 03:00
Compare
Choose a tag to compare

Added support think.parseConfig method support context.

2.0.15

22 Jan 03:00
Compare
Choose a tag to compare

Fix bug with setting nunjucks root_path logic failing.

2.0.14

22 Jan 03:00
Compare
Choose a tag to compare

Added support MongoDB with multiple host configures.
Fix bug with nunjucks root_path setting.
Added support on development mode, print the payload parsing error message.
Added support when failed to parse payload by JSON, use querystring parsing.

2.0.13

22 Jan 03:01
Compare
Choose a tag to compare

Fix bug with think.parseConfig contains adapter.
Fix bug resulting in update relation model also update files relative.
Fix use alias in countSelect reports error.
Fix bootstrap not being clean and reload on file changed.
nunjucks enable autoescape by default.

2.0.12

16 Jan 09:15
Compare
Choose a tag to compare

Fix file can't autoreload in windows when compiled.