Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ tests/expressionMeasurement/streaming.test.ts
# Required manual edits for Node 18 compatibility
tests/unit/fetcher/Fetcher.test.ts
tests/unit/file/file.test.ts
tests/unit/file/test-file.txt

# Needed because node 18 doesn't actually have a global.File
tests/BrowserTestEnvironment.ts
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
with:
node-version: "18.18.0"

- name: Setup yarn
run: npm install -g yarn
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Compile
run: yarn build
run: pnpm build

test:
runs-on: ubuntu-latest
Expand All @@ -34,20 +34,18 @@ jobs:
with:
node-version: "18.18.0"

- name: Setup yarn
run: npm install -g yarn
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Check for formatting issues
run: yarn prettier . --check --ignore-unknown
run: pnpm format:check

- name: Run tests
run: yarn test

- name: Run browser tests
run: yarn test:browser
# --configLoader runner is used to make vitest able to load its config as a ESM module in node 18. We wouldn't need to specify this if we didn't support node 18.
run: pnpm test --configLoader runner

publish:
needs: [compile, test]
Expand All @@ -62,14 +60,14 @@ jobs:
with:
node-version: "18.18.0"

- name: Setup yarn
run: npm install -g yarn
- name: Setup pnpm
run: npm install -g pnpm

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Build
run: yarn build
run: pnpm build

- name: Publish to npm
run: |
Expand Down
2 changes: 1 addition & 1 deletion .mock/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization" : "hume",
"version" : "0.99.1"
"version" : "0.93.2"
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tests
.github
.fernignore
.prettierrc.yml
biome.json
tsconfig.json
yarn.lock
pnpm-lock.yaml
2 changes: 0 additions & 2 deletions .prettierrc.yml

This file was deleted.

74 changes: 74 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
"root": true,
"vcs": {
"enabled": false
},
"files": {
"ignoreUnknown": true,
"includes": [
"**",
"!!dist",
"!!**/dist",
"!!lib",
"!!**/lib",
"!!_tmp_*",
"!!**/_tmp_*",
"!!*.tmp",
"!!**/*.tmp",
"!!.tmp/",
"!!**/.tmp/",
"!!*.log",
"!!**/*.log",
"!!**/.DS_Store",
"!!**/Thumbs.db"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"rules": {
"style": {
"useNodejsImportProtocol": "off"
},
"suspicious": {
"noAssignInExpressions": "warn",
"noUselessEscapeInString": {
"level": "warn",
"fix": "none",
"options": {}
},
"noThenProperty": "warn",
"useIterableCallbackReturn": "warn",
"noShadowRestrictedNames": "warn",
"noTsIgnore": {
"level": "warn",
"fix": "none",
"options": {}
},
"noConfusingVoidType": {
"level": "warn",
"fix": "none",
"options": {}
}
}
}
}
}
42 changes: 0 additions & 42 deletions jest.config.mjs

This file was deleted.

36 changes: 16 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hume",
"version": "0.15.2",
"version": "0.15.3",
"private": false,
"repository": "github:humeai/hume-typescript-sdk",
"type": "commonjs",
Expand Down Expand Up @@ -32,11 +32,7 @@
},
"default": "./dist/cjs/serialization/index.js"
},
"./package.json": "./package.json",
"./core": {
"types": "./dist/esm/core/index.d.mts",
"default": "./dist/esm/core/index.mjs"
}
"./package.json": "./package.json"
},
"files": [
"dist",
Expand All @@ -45,14 +41,18 @@
"LICENSE"
],
"scripts": {
"format": "prettier . --write --ignore-unknown",
"build": "yarn build:cjs && yarn build:esm",
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc --project ./tsconfig.cjs.json",
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
"test": "jest --config jest.config.mjs",
"test:unit": "jest --selectProjects unit",
"test:browser": "jest --selectProjects browser",
"test:wire": "jest --selectProjects wire"
"test": "vitest",
"test:unit": "vitest --project unit",
"test:wire": "vitest --project wire"
},
"dependencies": {
"ws": "^8.16.0",
Expand All @@ -63,15 +63,11 @@
"webpack": "^5.97.1",
"ts-loader": "^9.5.1",
"@types/ws": "^8.5.9",
"jest": "^29.7.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"ts-jest": "^29.3.4",
"jest-environment-jsdom": "^29.7.0",
"msw": "^2.8.4",
"vitest": "^3.2.4",
"msw": "2.11.2",
"@types/node": "^18.19.70",
"prettier": "^3.4.2",
"typescript": "~5.7.2",
"@biomejs/biome": "2.3.1",
"@types/uuid": "9.0.7"
},
"browser": {
Expand All @@ -80,7 +76,7 @@
"path": false,
"stream": false
},
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"engines": {
"node": ">=18.0.0"
},
Expand Down
Loading
Loading