Skip to content

Commit f5cc76f

Browse files
committed
Merge branch 'master' into feat/replace-patternkey-patternvalue
# Conflicts: # packages/json_schemas/schemas/input.schema.json # test/utilities.client.test.ts
2 parents e96cb63 + 5a0ed46 commit f5cc76f

29 files changed

+604
-87
lines changed

CHANGELOG.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ See the changelogs of each package:
88

99
package | version | changelog
1010
--------|---------|----------
11-
`@apify/consts` | 2.47.0 | [CHANGELOG](./packages/consts/CHANGELOG.md)
11+
`@apify/actor-memory-expression` | 0.1.3 | [CHANGELOG](./packages/actor-memory-expression/CHANGELOG.md)
12+
`@apify/consts` | 2.48.0 | [CHANGELOG](./packages/consts/CHANGELOG.md)
1213
`@apify/datastructures` | 2.0.3 | [CHANGELOG](./packages/datastructures/CHANGELOG.md)
1314
`@apify/dummy-package-for-testing` | 2.2.0 | [CHANGELOG](./packages/dummy/CHANGELOG.md)
1415
`@apify/git` | 2.1.4 | [CHANGELOG](./packages/git/CHANGELOG.md)
1516
`@apify/image_proxy_client` | 2.0.3 | [CHANGELOG](./packages/image_proxy_client/CHANGELOG.md)
16-
`@apify/input_schema` | 3.24.0 | [CHANGELOG](./packages/input_schema/CHANGELOG.md)
17-
`@apify/input_secrets` | 1.2.16 | [CHANGELOG](./packages/input_secrets/CHANGELOG.md)
18-
`@apify/json_schemas` | 0.8.0 | [CHANGELOG](./packages/json_schemas/CHANGELOG.md)
19-
`@apify/log` | 2.5.26 | [CHANGELOG](./packages/log/CHANGELOG.md)
20-
`@apify/markdown` | 3.0.40 | [CHANGELOG](./packages/markdown/CHANGELOG.md)
17+
`@apify/input_schema` | 3.25.2 | [CHANGELOG](./packages/input_schema/CHANGELOG.md)
18+
`@apify/input_secrets` | 1.2.18 | [CHANGELOG](./packages/input_secrets/CHANGELOG.md)
19+
`@apify/json_schemas` | 0.9.2 | [CHANGELOG](./packages/json_schemas/CHANGELOG.md)
20+
`@apify/log` | 2.5.28 | [CHANGELOG](./packages/log/CHANGELOG.md)
21+
`@apify/markdown` | 3.0.42 | [CHANGELOG](./packages/markdown/CHANGELOG.md)
2122
`@apify/payment_qr_codes` | 0.2.1 | [CHANGELOG](./packages/payment_qr_codes/CHANGELOG.md)
22-
`@apify/pseudo_url` | 2.0.67 | [CHANGELOG](./packages/pseudo_url/CHANGELOG.md)
23+
`@apify/pseudo_url` | 2.0.69 | [CHANGELOG](./packages/pseudo_url/CHANGELOG.md)
2324
`@apify/timeout` | 0.3.2 | [CHANGELOG](./packages/timeout/CHANGELOG.md)
24-
`@apify/utilities` | 2.23.2 | [CHANGELOG](./packages/utilities/CHANGELOG.md)
25+
`@apify/utilities` | 2.23.4 | [CHANGELOG](./packages/utilities/CHANGELOG.md)

package-lock.json

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

packages/actor-memory-expression/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.1.3](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-11-27)
7+
8+
**Note:** Version bump only for package @apify/actor-memory-expression
9+
10+
11+
12+
13+
14+
## [0.1.2](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-11-27)
15+
16+
**Note:** Version bump only for package @apify/actor-memory-expression
17+
18+
19+
20+
21+
22+
## [0.1.1](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-11-27)
23+
24+
**Note:** Version bump only for package @apify/actor-memory-expression
25+
26+
27+
28+
29+
630
# 0.1.0 (2025-11-25)
731

832

