Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
dist
coverage
apify_storage
crawlee_storage
storage
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
coverage
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file.

<!-- git-cliff-unreleased-start -->

## Unreleased

### Testing

- Consolidate all tests onto Vitest (drops the separate `node:test` suite)

<!-- git-cliff-unreleased-end -->

## [0.1.3](https://github.com/apify/apify-actor-utils/releases/tag/v0.1.3) (2026-07-27)

### 🚀 Features
Expand All @@ -13,7 +23,6 @@ All notable changes to this project will be documented in this file.

- Restrict placeholders to empty values, prefer null for unions ([fd698a8](https://github.com/apify/apify-actor-utils/commit/fd698a8150470d2e82f7b127336dabb1bcbda60a)) by [@claude](https://github.com/claude)


## [0.1.2](https://github.com/apify/apify-actor-utils/releases/tag/v0.1.2) (2026-07-22)

## [0.1.1](https://github.com/apify/apify-actor-utils/releases/tag/v0.1.1) (2026-07-22)
## [0.1.1](https://github.com/apify/apify-actor-utils/releases/tag/v0.1.1) (2026-07-22)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ Highlights:

- `scripts/check-pushdata.mjs` greps `src/` and `test/` for any
`.pushData(` call expression and fails if one exists.
- The package is consumed as compiled output (`dist/`), so `npm test`
builds via `tsc` first, then runs the compiled suite under `node --test`.
- `npm test` runs the whole `test/` tree with Vitest, straight from source.

## Layout

```
.
├── index.ts # package entry point, re-exports src/
├── src/pushDataWithSchemaRepair.ts # the library
├── test/pushDataWithSchemaRepair.test.ts # node:test suite
├── test/pushDataWithSchemaRepair.test.ts # Vitest suite
├── scripts/
│ ├── check-pushdata.mjs # CI guard against direct .pushData() calls
│ └── probe-errors.mjs # reference: re-derive the API error shape
├── tsconfig.json
├── vitest.config.ts
└── package.json
```
13 changes: 12 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ export default [
},
},
{
// node:test's `test(name, fn)` is fire-and-forget by design — the
// vitest's `test`/`it` calls are fire-and-forget by design — the
// runner tracks the returned promise itself, callers don't await it.
files: ['test/**/*.ts'],
rules: {
'@typescript-eslint/no-floating-promises': 0,
// vi.mock() factories commonly define more than one small fixture
// class per file (e.g. mocked error constructors).
'max-classes-per-file': 0,
},
},
{
Expand All @@ -54,4 +57,12 @@ export default [
'import/no-extraneous-dependencies': 0,
},
},
{
// 'vitest/config' is a subpath export the extensions rule can't
// resolve to a concrete file, so it falls back to demanding one.
files: ['vitest.config.ts'],
rules: {
'import/extensions': 0,
},
},
];
Loading
Loading