@uxf/datepicker 11.123.0 → 11.125.0

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.
@@ -7,7 +7,7 @@
7
7
  * Tests are expected to FAIL until the DateString refactor (Tasks 2–10) is complete.
8
8
  */
9
9
 
10
- const babelPresets = require("../../jest.babel-presets.js");
10
+ const swcOptions = require("../../jest.swc-options.js");
11
11
 
12
12
  /** @type {import('jest').Config} */
13
13
  module.exports = {
@@ -17,7 +17,10 @@ module.exports = {
17
17
  globalSetup: "<rootDir>/jest.dst.global-setup.js",
18
18
  rootDir: ".",
19
19
  testMatch: ["<rootDir>/utils/dst-robustness.test.ts"],
20
+ // Kept in the same shape as root jest.config.js — see jest.swc-options.js for why the .jsx parser
21
+ // is explicit while .ts/.tsx is inferred.
20
22
  transform: {
21
- "\\.[jt]sx?$": ["babel-jest", { presets: babelPresets, babelrc: false, configFile: false }],
23
+ "\\.tsx?$": ["@swc/jest", swcOptions()],
24
+ "\\.jsx?$": ["@swc/jest", swcOptions({ syntax: "ecmascript", jsx: true })],
22
25
  },
23
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/datepicker",
3
- "version": "11.123.0",
3
+ "version": "11.125.0",
4
4
  "description": "A set of React hooks to create an awesome datepicker.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "homepage": "https://gitlab.com/uxf-npm/datepicker#readme",
28
28
  "peerDependencies": {
29
- "@uxf/core": "11.123.0",
30
- "@uxf/core-react": "11.123.0",
29
+ "@uxf/core": "11.124.0",
30
+ "@uxf/core-react": "11.125.0",
31
31
  "dayjs": "^1.11.21",
32
32
  "react": ">=18.2.0",
33
33
  "react-dom": ">=18.2.0"
@@ -35,8 +35,8 @@
35
35
  "devDependencies": {
36
36
  "@types/react": "18.3.31",
37
37
  "@types/react-dom": "18.3.7",
38
- "@uxf/core": "11.123.0",
39
- "@uxf/core-react": "11.123.0",
38
+ "@uxf/core": "11.124.0",
39
+ "@uxf/core-react": "11.125.0",
40
40
  "dayjs": "^1.11.21",
41
41
  "react": "18.3.1",
42
42
  "react-dom": "18.3.1"