packages/actor-memory-expression/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apify/actor-memory-expression",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
44
"description": "Utility to evaluate dynamic memory expressions for Apify actors.",
55
"main": "./dist/cjs/index.cjs",
66
"module": "./dist/esm/index.mjs",
@@ -48,8 +48,8 @@
4848
"access": "public"
4949
},
5050
"dependencies": {
51-
"@apify/consts": "^2.47.0",
52-
"@apify/log": "^2.5.26",
51+
"@apify/consts": "^2.48.0",
52+
"@apify/log": "^2.5.28",
5353
"mathjs": "^15.1.0"
5454
}
5555
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './memory_calculator';
2+
export * from './types';

packages/actor-memory-expression/src/memory_calculator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
compileDependencies,
66
create,
77
divideDependencies,
8-
type EvalFunction,
98
evaluateDependencies,
109
maxDependencies,
1110
minDependencies,
@@ -20,7 +19,7 @@ import {
2019

2120
import { ACTOR_LIMITS } from '@apify/consts';
2221

23-
import type { ActorRunOptions, CompilationCache, MemoryEvaluationContext } from './types.js';
22+
import type { ActorRunOptions, CompilationCache, CompilationResult, MemoryEvaluationContext } from './types.js';
2423

2524
// In theory, users could create expressions longer than 1000 characters,
2625
// but in practice, it's unlikely anyone would need that much complexity.
@@ -176,9 +175,9 @@ const processTemplateVariables = (defaultMemoryMbytes: string): string => {
176175
*
177176
* @param expression The expression string to compile.
178177
* @param cache An optional cache to store/retrieve compiled expressions.
179-
* @returns The compiled EvalFunction.
178+
* @returns The compiled CompilationResult.
180179
*/
181-
const getCompiledExpression = async (expression: string, cache: CompilationCache | undefined): Promise<EvalFunction> => {
180+
const getCompiledExpression = async (expression: string, cache: CompilationCache | undefined): Promise<CompilationResult> => {
182181
if (!cache) {
183182
return compile(expression);
184183
}

packages/actor-memory-expression/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ export type CompilationCache = {
2020
set: (expression: string, compilationResult: EvalFunction) => Promise<void>;
2121
size: () => Promise<number>;
2222
}
23+
24+
export type CompilationResult = EvalFunction;

packages/consts/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.48.0](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-11-27)
7+
8+
9+
### Features
10+
11+
* **consts:** add `TIMING_OUT` Actor event ([#579](https://github.com/apify/apify-shared-js/issues/579)) ([a83c351](https://github.com/apify/apify-shared-js/commit/a83c351e3eb07419c9926003c21f6c6fc34ff9a9))
12+
13+
14+
15+
16+
17+
## [2.47.1](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-11-27)
18+
19+
**Note:** Version bump only for package @apify/consts
20+
21+
22+
23+
24+
625
# [2.47.0](https://github.com/apify/apify-shared-js/compare/@apify/[email protected]...@apify/[email protected]) (2025-10-20)
726

827

packages/consts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apify/consts",
3-
"version": "2.47.0",
3+
"version": "2.48.0",
44
"description": "Tools and constants shared across Apify projects.",
55
"main": "./dist/cjs/index.cjs",
66
"module": "./dist/esm/index.mjs",

packages/consts/src/consts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const ACTOR_EVENT_NAMES = {
2222
MIGRATING: 'migrating',
2323
PERSIST_STATE: 'persistState',
2424
ABORTING: 'aborting',
25+
TIMING_OUT: 'timingOut',
2526
} as const;
2627

2728
/**
@@ -703,6 +704,6 @@ export const ACTOR_PERMISSION_LEVEL = {
703704
* For details refer to the Apify documentation.
704705
*/
705706
LIMITED_PERMISSIONS: 'LIMITED_PERMISSIONS',
706-
};
707+
} as const;
707708

708709
export type ACTOR_PERMISSION_LEVEL = ValueOf<typeof ACTOR_PERMISSION_LEVEL>;

0 commit comments

Comments
 (0)