Skip to content

Commit

Permalink
0.1.7-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Mar 17, 2023
1 parent 90516d0 commit d39fb1f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.7-rc.1] - 2023-03-17
### Changed
- `@distributedlab/jac` - migrate from `jsona` dependency to the `@distributedlab/jsona`

## [0.1.7-rc.0] - 2023-03-17
### Added
- `root`: Contributing guide in the `README.md` file
Expand Down Expand Up @@ -79,7 +83,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[old repo]: https://github.com/distributed-lab/web-kit-old

[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...HEAD
[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...HEAD
[0.1.7-rc.1]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...0.1.7-rc.1
[0.1.7-rc.0]: https://github.com/distributed-lab/web-kit/compare/0.1.6...0.1.7-rc.0
[0.1.6]: https://github.com/distributed-lab/web-kit/compare/0.1.5...0.1.6
[0.1.5]: https://github.com/distributed-lab/web-kit/compare/0.1.4...0.1.5
Expand Down
7 changes: 2 additions & 5 deletions packages/jac/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@distributedlab/jac",
"version": "0.1.7-rc.0",
"version": "0.1.7-rc.1",
"description": "A library for constructing JSON-API compliant requests and responses",
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,19 +46,16 @@
"@types/lodash": "^4",
"@types/node": "^18.14.2",
"jest": "^29.4.3",
"jsona": "^1.11.0",
"tsc-alias": "^1.8.2"
},
"dependencies": {
"@distributedlab/jsona": "^1.13.0",
"axios": "^1.3.4",
"lodash": "^4.17.21"
},
"typedoc": {
"entryPoint": "./src/index.ts",
"readmeFile": "./README.md",
"displayName": "@distributedlab/jac"
},
"peerDependencies": {
"jsona": "*"
}
}
14 changes: 7 additions & 7 deletions packages/jac/src/response.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Jsona from '@distributedlab/jsona'
import { AxiosResponse, RawAxiosResponseHeaders } from 'axios'
import Jsona from 'jsona'
import isEmpty from 'lodash/isEmpty'

import { HTTP_METHODS, HTTP_STATUS_CODES } from '@/enums'
Expand All @@ -18,14 +18,14 @@ const formatter = new Jsona()
* API response wrapper.
*/
export class JsonApiResponse<T, U = JsonApiDefaultMeta> {
private _raw: AxiosResponse
private _rawData!: Record<string, unknown>
private readonly _raw: AxiosResponse
private readonly _rawData!: Record<string, unknown>
private _data!: T
private _links: JsonApiResponseLinks
private readonly _links: JsonApiResponseLinks
private _apiClient: JsonApiClient
private _isNeedRaw: boolean
private _withCredentials: boolean
private _meta: U
private readonly _isNeedRaw: boolean
private readonly _withCredentials: boolean
private readonly _meta: U

constructor(opts: {
raw: AxiosResponse
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@distributedlab/tools",
"version": "0.1.7-rc.0",
"version": "0.1.7-rc.1",
"description": "Collection of common utility functions and classes",
"repository": {
"type": "git",
Expand Down
22 changes: 10 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -414,19 +414,26 @@ __metadata:
version: 0.0.0-use.local
resolution: "@distributedlab/jac@workspace:packages/jac"
dependencies:
"@distributedlab/jsona": ^1.13.0
"@types/jest": ^29.4.0
"@types/lodash": ^4
"@types/node": ^18.14.2
axios: ^1.3.4
jest: ^29.4.3
jsona: ^1.11.0
lodash: ^4.17.21
tsc-alias: ^1.8.2
peerDependencies:
jsona: "*"
languageName: unknown
linkType: soft

"@distributedlab/jsona@npm:^1.13.0":
version: 1.13.0
resolution: "@distributedlab/jsona@npm:1.13.0"
dependencies:
tslib: ^2.4.1
checksum: 1107ea174a504899c16f001c32366282d62e0cbcdd334d2e1d6c4ede29e7f23e5de21c87073681197dac489b626ba8591917e6768481bfa823794a39f9fa2378
languageName: node
linkType: hard

"@distributedlab/tools@workspace:packages/tools":
version: 0.0.0-use.local
resolution: "@distributedlab/tools@workspace:packages/tools"
Expand Down Expand Up @@ -3999,15 +4006,6 @@ __metadata:
languageName: node
linkType: hard

"jsona@npm:^1.11.0":
version: 1.11.0
resolution: "jsona@npm:1.11.0"
dependencies:
tslib: ^2.4.1
checksum: 9a726b871f419f59b0733e4f7eda51324931a41cf30042e9b8bedb06e26cd4364469b94a258967ed2066acfd6206db885cc9ee5e94cfdf1e083dc43c7e4d819f
languageName: node
linkType: hard

"jsonc-parser@npm:^3.2.0":
version: 3.2.0
resolution: "jsonc-parser@npm:3.2.0"
Expand Down

0 comments on commit d39fb1f

Please sign in to comment.