claire-framework
- được viết bằng TypeScript - hỗ trợ websocket và HTTP request - hỗ trợ CLI để generate base project (claire-cli)
Last updated 2 days ago by athongintel .
ISC · Original npm · Tarball · package.json
$ cnpm install claire-framework 
SYNC missed versions from official npm registry.

##Claire v2 là một framework Javascript chuyên dùng cho API server.

  • được viết bằng TypeScript
  • hỗ trợ websocket và HTTP request
  • hỗ trợ CLI để generate base project (claire-cli)

Change Log:

3.3.3 [Breaking change]

  • fix orQueries when queries is empty
  • fix orQueries not push result
  • export bwi (between inclusive)
  • getOne and getMany now support OR operator, receiving each object of query condition as operand
  • add between operator for number

3.2.14

  • add float data type for sql migration
  • @PrimaryKey can be @AutoGen
  • fix convertToDataObjects to avoid getter
  • fix init database adapter
  • fix postgres return string as big int
  • fix order clause in database adapter from 3.2.8 (missing get clean object)
  • fix order clause in database adapter from 3.2.7
  • fix update and create got undefined in field value from 3.2.6
  • fix null value of data object from 3.2.5
  • fix default http resource controller update for getter fields
  • fix default json responder
  • deep json convert for DefaultJsonResponder (AbstractModel aware)
  • introduce NoAccess decorator for http handler

3.2.0 [Breaking change]

  • introduce DefaultAccessConditions

3.1.8

  • Fix IsArray override inner data type
  • DefaultSqlAdapter use Op.in for COMMON_BELONGS operator
  • fix default value function generating
  • fix order in IQuery required other fields
  • DefaultDataValidator check for undefined of number value when using Optional()
  • DefaultSqlAdapter use Op.or for COMMON_BELONGS operator
  • add order in getOne and getMany query

3.0.15

  • add BIGINT support
  • data field should be required by default
  • fix string required check with ''
  • default value accepts function that returns string | number
  • fix missing float data type for sql adapter
  • fix DefaultDataValidator validate default value field
  • fix convertToDataObject of bool value
  • export missing things
  • fix updateOne of database adapters

3.0.0 [Breaking change]

  • introduce dependency injection

2.5.0

  • update and fix Table Mapper bug

2.4.4 [Breaking change]

  • single port for HTTP and Socket
  • unify validator decorators
  • add logic and data field name for model
  • fix some validation logic

2.3.5 [Breaking change]

  • Change DataTable decorator signature
  • Change DataField decorator signature

2.3.4

  • Allow DefaultSqlAdapter to omit migration

2.3.2

  • DefaultEnvProvider parses simple env without env prefix

2.3.1

  • fix DefaultStaticFileController

2.3.0 [Breaking change]

  • fix request upgrader, merge handlers
  • add new controller metadata interface, change HttpHandlerMetadata to ControllerHandlerMetadata

2.2.1

  • fix request handler lost context when calling in lambda function, leads to wrong query, params and body passing

2.2.0 [Breaking change]

  • Fix handler query, params, body async resolve
  • Add @PermissionGroup for controller, modify @Permission for handler
  • Reorder @Validator parameters

2.1.13

  • refactor transaction
  • DefaultHttpResourceController skips skipped field in model when createResource and updateResource
  • fix ModelMetadata dependency sort

2.1.12

  • fix transaction bug in DefaultSqlAdapter, DefaultNoSqlAdapter

2.1.11 [Breaking change]

  • remove env provider from AppContext. We recommend to fully configure the app with env provider before running it.

2.1.10

  • add warning when override controller route
  • fix DefaultEnvProvider parsing boolean
  • add CORS and body parser default implementation
  • add transaction support in database adapter

2.1.9

  • fix DefaultHttpResourceController missing case for array value in getAllResources

2.1.8

  • fix DefaultNoSqlAdapter requires primary key when autoInc with number data type (again, wtf)

2.1.7

  • fix DefaultNoSqlAdapter requires primary key when autoInc with number data type
  • populate autoInc primary key when insert rather than when get

2.1.6

  • fix DefaultSqlAdapter updateMany return 0 when updated value matches found value

2.1.5

  • default HttpResourceController getAllResources has query operator accepts primary key and foreign key query as an array of ids
  • default HttpResourceController getAllResources has query operator accepts string key as regular expression
  • add new regex operator for database adapter

