@okam/core-lib 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## 1.17.1 (2026-01-19)
2
+
3
+ ### 🚀 Features
4
+
5
+ - ⚠️ React 19 + Next.js 15 upgrade for all @okam/* packages ([#369](https://github.com/OKAMca/stack/pull/369))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - cross-lib type imports are always absolute ([#392](https://github.com/OKAMca/stack/pull/392))
10
+ - **core-lib:** stop bundling okam libs ([7985a31](https://github.com/OKAMca/stack/commit/7985a31))
11
+
12
+ ### ⚠️ Breaking Changes
13
+
14
+ - Consumers must now have react and react-dom in their own
15
+
16
+ ### ❤️ Thank You
17
+
18
+ - Marie-Maxime Tanguay @marie-maxime
19
+ - Pierre-Olivier Clerson @poclerson
20
+ - poclerson
21
+
1
22
  ## 1.17.0 (2025-07-24)
2
23
 
3
24
  ### 🚀 Features
@@ -1,5 +1,6 @@
1
- import type { Exception } from '@tsed/exceptions';
2
- import type { JsonApiError } from './json-api-response.types';
1
+ import { Exception } from '@tsed/exceptions';
2
+ import { JsonApiError } from './json-api-response.types';
3
+
3
4
  export declare class JsonApiErrorFactory {
4
5
  static fromCatchVariable: (error: unknown, defaultHttpStatus?: number) => JsonApiError;
5
6
  static fromTsedException: (exception: Exception | Error | string, defaultHttpStatus?: number) => JsonApiError;
@@ -1,4 +1,5 @@
1
- import type { JsonApiError, JsonApiErrorResponse, JsonApiSuccessResponse } from './json-api-response.types';
1
+ import { JsonApiError, JsonApiErrorResponse, JsonApiSuccessResponse } from './json-api-response.types';
2
+
2
3
  export declare class JsonApiResponseFactory {
3
4
  static fromError: (errors: string | JsonApiError | JsonApiError[], httpStatus?: number) => JsonApiErrorResponse;
4
5
  static fromSuccess: <T>(data: T, metadata?: JsonApiSuccessResponse<T>["meta"]) => JsonApiSuccessResponse<T>;
@@ -1,4 +1,5 @@
1
- import type { JsonApiErrorResponse, JsonApiResponse, JsonApiSuccessResponse } from './json-api-response.types';
1
+ import { JsonApiErrorResponse, JsonApiResponse, JsonApiSuccessResponse } from './json-api-response.types';
2
+
2
3
  export declare const isJsonApiResponse: <T = unknown>(val: unknown) => val is JsonApiResponse<T>;
3
4
  export declare const isJsonApiSuccessResponse: <T = unknown>(val: unknown) => val is JsonApiSuccessResponse<T>;
4
5
  export declare const isJsonApiErrorResponse: (val: unknown) => val is JsonApiErrorResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okam/core-lib",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "license": "MIT",
@@ -27,7 +27,12 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@tsed/exceptions": "^8.3.1",
30
- "dequal": "^2.0.3",
31
- "react": "18.3.1"
30
+ "dequal": "^2.0.3"
31
+ },
32
+ "peerDependencies": {
33
+ "react": "^18.0.0 || ^19.0.0"
34
+ },
35
+ "devDependencies": {
36
+ "react": "^19.0.0"
32
37
  }
33
38
  }
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  /**
3
4
  * A helper to create a Context and Provider with no upfront default value, and
4
5
  * without having to check for undefined all the time.