File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.1.7-rc.1] - 2023-03-17
8+ ### Changed
9+ - ` @distributedlab/jac ` - migrate from ` jsona ` dependency to the ` @distributedlab/jsona `
10+
711## [ 0.1.7-rc.0] - 2023-03-17
812### Added
913- ` root ` : Contributing guide in the ` README.md ` file
@@ -79,7 +83,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7983
8084[ old repo ] : https://github.com/distributed-lab/web-kit-old
8185
82- [ Unreleased ] : https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...HEAD
86+ [ Unreleased ] : https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...HEAD
87+ [ 0.1.7-rc.1 ] : https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...0.1.7-rc.1
8388[ 0.1.7-rc.0 ] : https://github.com/distributed-lab/web-kit/compare/0.1.6...0.1.7-rc.0
8489[ 0.1.6 ] : https://github.com/distributed-lab/web-kit/compare/0.1.5...0.1.6
8590[ 0.1.5 ] : https://github.com/distributed-lab/web-kit/compare/0.1.4...0.1.5
Original file line number Diff line number Diff line change 11{
22 "name" : " @distributedlab/jac" ,
3- "version" : " 0.1.7-rc.0 " ,
3+ "version" : " 0.1.7-rc.1 " ,
44 "description" : " A library for constructing JSON-API compliant requests and responses" ,
55 "repository" : {
66 "type" : " git" ,
4646 "@types/lodash" : " ^4" ,
4747 "@types/node" : " ^18.14.2" ,
4848 "jest" : " ^29.4.3" ,
49- "jsona" : " ^1.11.0" ,
5049 "tsc-alias" : " ^1.8.2"
5150 },
5251 "dependencies" : {
52+ "@distributedlab/jsona" : " ^1.13.0" ,
5353 "axios" : " ^1.3.4" ,
5454 "lodash" : " ^4.17.21"
5555 },
5656 "typedoc" : {
5757 "entryPoint" : " ./src/index.ts" ,
5858 "readmeFile" : " ./README.md" ,
5959 "displayName" : " @distributedlab/jac"
60- },
61- "peerDependencies" : {
62- "jsona" : " *"
6360 }
6461}
Original file line number Diff line number Diff line change 1+ import Jsona from '@distributedlab/jsona'
12import { AxiosResponse , RawAxiosResponseHeaders } from 'axios'
2- import Jsona from 'jsona'
33import isEmpty from 'lodash/isEmpty'
44
55import { HTTP_METHODS , HTTP_STATUS_CODES } from '@/enums'
@@ -18,14 +18,14 @@ const formatter = new Jsona()
1818 * API response wrapper.
1919 */
2020export class JsonApiResponse < T , U = JsonApiDefaultMeta > {
21- private _raw : AxiosResponse
22- private _rawData ! : Record < string , unknown >
21+ private readonly _raw : AxiosResponse
22+ private readonly _rawData ! : Record < string , unknown >
2323 private _data ! : T
24- private _links : JsonApiResponseLinks
24+ private readonly _links : JsonApiResponseLinks
2525 private _apiClient : JsonApiClient
26- private _isNeedRaw : boolean
27- private _withCredentials : boolean
28- private _meta : U
26+ private readonly _isNeedRaw : boolean
27+ private readonly _withCredentials : boolean
28+ private readonly _meta : U
2929
3030 constructor ( opts : {
3131 raw : AxiosResponse
Original file line number Diff line number Diff line change 11{
22 "name" : " @distributedlab/tools" ,
3- "version" : " 0.1.7-rc.0 " ,
3+ "version" : " 0.1.7-rc.1 " ,
44 "description" : " Collection of common utility functions and classes" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -414,19 +414,26 @@ __metadata:
414414 version : 0.0.0-use.local
415415 resolution : " @distributedlab/jac@workspace:packages/jac"
416416 dependencies :
417+ " @distributedlab/jsona " : ^1.13.0
417418 " @types/jest " : ^29.4.0
418419 " @types/lodash " : ^4
419420 " @types/node " : ^18.14.2
420421 axios : ^1.3.4
421422 jest : ^29.4.3
422- jsona : ^1.11.0
423423 lodash : ^4.17.21
424424 tsc-alias : ^1.8.2
425- peerDependencies :
426- jsona : " *"
427425 languageName : unknown
428426 linkType : soft
429427
428+ " @distributedlab/jsona@npm:^1.13.0 " :
429+ version : 1.13.0
430+ resolution : " @distributedlab/jsona@npm:1.13.0"
431+ dependencies :
432+ tslib : ^2.4.1
433+ checksum : 1107ea174a504899c16f001c32366282d62e0cbcdd334d2e1d6c4ede29e7f23e5de21c87073681197dac489b626ba8591917e6768481bfa823794a39f9fa2378
434+ languageName : node
435+ linkType : hard
436+
430437" @distributedlab/tools@workspace:packages/tools " :
431438 version : 0.0.0-use.local
432439 resolution : " @distributedlab/tools@workspace:packages/tools"
@@ -3999,15 +4006,6 @@ __metadata:
39994006 languageName : node
40004007 linkType : hard
40014008
4002- " jsona@npm:^1.11.0 " :
4003- version : 1.11.0
4004- resolution : " jsona@npm:1.11.0"
4005- dependencies :
4006- tslib : ^2.4.1
4007- checksum : 9a726b871f419f59b0733e4f7eda51324931a41cf30042e9b8bedb06e26cd4364469b94a258967ed2066acfd6206db885cc9ee5e94cfdf1e083dc43c7e4d819f
4008- languageName : node
4009- linkType : hard
4010-
40114009" jsonc-parser@npm:^3.2.0 " :
40124010 version : 3.2.0
40134011 resolution : " jsonc-parser@npm:3.2.0"
You can’t perform that action at this time.
0 commit comments