Skip to content

Commit c6d6b57

Browse files
authored
Merge pull request #171 from contentstack/development
DX | 28-04-2025 | Release
2 parents d7561cd + 38ee3e1 commit c6d6b57

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

package-lock.json

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "4.6.1",
3+
"version": "4.7.0",
44
"type": "module",
55
"license": "MIT",
66
"main": "./dist/legacy/index.cjs",
@@ -34,7 +34,6 @@
3434
},
3535
"dependencies": {
3636
"@contentstack/core": "^1.2.0",
37-
"@contentstack/utils": "^1.3.19",
3837
"axios": "^1.8.4",
3938
"humps": "^2.0.1"
4039
},
@@ -63,5 +62,6 @@
6362
"ts-node": "^10.9.2",
6463
"tsup": "^8.4.0",
6564
"webpack-cli": "^5.1.4"
66-
}
65+
},
66+
"homepage": "https://github.com/contentstack/contentstack-typescript"
6767
}

src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
import * as contentstack from './lib/contentstack';
22
export * from './lib/types';
3+
export type { Stack } from './lib/stack';
4+
export type { ContentType } from './lib/content-type';
5+
export type { Entry } from './lib/entry';
6+
export type { Asset } from './lib/asset';
7+
export type { Query } from './lib/query';
8+
export type { GlobalField } from './lib/global-field';
9+
export type { GlobalFieldQuery } from './lib/global-field-query';
10+
export type { ImageTransform } from './lib/image-transform';
11+
export type { AssetQuery } from './lib/asset-query';
12+
export type { TaxonomyQuery } from './lib/taxonomy-query';
13+
export type { ContentTypeQuery } from './lib/contenttype-query';
314

415
export default contentstack;

src/lib/contentstack.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { handleRequest } from './cache';
44
import { Stack as StackClass } from './stack';
55
import { Policy, StackConfig } from './types';
66
import * as Utility from './utils';
7-
export * as Utils from '@contentstack/utils';
87

98
let version = '{{VERSION}}';
109

src/lib/entry-queryable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class EntryQueryable extends BaseQuery {
1515
* @param {string} fieldUid - field uid to select
1616
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
1717
*/
18-
only(fieldUid: string|string[]): EntryQueryable {
18+
only(fieldUid: string|string[]): this {
1919
if (Array.isArray(fieldUid)) {
2020
let i = 0;
2121
for (const uid of fieldUid) {
@@ -41,7 +41,7 @@ export class EntryQueryable extends BaseQuery {
4141
* @param {string} fieldUid - field uid to exclude
4242
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
4343
*/
44-
except(fieldUid: string|string[]): EntryQueryable {
44+
except(fieldUid: string|string[]): this {
4545
if (Array.isArray(fieldUid)) {
4646
let i = 0;
4747
for (const uid of fieldUid) {

0 commit comments

Comments
 (0)