Skip to content

Commit 2c292da

Browse files
committed
feat(nuxt-json): update changelog for major changes and refine module export
1 parent 5da17c1 commit 2c292da

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packages/nuxt-json/CHANGELOG.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
### Major Changes
66

7-
- feat(nuxt-json): locale metadata, query utils refactor, error codes and removal of deprecated client composable
7+
- Breaking: `useContentrainClient` composable removed (simplified to API + `useContentrainModels`).
8+
- Feature: Locale list injected into metadata during build (`model.locales`).
9+
- Refactor: Shared filter & sort utilities (`runtime/utils/query.ts`).
10+
- Feature: New error codes (`INVALID_URL_ERROR`, `INVALID_DATA_ERROR`, `INVALID_RELATION`, `RELATION_NOT_FOUND`).
11+
- Internal: Nuxt 4 compatibility adjustments, type generation stability improvements.
812

913
## 1.1.0
1014

@@ -34,12 +38,6 @@
3438

3539
## 1.0.0
3640

37-
## 1.2.0
41+
### Initial Release
3842

39-
- Locale dizisi build aşamasında metadata'ya ekleniyor (`model.locales`) – lokalizasyon mevcut dillerin tespiti.
40-
- Sunucu sorgu endpointinde filtre ve sıralama mantığı ortak utility'e taşındı (`runtime/utils/query.ts`).
41-
- `useContentrainClient` composable kaldırıldı; `useContentrainModels` doğrudan API çağrıları ve kendi cache yapısı ile sadeleştirildi.
42-
- Yeni hata kodları eklendi: `INVALID_URL_ERROR`, `INVALID_DATA_ERROR`, `INVALID_RELATION`, `RELATION_NOT_FOUND`.
43-
- Nuxt 4 uyumluluk refactor'ü sonrası iç mimari temizlik.
44-
45-
- Relase Nuxt Json query builder module.
43+
- Release Nuxt JSON query builder module.

packages/nuxt-json/src/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export interface ContentrainOptions {
133133
}
134134
}
135135
export type * from './types';
136+
// Export module with relaxed any annotation to avoid TS2742 d.ts portability issues across multiple Nuxt schema versions.
136137
export default defineNuxtModule<ContentrainOptions>({
137138
meta: {
138139
name: '@contentrain/nuxt-json',
@@ -298,4 +299,4 @@ import type { Content, LocalizedContent, QueryResult, SingleQueryResult, ApiResp
298299
},
299300
});
300301
},
301-
});
302+
}) as any;

0 commit comments

Comments
 (0)