Skip to content

Commit 21ef8d0

Browse files
authored
Merge pull request #3 from SFTtech/milo/version-bumps
version bumps
2 parents 2d66ae4 + 77612a9 commit 21ef8d0

File tree

15 files changed

+5722
-2827
lines changed

15 files changed

+5722
-2827
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,6 @@ atlassian-ide-plugin.xml
9393
com_crashlytics_export_strings.xml
9494
crashlytics.properties
9595
crashlytics-build.properties
96-
fabric.properties
96+
fabric.properties
97+
vite.config.*.timestamp*
98+
vitest.config.*.timestamp*

package-lock.json

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

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,65 @@
77
},
88
"private": true,
99
"dependencies": {
10-
"@emotion/react": "^11.11.4",
11-
"@emotion/styled": "^11.11.5",
12-
"@mui/material": "^5.15.19",
13-
"@mui/x-date-pickers": "^7.6.2",
10+
"@emotion/react": "^11.14.0",
11+
"@emotion/styled": "^11.14.0",
12+
"@mui/material": "^6.3.0",
13+
"@mui/x-date-pickers": "^7.23.3",
1414
"formik": "^2.4.6",
15-
"luxon": "^3.4.4",
15+
"luxon": "^3.5.0",
1616
"react": "18.3.1",
1717
"react-dom": "18.3.1",
18-
"react-router-dom": "^6.23.1",
19-
"tslib": "^2.3.0",
20-
"zod": "^3.23.8"
18+
"react-router-dom": "^7.1.1",
19+
"tslib": "^2.8.1",
20+
"zod": "^3.24.1"
2121
},
2222
"devDependencies": {
2323
"@ltd/j-toml": "^1.38.0",
24-
"@nx/devkit": "19.2.2",
25-
"@nx/eslint": "19.2.2",
26-
"@nx/eslint-plugin": "19.2.2",
27-
"@nx/jest": "19.2.2",
28-
"@nx/js": "19.2.2",
29-
"@nx/plugin": "^19.2.2",
30-
"@nx/react": "19.2.2",
31-
"@nx/vite": "19.2.2",
32-
"@nx/web": "19.2.2",
33-
"@nx/workspace": "19.2.2",
34-
"@swc-node/register": "~1.9.1",
35-
"@swc/cli": "~0.3.12",
36-
"@swc/core": "~1.5.7",
37-
"@swc/helpers": "~0.5.11",
38-
"@swc/jest": "~0.2.36",
39-
"@testing-library/react": "15.0.6",
40-
"@types/jest": "^29.4.0",
24+
"@nx/devkit": "20.3.0",
25+
"@nx/eslint": "20.3.0",
26+
"@nx/eslint-plugin": "20.3.0",
27+
"@nx/jest": "20.3.0",
28+
"@nx/js": "20.3.0",
29+
"@nx/plugin": "20.3.0",
30+
"@nx/react": "20.3.0",
31+
"@nx/vite": "20.3.0",
32+
"@nx/web": "20.3.0",
33+
"@nx/workspace": "20.3.0",
34+
"@swc-node/register": "~1.10.9",
35+
"@swc/cli": "~0.5.2",
36+
"@swc/core": "~1.10.1",
37+
"@swc/helpers": "~0.5.15",
38+
"@swc/jest": "~0.2.37",
39+
"@testing-library/react": "16.1.0",
40+
"@types/jest": "29.5.14",
4141
"@types/luxon": "^3.4.2",
42-
"@types/node": "18.16.9",
42+
"@types/node": "22.10.2",
4343
"@types/react": "18.3.1",
4444
"@types/react-dom": "18.3.0",
4545
"@types/semver": "^7.5.8",
46-
"@typescript-eslint/eslint-plugin": "^7.3.0",
47-
"@typescript-eslint/parser": "^7.3.0",
48-
"@vitejs/plugin-react": "^4.2.0",
49-
"@vitejs/plugin-react-swc": "^3.5.0",
50-
"@vitest/ui": "^1.3.1",
51-
"babel-jest": "^29.4.1",
46+
"@typescript-eslint/eslint-plugin": "8.18.2",
47+
"@typescript-eslint/parser": "8.18.2",
48+
"@vitejs/plugin-react": "^4.3.4",
49+
"@vitejs/plugin-react-swc": "^3.7.2",
50+
"@vitest/ui": "^2.1.8",
51+
"babel-jest": "29.7.0",
5252
"eslint": "~8.57.0",
53-
"eslint-config-prettier": "^9.0.0",
54-
"eslint-plugin-import": "2.27.5",
55-
"eslint-plugin-jsx-a11y": "6.7.1",
56-
"eslint-plugin-react": "7.32.2",
57-
"eslint-plugin-react-hooks": "4.6.0",
58-
"jest": "^29.4.1",
59-
"jest-environment-jsdom": "^29.4.1",
60-
"jsdom": "~22.1.0",
61-
"nx": "19.2.2",
62-
"prettier": "^2.6.2",
63-
"semver": "^7.6.2",
64-
"ts-jest": "^29.1.0",
65-
"ts-node": "10.9.1",
66-
"typescript": "~5.4.2",
53+
"eslint-config-prettier": "^9.1.0",
54+
"eslint-plugin-import": "2.31.0",
55+
"eslint-plugin-jsx-a11y": "6.10.2",
56+
"eslint-plugin-react": "7.37.3",
57+
"eslint-plugin-react-hooks": "5.1.0",
58+
"jest": "29.7.0",
59+
"jest-environment-jsdom": "29.7.0",
60+
"jsdom": "~25.0.1",
61+
"nx": "20.3.0",
62+
"prettier": "^3.4.2",
63+
"semver": "^7.6.3",
64+
"ts-jest": "^29.2.5",
65+
"ts-node": "10.9.2",
66+
"typescript": "5.7.2",
6767
"vite": "^5.0.0",
68-
"vite-plugin-dts": "~3.8.1",
69-
"vitest": "^1.3.1"
68+
"vite-plugin-dts": "~4.4.0",
69+
"vitest": "^2.1.8"
7070
}
7171
}

