Skip to content

Commit 7f8d8d1

Browse files
committed
fix: Standardizes our previously generated types
1 parent d0b4806 commit 7f8d8d1

24 files changed

+83
-2787
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @taskless/loader
22

3+
## 0.0.38
4+
5+
### Patch Changes
6+
7+
- Removes the Taskless Cloud dependencies - the loader now runs in local only mode, and does not have a network dependency. You'll need to use the Taskless Pack CLI to install and update packs locally.
8+
39
## 0.0.37
410

511
### Patch Changes

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Out of the box, you get:
99
- Automatic correlation of API failures and root causes
1010
- Local NDJSON logging that works with your existing tools
1111

12-
Running in local mode requires no account or API key - just install and go.
13-
1412
# Getting Started
1513

1614
```bash
@@ -29,21 +27,14 @@ node --import="@taskless/loader" start.js
2927

3028
# Advanced Features
3129

32-
## Taskless Cloud
33-
34-
You'll need your API key from taskless.io to use Taskless' dynamic pack loading, remote cofiguration, and dashboard packages. If you don't have an API key, you can request one at [taskless.io](https://taskless.io). With an API key in hand, you can update your node.js start command:
35-
36-
```bash
37-
TASKLESS_API_KEY="your api key" node --import="@taskless/loader" start.js
38-
```
39-
4030
## Autoloading Options
4131

42-
| env | values | description |
43-
| :------------------- | :---------------------------------------- | :---------------------------------------------- |
44-
| `TASKLESS_API_KEY` | `string` | Your Taskless API key |
45-
| `TASKLESS_LOG_LEVEL` | `trace`, `debug`, `info`, `warn`, `error` | Sets the log level |
46-
| `TASKLESS_OPTIONS` | `key1=value1;key2=value2...` | Set key/value pairs for the Taskless Autoloader |
32+
| ENV value | type | default | description |
33+
| :------------------------ | :------- | :------------ | :------------------------------------------------------------------------------------------- |
34+
| `TASKLESS_FLUSH_INTERVAL` | `number` | `2000` | Interval in milliseconds to check for pending logs and flush them to the output destinations |
35+
| `TASKLESS_LOG_LEVEL` | `string` | `info` | A console log level to allow through. One of: `error`, `warn`, `log`, `info`, `debug` |
36+
| `TASKLESS_OUTPUT` | `string` | `console` | A comma separated list of output destinations |
37+
| `TASKLESS_DIRECTORY` | `string` | `./.taskless` | Directory that contains your local Taskless packs |
4738

4839
## Programatic API
4940

examples/programatic.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { readFileSync } from "fs";
22
import { resolve } from "path";
33
import { packageDirectorySync } from "package-directory";
4-
5-
// import { taskless } from "@taskless/core";
6-
import { Pack, taskless, type Manifest } from "../src/core.js";
4+
import { type Pack, taskless } from "../src/core.js";
75

86
/**
97
* pnpm tsx --import="./examples/programatic.ts" examples/basic.ts
@@ -38,8 +36,8 @@ const manifest: Pack = {
3836
},
3937
};
4038

41-
const t = taskless(process.env.TASKLESS_API_KEY);
42-
t.add(manifest, file);
39+
const t = taskless();
40+
t.add(manifest, file as Uint8Array);
4341
t.load();
4442

4543
export {};

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "@taskless/loader",
33
"description": "Taskless Loader - Take control of your third party APIs",
4-
"version": "0.0.37",
4+
"version": "0.0.38",
55
"author": "Taskless",
66
"license": "Apache-2.0",
77
"repository": "taskless/loader-js",
88
"scripts": {
99
"build": "vite build",
1010
"changeset": "changeset",
11-
"codegen": "tsx scripts/generate.ts",
1211
"husky": "husky",
1312
"lint-staged": "lint-staged",
1413
"packcheck": "tsx scripts/packcheck.ts",
@@ -44,7 +43,6 @@
4443
"dependencies": {
4544
"@extism/extism": "2.0.0-rc13",
4645
"dotenv": "^16.6.0",
47-
"fets": "^0.8.5",
4846
"glob": "^11.0.3",
4947
"msw": "^2.8.2",
5048
"uint8array-extras": "^1.4.0",
@@ -54,14 +52,10 @@
5452
"@changesets/cli": "^2.27.7",
5553
"@commitlint/cli": "^19.3.0",
5654
"@commitlint/config-conventional": "^19.2.2",
57-
"@hono/node-server": "^1.13.1",
5855
"@types/node": "^20.12.12",
5956
"@types/uuid": "^10.0.0",
6057
"execa": "^9.3.0",
61-
"get-port": "^7.1.0",
62-
"hono": "^4.6.3",
6358
"husky": "^9.0.11",
64-
"json-schema-to-typescript": "^15.0.3",
6559
"lint-staged": "^15.2.4",
6660
"mkdirp": "^3.0.1",
6761
"package-directory": "^8.1.0",

0 commit comments

Comments
 (0)