Thinkjs Versions Save

Use full ES2015+ features to develop Node.js applications, Support TypeScript.

v3.2.13

3 years ago

2.0.13

8 years ago

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.14

8 years ago

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.15

8 years ago

Fix bug with setting nunjucks root_path logic failing.

2.0.16

8 years ago

Added support think.parseConfig method support context.

2.1.0

8 years ago

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.1.1

8 years ago

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.2

8 years ago

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

2.1.3

8 years ago

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.0.0

8 years ago

Can use full features of ES6/7 to develop Support different project structure and environment Support rich database like Mysql,MongoDB,SQLite Code auto reload without restarting Node service Support multiple WebSocket library, like socket.io and sockjs Support multiple Session types, like Memory, like File, Db, Redis etc Support multiple Cache, like MemoryFile, Redis,Memcache etc Support multiple template engine, like ejs,jade,swig,numjucks etc Support Aspect Oriented Programming, support methods like __before, __after etc Support error page customization, like 400,404,500,503 etc CLI support invoking action and timer task Rich Hook and Middleware Support detailed logging of all kinds, like request, error and performance logging REST API auto-generated Support internationalization and theming Comprehensive test cases 1500+, with code coverage > 95%