Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
12752c2
switch to experimentName and runName
QuentinRoy Dec 6, 2023
b8b1410
fix app sessions test
QuentinRoy Jan 10, 2024
8061740
fix app post runs tests
QuentinRoy Jan 11, 2024
5b01ad0
fix app get and patch run tests
QuentinRoy Jan 12, 2024
b08ead2
fix app logs entry point tests
QuentinRoy Jan 12, 2024
db57cb5
fix log-server build
QuentinRoy Jan 12, 2024
60f849e
fix log-client tests
QuentinRoy Jan 12, 2024
eadffd8
setup workspace tests
QuentinRoy Jan 12, 2024
44d8f22
wip fix store
QuentinRoy Jan 12, 2024
9e432a0
update
QuentinRoy Jan 25, 2024
28083b4
fix some deprecation
QuentinRoy Jan 25, 2024
42816e7
fix style incoherences
QuentinRoy Jan 25, 2024
ecfa881
remove unused import in tests
QuentinRoy Jan 25, 2024
dca3340
Merge branch 'main' into new-api
QuentinRoy Jan 16, 2025
73b4b4d
log-api: add endpoint to get an experiment's runs
QuentinRoy Jan 15, 2025
254c474
log-server: add endpoint to get an exp's runs
QuentinRoy Jan 15, 2025
07e75b4
add changeset
QuentinRoy Jan 15, 2025
9cda4b7
log-server: fix tests and lint
QuentinRoy Jan 16, 2025
f9fbc99
log-server: fix a deprecation notice
QuentinRoy Jan 16, 2025
931aeeb
log-server: fix a ts error in tests
QuentinRoy Jan 16, 2025
c30c506
log-server: add missing tests
QuentinRoy Jan 16, 2025
2519ce9
log-server: update to vitests 3 and fix tests
QuentinRoy Jan 16, 2025
a91b256
log-api: update vitest
QuentinRoy Jan 16, 2025
14d1e8b
react-experiment: update test libraries
QuentinRoy Jan 16, 2025
73e57ae
convert-touchstone: update vitest
QuentinRoy Jan 16, 2025
1e891d5
runner: update vitest and vite
QuentinRoy Jan 16, 2025
b949035
static-design: update vitest and vite
QuentinRoy Jan 16, 2025
aab2836
use pnpm catalog for commonly used deps (e.g. ts)
QuentinRoy Jan 16, 2025
ca3faf1
log-server: work around vitest toSatisfy type bug
QuentinRoy Jan 16, 2025
5abee72
log-server: fix type checking
QuentinRoy Jan 17, 2025
691fa85
move to node 22
QuentinRoy Jan 17, 2025
538efe0
update vitest
QuentinRoy Jan 18, 2025
9c0af3b
log-api: move to ts-rest
QuentinRoy Feb 14, 2025
0d370b0
log-client: switch to openapi-fetch
QuentinRoy Feb 15, 2025
764d2f9
update typescript
QuentinRoy Feb 15, 2025
4646150
log-server: fix getRuns crash
QuentinRoy Feb 16, 2025
6ad7022
log-server: switch to ts-rest
QuentinRoy Feb 18, 2025
c6eb906
log-client: fix get run answer
QuentinRoy Feb 18, 2025
bc7290d
update dependencies
QuentinRoy Feb 18, 2025
a0c2e24
fix ci
QuentinRoy Feb 18, 2025
09d3213
log-client: fix tests
QuentinRoy Feb 18, 2025
c516a9f
switch to new prettier objectwrap collapse rule
QuentinRoy Feb 19, 2025
d6d5f6e
log-server: fix cli
QuentinRoy Feb 19, 2025
41c5314
udpate changesets
QuentinRoy Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/short-singers-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lightmill/log-client': major
---

Drop support to older log-server versions
5 changes: 5 additions & 0 deletions .changeset/tame-gorillas-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lightmill/log-api': major
---

Entirely revise the rest API and exported types.
5 changes: 5 additions & 0 deletions .changeset/tame-gorillas-pay2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lightmill/log-server': major
---

Update to new API.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

54 changes: 0 additions & 54 deletions .eslintrc.yml

This file was deleted.

57 changes: 40 additions & 17 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Install Node.js 20.x.x

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Install Node.js 22.x.x
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x.x
- run: pnpm install --frozen-lockfile
node-version: 22.x.x

- run: pnpm install

- run: pnpm run build-all

- uses: actions/upload-artifact@v4
with:
name: 'build'
Expand All @@ -32,45 +40,60 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Install Node.js 20.x.x

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Install Node.js 22.x.x
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x.x
- run: pnpm install --frozen-lockfile
node-version: 22.x.x