sftkit/sftkit/http/_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __init__(self, title: str, config: HTTPServerConfig, version: str, license_n
7474
allow_credentials=True,
7575
allow_methods=["*"],
7676
allow_headers=["*"],
77+
expose_headers=["Content-Range"],
7778
)
7879

7980
forward_allowed_ips = None

tools/nx-python/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "@sftkit/nx-python",
33
"version": "0.0.1",
44
"dependencies": {
5-
"@nx/devkit": "^19.2.2",
5+
"@nx/devkit": "^20.3.0",
66
"tslib": "^2.3.0",
7-
"nx": "^19.2.2",
7+
"nx": "^20.3.0",
88
"semver": "^7.6.2",
99
"@ltd/j-toml": "^1.38.0"
1010
},

tools/nx-python/src/executors/release-publish/executor.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,40 @@ export default async function runExecutor(options: ReleaseExecutorSchema, contex
1111
*/
1212
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
1313

14-
const projectConfig = context.projectsConfigurations!.projects[context.projectName!]!;
14+
if (!context.projectName) {
15+
throw new Error("project name is empty");
16+
}
17+
18+
const projectConfig = context.projectsConfigurations?.projects[context.projectName];
19+
20+
if (!projectConfig) {
21+
throw new Error("could not find a project config");
22+
}
1523

1624
const packageRoot = joinPathFragments(context.root, options.packageRoot ?? projectConfig.root);
1725

18-
const pdmPublishCommandSegments = [`pdm publish`];
26+
const command = "pdm publish";
1927

2028
try {
21-
const command = pdmPublishCommandSegments.join(" ");
2229
output.logSingleLine(`Running "${command}"...`);
2330

2431
if (isDryRun) {
25-
console.log(`Would publish to https://pypi.org, but '[dry-run]' was set`);
32+
output.logSingleLine("Would publish to https://pypi.org, but '[dry-run]' was set");
2633
} else {
2734
execSync(command, {
2835
maxBuffer: LARGE_BUFFER,
2936
cwd: packageRoot,
3037
stdio: "inherit",
3138
});
3239

33-
console.log("");
34-
console.log(`Published to https://pypi.org`);
40+
output.logSingleLine("Published to https://pypi.org");
3541
}
3642

3743
return {
3844
success: true,
3945
};
40-
} catch (err: any) {
46+
} catch (err) {
47+
output.logSingleLine(`Error running pdm publish: ${err}`);
4148
return {
4249
success: false,
4350
};

tools/nx-python/src/generators/release-version/generator.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
13
import {
24
formatFiles,
35
joinPathFragments,
@@ -203,8 +205,8 @@ To fix this you will either need to add a pyproject.toml file at that location,
203205
const previousVersionRef = latestMatchingGitTag
204206
? latestMatchingGitTag.tag
205207
: options.fallbackCurrentVersionResolver === "disk"
206-
? await getFirstGitCommit()
207-
: undefined;
208+
? await getFirstGitCommit()
209+
: undefined;
208210

209211
if (!previousVersionRef) {
210212
// This should never happen since the checks above should catch if the current version couldn't be resolved
@@ -481,8 +483,8 @@ function resolveLocalPackageDependencies(
481483
const dependencyCollection: "dependencies" | "dev-dependencies" | null = dependencies[depProject.name]
482484
? "dependencies"
483485
: devDependencies[depProject.name]
484-
? "dev-dependencies"
485-
: null;
486+
? "dev-dependencies"
487+
: null;
486488
if (!dependencyCollection) {
487489
throw new Error(
488490
`The project "${projectNode.name}" does not have a local dependency on "${depProject.name}" in its Cargo.toml`

tools/nx-python/src/graph.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ export const createNodes: CreateNodesV2 = [
1313
const root = dirname(projectFile);
1414
const pyproject = loadPyprojectToml(projectFile);
1515

16+
if (!pyproject.project?.name) {
17+
throw new Error("No name configured in pyproject.toml");
18+
}
19+
1620
const pythonPackage = {
17-
name: pyproject.project!.name!,
21+
name: pyproject.project.name,
1822
pyprojectToml: pyproject,
1923
projectRoot: dirname(projectFile),
2024
};

tools/nx-python/src/utils/pyproject-toml.ts

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { logger, Tree } from "@nx/devkit";
2-
import TOML from '@ltd/j-toml';
3+
import TOML from "@ltd/j-toml";
34
import * as fs from "fs";
45

56
export interface BuildSystem {
@@ -36,12 +37,12 @@ export interface Project {
3637
classifiers?: string[];
3738
urls?: Record<string, string>;
3839
requires_python?: string;
39-
dependencies?: string[],
40-
optional_dependencies?: string[],
40+
dependencies?: string[];
41+
optional_dependencies?: string[];
4142
scripts?: Record<string, string>;
4243
gui_scripts?: Record<string, string>;
4344
entry_points?: Record<string, Record<string, string>>;
44-
dynamic?: string[]
45+
dynamic?: string[];
4546
}
4647

4748
export interface PyprojectToml {
@@ -67,20 +68,20 @@ export function loadPyprojectToml(pyprojectTomlPath: string): PyprojectToml {
6768
}
6869

6970
export function parsePyprojectToml(pyprojectString: string) {
70-
return TOML.parse(pyprojectString, {
71+
return TOML.parse(pyprojectString, {
7172
x: { comment: true },
7273
}) as unknown as PyprojectToml;
7374
}
7475

7576
export function stringifyPyprojectToml(pyprojectToml: PyprojectToml) {
7677
const tomlString = TOML.stringify(pyprojectToml, {
77-
newlineAround: 'section',
78+
newlineAround: "section",
7879
indent: 4,
7980
});
8081
// the following is a very, very dirty hack for dealing with j-toml not being able to configure the type of quotation
8182

8283
if (Array.isArray(tomlString)) {
83-
return tomlString.join('\n').replace(/'/g, '"');
84+
return tomlString.join("\n").replace(/'/g, '"');
8485
}
8586

8687
return tomlString.toString().replace(/'/g, '"');
@@ -94,19 +95,14 @@ export function modifyPyprojectToml(
9495
) {
9596
toml[section] ??= TOML.Section({});
9697
toml[section][key] =
97-
typeof value === 'object' && !Array.isArray(value)
98+
typeof value === "object" && !Array.isArray(value)
9899
? TOML.inline(value as any)
99-
: typeof value === 'function'
100-
? value()
101-
: value;
100+
: typeof value === "function"
101+
? value()
102+
: value;
102103
}
103104

104-
export function modifyCargoNestedTable(
105-
toml: PyprojectToml,
106-
section: string,
107-
key: string,
108-
value: object
109-
) {
105+
export function modifyCargoNestedTable(toml: PyprojectToml, section: string, key: string, value: object) {
110106
toml[section] ??= {};
111107
toml[section][key] = TOML.Section(value as any);
112108
}

web/components/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"require": "./index.js"
1010
}
1111
},
12+
"peerDependencies": {
13+
"react": "^18.3.1",
14+
"@mui/material": "^5.15.21"
15+
},
1216
"repository": {
1317
"type": "git",
1418
"url": "https://github.com/SFTtech/sftkit",

web/components/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ export * from "./lib/DataGridTitle";
33
export * from "./lib/Loading";
44
export * from "./lib/NumericInput";
55
export * from "./lib/Select";
6-
export * from "./lib/TestModeDisclaimer";

web/components/src/lib/TestModeDisclaimer.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

web/form-components/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
"require": "./index.js"
1010
}
1111
},
12+
"peerDependencies": {
13+
"react": "^18.3.1",
14+
"@mui/material": "^5.15.21",
15+
"@mui/x-date-pickers": "^7.8.0",
16+
"luxon": "^3.4.4",
17+
"formik": "^2.4.6",
18+
"@sftkit/utils": "^0.2.0",
19+
"@sftkit/components": "^0.2.0"
20+
},
1221
"repository": {
1322
"type": "git",
1423
"url": "https://github.com/SFTtech/sftkit",

web/modal-provider/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"require": "./index.js"
1010
}
1111
},
12+
"peerDependencies": {
13+
"react": "^18.3.1",
14+
"react-dom": "^18.3.1",
15+
"@mui/material": "^5.15.21"
16+
},
1217
"repository": {
1318
"type": "git",
1419
"url": "https://github.com/SFTtech/sftkit",

web/utils/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"require": "./index.js"
1010
}
1111
},
12+
"peerDependencies": {
13+
"react": "^18.3.1",
14+
"react-router-dom": "^6.24.0",
15+
"zod": "^3.23.8"
16+
},
1217
"repository": {
1318
"type": "git",
1419
"url": "https://github.com/SFTtech/sftkit",

0 commit comments

Comments
 (0)