UNPKG

6.77 kBMarkdownView Raw
1##Claire v2 là một framework Javascript chuyên dùng cho API server.
2
3- được viết bằng TypeScript
4- hỗ trợ websocket và HTTP request
5- hỗ trợ CLI để generate base project (claire-cli)
6
7
8#### Change Log:
9
103.2.14
11- add float data type for sql migration
12- @PrimaryKey can be @AutoGen
13- fix convertToDataObjects to avoid getter
14- fix init database adapter
15- fix postgres return string as big int
16- fix order clause in database adapter from 3.2.8 (missing get clean object)
17- fix order clause in database adapter from 3.2.7
18- fix update and create got undefined in field value from 3.2.6
19- fix null value of data object from 3.2.5
20- fix default http resource controller update for getter fields
21- fix default json responder
22- deep json convert for DefaultJsonResponder (AbstractModel aware)
23- introduce NoAccess decorator for http handler
24
253.2.0 [Breaking change]
26- introduce DefaultAccessConditions
27
283.1.8
29- Fix IsArray override inner data type
30- DefaultSqlAdapter use Op.in for COMMON_BELONGS operator
31- fix default value function generating
32- fix order in IQuery required other fields
33- DefaultDataValidator check for undefined of number value when using Optional()
34- DefaultSqlAdapter use Op.or for COMMON_BELONGS operator
35- add order in getOne and getMany query
36
373.0.15
38- add BIGINT support
39- data field should be required by default
40- fix string required check with ''
41- default value accepts function that returns string | number
42- fix missing float data type for sql adapter
43- fix DefaultDataValidator validate default value field
44- fix convertToDataObject of bool value
45- export missing things
46- fix updateOne of database adapters
47
483.0.0 [Breaking change]
49- introduce dependency injection
50
512.5.0
52- update and fix Table Mapper bug
53
542.4.4 [Breaking change]
55- single port for HTTP and Socket
56- unify validator decorators
57- add logic and data field name for model
58- fix some validation logic
59
602.3.5 [Breaking change]
61- Change DataTable decorator signature
62- Change DataField decorator signature
63
642.3.4
65- Allow DefaultSqlAdapter to omit migration
66
672.3.2
68- DefaultEnvProvider parses simple env without env prefix
69
702.3.1
71- fix DefaultStaticFileController
72
732.3.0 [Breaking change]
74- fix request upgrader, merge handlers
75- add new controller metadata interface, change HttpHandlerMetadata to ControllerHandlerMetadata
76
772.2.1
78- fix request handler lost context when calling in lambda function, leads to wrong query, params and body passing
79
802.2.0 [Breaking change]
81- Fix handler query, params, body async resolve
82- Add @PermissionGroup for controller, modify @Permission for handler
83- Reorder @Validator parameters
84
852.1.13
86- refactor transaction
87- DefaultHttpResourceController skips skipped field in model when createResource and updateResource
88- fix ModelMetadata dependency sort
89
902.1.12
91- fix transaction bug in DefaultSqlAdapter, DefaultNoSqlAdapter
92
932.1.11 [Breaking change]
94- remove env provider from AppContext. We recommend to fully configure the app with env provider before running it.
95
962.1.10
97- add warning when override controller route
98- fix DefaultEnvProvider parsing boolean
99- add CORS and body parser default implementation
100- add transaction support in database adapter
101
1022.1.9
103- fix DefaultHttpResourceController missing case for array value in getAllResources
104
1052.1.8
106- fix DefaultNoSqlAdapter requires primary key when autoInc with number data type (again, wtf)
107
1082.1.7
109- fix DefaultNoSqlAdapter requires primary key when autoInc with number data type
110- populate autoInc primary key when insert rather than when get
111
1122.1.6
113- fix DefaultSqlAdapter updateMany return 0 when updated value matches found value
114
1152.1.5
116- default HttpResourceController getAllResources has query operator accepts primary key and foreign key query as an array of ids
117- default HttpResourceController getAllResources has query operator accepts string key as regular expression
118- add new regex operator for database adapter
119
1202.1.4
121- fix Boolean converting in DefaultDataValidator, missing data type in DefaultHttpResourceController
122
1232.1 [Breaking change]
124- FileLogMedia rotation by number of day
125- remove using of callback in ClaireBuilder
126- add implementation to almost all abstract classes and provider AppContext in init function
127- fix absolute sequelize-cli call
128- Controller: @OpenAccess decorator to by pass AuthorizationProvider
129- DefaultEnvProvider: add fileNameResolver
130- add SubSet DataValidationRule
131- add query validation for DefaultHttpResourceController
132- add RBAC and IAcccessCondition, ConditionValueType
133- fix DefaultApiDocController exception when getting mount points
134- Modify initable interface to include stop
135- Fix not bootstrap bug
136- Add stoppable to Initable interface
137
1382.0 [Breaking change]
139- refactor set request handler
140- abstract DefaultMongoDBAdapter to DefaultNoSqlAdapter
141- rename Ws to Socket for all classes
142- add DefaultApiDocController for exposing api document
143- allow undefined in log media, controller and service array
144
1451.9.0 [Breaking change]
146- change HTTP controller decorator to Mapping
147- add request params validation and data type parsing
148- improve log readability
149- fix bug of pre-using model -> injection of models
150- adding log of HTTP method in DefaultHttpErrorHandler
151- fix saveOne/saveMany does not populate default value
152- fix findOne not check for primaryType for auto id
153
1541.8.0 [Breaking change]
155- refactor WsChannelHandler, using Message decorator
156- update dependencies and test
157
1581.7.0 [Breaking change]
159- getEnvProvider.load receive class argument instead of generic argument
160- claire.start return Promise<IAppContext> and throw ClaireError
161- fix bug: claire.start does not require argument
162
1631.6 [Breaking change]
164- refactor IQueryProvider and IQuery
165- model does no longer need of constructor at definition
166
1671.5 [Breaking change]
168- remove TableMapper Encoding decorator
169- change in DefaultEnvProvider: now using EnvTemplate decorator and EnvVar decorator
170- remove operatorAliases in sequelize option
171
1721.4 [Breaking change]
173- getOne does no more throw Exception. F\*ck you getOne. F\*ck me too.
174
1751.3 [Breaking change]
176- Initable init function return Promise<void>
177- add boolean type to QueryOperator
178
1791.2 [Breaking change]
180- remove HttpRouteHandler and getRoutes in AbstractHttpController, using decorator instead
181- remove controller implementation of Initable
182- DefaultStaticController has mount path of "/static"
183- fix HttpRouteHandler not init prototype
184
1851.1
186- remove mandatory of responder, middleware, requestValidator, responseValidator in HttpRouteHandler
187- remove generic from IHttpRequest
188- add string validation for DefaultDataValidator
189- add strictTypeCheck option to check HTTP request params (no-strict) and request body (strict)
190- add projection option to getOne and getMany
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208