- run: pnpm install

- uses: actions/download-artifact@v4
id: download
with:
name: 'build'
path: 'packages'
- run: pnpm run test-all

- run: pnpm test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Install Node.js 20.x.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js 22.x.x
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x.x
- run: pnpm install --frozen-lockfile
node-version: 22.x.x
- run: pnpm install
- run: pnpm run lint

publint:
needs: ['build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Install Node.js 20.x.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js 22.x.x
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x.x
- run: pnpm install --frozen-lockfile
node-version: 22.x.x
- run: pnpm install
- run: pnpm run build-all
- uses: actions/download-artifact@v4
id: download
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Install Node.js 20.x.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js 22.x.x
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x.x
node-version: 22.x.x
- name: Install dependencies
run: pnpm install
- name: Create Release Pull Request or Publish to npm
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,7 @@ $RECYCLE.BIN/
tsconfig.tsbuildinfo

# Vitest temp files
tsconfig.vitest-temp.json
tsconfig.vitest-temp.json

# Typescript build files
tsconfig.?*.tsbuildinfo
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.DS_Store
**/node_modules
packages/**/dist
packages/**/generated
packages/log-api/openapi.json
**/coverage
**/CHANGELOG.md
pnpm-lock.yaml
Expand Down
1 change: 1 addition & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
singleQuote: true
objectWrap: collapse
65 changes: 65 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import jsdoc from 'eslint-plugin-jsdoc';
import eslintConfigPrettier from 'eslint-config-prettier';
import reactPlugin from 'eslint-plugin-react';
import { Linter } from 'eslint';

export default tseslint.config(
{
ignores: [
'*.DS_Store',
'**/node_modules',
'packages/**/dist/*',
'**/coverage',
'**/*.snap',
],
},
js.configs.recommended,
tseslint.configs.recommended,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
jsdoc.configs['flat/contents-typescript'],
eslintConfigPrettier,
{
settings: {
react: {
// This may need to be updated if we update react.
version: '18.2',
},
},
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'class-methods-use-this': 'off',
'prefer-const': 'off',
},
},
{
files: ['packages/**/src/**/*@(.mjs|.js|.ts|.cjs|.jsx|.tsx)'],
rules: { 'no-console': 'error' },
},
{
files: ['*.cjs'],
languageOptions: { sourceType: 'script', globals: { ...globals.node } },
},
{
files: [
'packages/**/bin/**/*@(.mjs|.js|.ts|.cjs)',
'scripts/**/*@(.mjs|.js|.ts|.cjs)',
'packages/**/scripts/**/*@(.mjs|.js|.ts|.cjs)',
],
languageOptions: { globals: { ...globals.node } },
},
) as Linter.Config[];
29 changes: 17 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@
"scripts": {
"lint": "eslint . && prettier --check .",
"build-all": "pnpm -r build",
"test-all": "pnpm -r test run",
"test": "vitest --typecheck",
"changeset": "changeset",
"version": "changeset version && pnpm install --no-frozen-lockfile",
"release": "pnpm -r build && changeset publish",
"publint": "node ./scripts/publint.js"
},
"dependencies": {
"@changesets/cli": "^2.26.2",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "8.54.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
"prettier": "3.1.0",
"publint": "^0.2.5",
"typescript": "5.3.2"
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@eslint/js": "^9.20.0",
"@types/eslint-config-prettier": "^6.11.3",
"eslint": "^9.20.1",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-jsdoc": "^50.6.3",
"eslint-plugin-react": "^7.37.4",
"globals": "^15.15.0",
"jiti": "^2.4.2",
"prettier": "3.5.1",
"publint": "^0.2.7",
"typescript": "catalog:",
"typescript-eslint": "^8.24.1",
"vitest": "catalog:"
},
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
"engines": {
"node": "^20.x.x"
"node": "^22.x.x"
}
}
10 changes: 5 additions & 5 deletions packages/convert-touchstone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"description": "Converts touchstone XML exports to lightmill format.",
"engines": {
"node": "^20.x.x"
"node": "^22.x.x"
},
"exports": {
"import": {
Expand All @@ -25,10 +25,10 @@
"devDependencies": {
"@lightmill/static-design": "workspace:*",
"@types/sax": "^1.2.7",
"cross-env": "^7.0.3",
"typescript": "5.3.2",
"vite": "^5.0.12",
"vitest": "^1.0.2"
"cross-env": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "catalog:"
},
"scripts": {
"test": "cross-env NODE_ENV=test vitest",
Expand Down
Loading