2.1.4

  • fix Boolean converting in DefaultDataValidator, missing data type in DefaultHttpResourceController

2.1 [Breaking change]

  • FileLogMedia rotation by number of day
  • remove using of callback in ClaireBuilder
  • add implementation to almost all abstract classes and provider AppContext in init function
  • fix absolute sequelize-cli call
  • Controller: @OpenAccess decorator to by pass AuthorizationProvider
  • DefaultEnvProvider: add fileNameResolver
  • add SubSet DataValidationRule
  • add query validation for DefaultHttpResourceController
  • add RBAC and IAcccessCondition, ConditionValueType
  • fix DefaultApiDocController exception when getting mount points
  • Modify initable interface to include stop
  • Fix not bootstrap bug
  • Add stoppable to Initable interface

2.0 [Breaking change]

  • refactor set request handler
  • abstract DefaultMongoDBAdapter to DefaultNoSqlAdapter
  • rename Ws to Socket for all classes
  • add DefaultApiDocController for exposing api document
  • allow undefined in log media, controller and service array

1.9.0 [Breaking change]

  • change HTTP controller decorator to Mapping
  • add request params validation and data type parsing
  • improve log readability
  • fix bug of pre-using model -> injection of models
  • adding log of HTTP method in DefaultHttpErrorHandler
  • fix saveOne/saveMany does not populate default value
  • fix findOne not check for primaryType for auto id

1.8.0 [Breaking change]

  • refactor WsChannelHandler, using Message decorator
  • update dependencies and test

1.7.0 [Breaking change]

  • getEnvProvider.load receive class argument instead of generic argument
  • claire.start return Promise<IAppContext> and throw ClaireError
  • fix bug: claire.start does not require argument

1.6 [Breaking change]

  • refactor IQueryProvider and IQuery
  • model does no longer need of constructor at definition

1.5 [Breaking change]

  • remove TableMapper Encoding decorator
  • change in DefaultEnvProvider: now using EnvTemplate decorator and EnvVar decorator
  • remove operatorAliases in sequelize option

1.4 [Breaking change]

  • getOne does no more throw Exception. F*ck you getOne. F*ck me too.

1.3 [Breaking change]

  • Initable init function return Promise<void>
  • add boolean type to QueryOperator

1.2 [Breaking change]

  • remove HttpRouteHandler and getRoutes in AbstractHttpController, using decorator instead
  • remove controller implementation of Initable
  • DefaultStaticController has mount path of "/static"
  • fix HttpRouteHandler not init prototype

1.1

  • remove mandatory of responder, middleware, requestValidator, responseValidator in HttpRouteHandler
  • remove generic from IHttpRequest
  • add string validation for DefaultDataValidator
  • add strictTypeCheck option to check HTTP request params (no-strict) and request body (strict)
  • add projection option to getOne and getMany

Current Tags

  • 3.3.3                                ...           latest (2 days ago)

138 Versions

  • 3.3.3                                ...           2 days ago
  • 3.3.2                                ...           2 days ago
  • 3.3.1                                ...           2 days ago
  • 3.3.0                                ...           2 days ago
  • 3.2.14                                ...           9 days ago
  • 3.2.13                                ...           11 days ago
  • 3.2.12                                ...           12 days ago
  • 3.2.11                                ...           15 days ago
  • 3.2.10                                ...           16 days ago
  • 3.2.9                                ...           21 days ago
  • 3.2.8                                ...           21 days ago
  • 3.2.7                                ...           21 days ago
  • 3.2.6                                ...           22 days ago
  • 3.2.5                                ...           22 days ago
  • 3.2.4                                ...           2 months ago
  • 3.2.3                                ...           2 months ago
  • 3.2.2                                ...           2 months ago
  • 3.2.1                                ...           2 months ago
  • 3.2.0                                ...           2 months ago
  • 3.1.8                                ...           2 months ago
  • 3.1.7                                ...           2 months ago
  • 3.1.6                                ...           2 months ago
  • 3.1.5                                ...           2 months ago
  • 3.1.4                                ...           2 months ago
  • 3.1.3                                ...           2 months ago
  • 3.1.2                                ...           3 months ago
  • 3.1.1                                ...           3 months ago
  • 3.1.0                                ...           3 months ago
  • 3.0.15                                ...           3 months ago
  • 3.0.14                                ...           3 months ago
  • 3.0.13                                ...           3 months ago
  • 3.0.12                                ...           3 months ago
  • 3.0.11                                ...           3 months ago
  • 3.0.10                                ...           3 months ago
  • 3.0.9                                ...           3 months ago
  • 3.0.8                                ...           3 months ago
  • 3.0.7                                ...           3 months ago
  • 3.0.6                                ...           3 months ago
  • 3.0.5                                ...           3 months ago
  • 3.0.4                                ...           3 months ago
  • 3.0.3                                ...           3 months ago
  • 3.0.2                                ...           3 months ago
  • 3.0.1                                ...           3 months ago
  • 3.0.0                                ...           3 months ago
  • 2.5.0                                ...           4 months ago
  • 2.4.5                                ...           4 months ago
  • 2.4.4                                ...           4 months ago
  • 2.4.3                                ...           4 months ago
  • 2.4.2                                ...           4 months ago
  • 2.4.1                                ...           4 months ago
  • 2.4.0                                ...           4 months ago
  • 2.3.5                                ...           5 months ago
  • 2.3.4                                ...           5 months ago
  • 2.3.3                                ...           5 months ago
  • 2.3.2                                ...           5 months ago
  • 2.3.1                                ...           5 months ago
  • 2.3.0                                ...           5 months ago
  • 2.2.1                                ...           5 months ago
  • 2.2.0                                ...           5 months ago
  • 2.1.13                                ...           5 months ago
  • 2.1.12                                ...           5 months ago
  • 2.1.11                                ...           5 months ago
  • 2.1.10                                ...           5 months ago
  • 2.1.9                                ...           5 months ago
  • 2.1.8                                ...           5 months ago
  • 2.1.7                                ...           5 months ago
  • 2.1.6                                ...           5 months ago
  • 2.1.5                                ...           5 months ago
  • 2.1.4                                ...           5 months ago
  • 2.1.3                                ...           5 months ago
  • 2.1.2                                ...           5 months ago
  • 2.1.1                                ...           6 months ago
  • 2.1.0                                ...           6 months ago
  • 2.0.1                                ...           6 months ago
  • 2.0.0                                ...           6 months ago
  • 1.11.0                                ...           6 months ago
  • 1.10.1                                ...           6 months ago
  • 1.10.0                                ...           6 months ago
  • 1.9.3                                ...           6 months ago
  • 1.9.2                                ...           6 months ago
  • 1.9.1                                ...           6 months ago
  • 1.9.0                                ...           6 months ago
  • 1.8.1                                ...           6 months ago
  • 1.8.0                                ...           6 months ago
  • 1.7.1                                ...           6 months ago
  • 1.7.0                                ...           6 months ago
  • 1.6.1                                ...           6 months ago
  • 1.6.0                                ...           6 months ago
  • 1.5.1                                ...           6 months ago
  • 1.5.0                                ...           6 months ago
  • 1.4.0                                ...           6 months ago
  • 1.3.1                                ...           6 months ago
  • 1.3.0                                ...           6 months ago
  • 1.2.1                                ...           6 months ago
  • 1.2.0                                ...           6 months ago
  • 1.1.25                                ...           6 months ago
  • 1.1.24                                ...           7 months ago
  • 1.1.23                                ...           7 months ago
  • 1.1.22                                ...           7 months ago
  • 1.1.21                                ...           7 months ago
  • 1.1.20                                ...           9 months ago
  • 1.1.19                                ...           9 months ago
  • 1.1.18                                ...           9 months ago
  • 1.1.17                                ...           9 months ago
  • 1.1.16                                ...           9 months ago
  • 1.1.15                                ...           9 months ago
  • 1.1.14                                ...           9 months ago
  • 1.1.13                                ...           9 months ago
  • 1.1.12                                ...           9 months ago
  • 1.1.11                                ...           10 months ago
  • 1.1.10                                ...           10 months ago
  • 1.1.9                                ...           a year ago
  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.3.13                                ...           a year ago
  • 0.2.13                                ...           a year ago
  • 0.2.12                                ...           a year ago
  • 0.2.11                                ...           a year ago
  • 0.2.10                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 60
Last Day 4
Last Week 60
Last Month 702
Dependencies (19)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |