Skip to content

Commit

Permalink
Merge branch 'release/next' into typesync
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jul 27, 2023
2 parents 616225c + 2a0aaa9 commit df96348
Show file tree
Hide file tree
Showing 27 changed files with 728 additions and 757 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-rockets-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openfn/compiler': patch
---

Bump recast version
5 changes: 5 additions & 0 deletions .changeset/late-experts-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openfn/runtime': patch
---

Bump semver
6 changes: 6 additions & 0 deletions .changeset/shiny-fans-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@openfn/deploy': patch
'@openfn/logger': patch
---

Bump inquirer
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- run:
name: Install pnpm
command: sudo corepack enable && corepack prepare [email protected].0 --activate
command: sudo corepack enable && corepack prepare [email protected].9 --activate
- checkout
- restore_cache:
# See the configuration reference documentation for more details on using restore_cache and save_cache steps
Expand Down
14 changes: 14 additions & 0 deletions examples/dts-inspector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# dts-inspector

## 1.0.15

### Patch Changes

- Updated dependencies [faf1852]
- @openfn/describe-package@0.0.18

## 1.0.14

### Patch Changes

- Updated dependencies [4c875b3]
- @openfn/describe-package@0.0.17

## 1.0.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/dts-inspector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dts-inspector",
"version": "1.0.13",
"version": "1.0.15",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@types/node": "^18.7.18",
"ava": "5.1.0",
"ava": "5.3.1",
"date-fns": "^2.29.3",
"rimraf": "^3.0.2",
"ts-node": "10.8.1",
Expand Down
27 changes: 27 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @openfn/cli

## 0.2.2

### Patch Changes

- faf1852: Downgrade tsup
- Updated dependencies [faf1852]
- @openfn/compiler@0.0.34
- @openfn/deploy@0.2.2
- @openfn/describe-package@0.0.18
- @openfn/logger@0.0.15
- @openfn/runtime@0.0.28

## 0.2.1

### Patch Changes

- 4c875b3: Bump yargs version
- Updated dependencies [749afe8]
- Updated dependencies [614c86b]
- Updated dependencies [4c875b3]
- Updated dependencies [4c875b3]
- @openfn/logger@0.0.14
- @openfn/runtime@0.0.27
- @openfn/compiler@0.0.33
- @openfn/deploy@0.2.1
- @openfn/describe-package@0.0.17

## 0.2.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/cli",
"version": "0.2.0",
"version": "0.2.2",
"description": "CLI devtools for the openfn toolchain.",
"engines": {
"node": ">=18",
Expand Down Expand Up @@ -39,11 +39,11 @@
"@types/rimraf": "^3.0.2",
"@types/treeify": "^1.0.0",
"@types/yargs": "^17.0.24",
"ava": "5.1.0",
"ava": "5.3.1",
"mock-fs": "^5.1.4",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsup": "^7.1.0",
"tsup": "^6.2.3",
"typescript": "^4.7.4"
},
"dependencies": {
Expand Down
19 changes: 19 additions & 0 deletions packages/compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @openfn/compiler

## 0.0.34

### Patch Changes

- faf1852: Downgrade tsup
- Updated dependencies [faf1852]
- @openfn/describe-package@0.0.18
- @openfn/logger@0.0.15

## 0.0.33

### Patch Changes

- 4c875b3: Remove yargs from prod dependencies
- Updated dependencies [749afe8]
- Updated dependencies [4c875b3]
- @openfn/logger@0.0.14
- @openfn/describe-package@0.0.17

## 0.0.32

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/compiler",
"version": "0.0.32",
"version": "0.0.34",
"description": "Compiler and language tooling for openfn jobs.",
"author": "Open Function Group <[email protected]>",
"license": "ISC",
Expand Down Expand Up @@ -32,19 +32,19 @@
"devDependencies": {
"@types/node": "^17.0.45",
"@types/yargs": "^17.0.24",
"ava": "5.1.0",
"ava": "5.3.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsup": "^7.1.0",
"typescript": "^4.7.4"
"tsup": "^6.2.3",
"typescript": "^4.7.4",
"yargs": "^17.7.2"
},
"dependencies": {
"@openfn/describe-package": "workspace:*",
"@openfn/logger": "workspace:*",
"acorn": "^8.8.0",
"ast-types": "^0.14.2",
"recast": "^0.21.2",
"yargs": "^17.7.2"
"recast": "^0.21.5"
},
"files": [
"dist",
Expand Down
17 changes: 17 additions & 0 deletions packages/deploy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @openfn/deploy

## 0.2.2

### Patch Changes

- faf1852: Downgrade tsup
- Updated dependencies [faf1852]
- @openfn/logger@0.0.15

## 0.2.1

### Patch Changes

- 4c875b3: minor version bumps
- Updated dependencies [749afe8]
- Updated dependencies [4c875b3]
- @openfn/logger@0.0.14

## 0.2.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/deploy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/deploy",
"version": "0.2.0",
"version": "0.2.2",
"description": "Deploy projects to Lightning instances",
"type": "module",
"exports": {
Expand Down Expand Up @@ -30,12 +30,12 @@
"@types/jsonpath": "^0.2.0",
"@types/mock-fs": "^4.13.1",
"@types/node": "^18.7.14",
"ava": "5.1.0",
"ava": "5.3.1",
"jsonpath": "^1.1.1",
"mock-fs": "^5.1.4",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsup": "^7.1.0",
"tsup": "^6.2.3",
"typescript": "^4.6.4"
},
"files": [
Expand Down
12 changes: 12 additions & 0 deletions packages/describe-package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @openfn/describe-package

## 0.0.18

### Patch Changes

- faf1852: Downgrade tsup

## 0.0.17

### Patch Changes

- 4c875b3: minor version bumps

## 0.0.16

### Patch Changes
Expand Down
7 changes: 3 additions & 4 deletions packages/describe-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/describe-package",
"version": "0.0.16",
"version": "0.0.18",
"description": "Utilities to inspect an npm package.",
"author": "Open Function Group <[email protected]>",
"license": "ISC",
Expand Down Expand Up @@ -40,14 +40,14 @@
"@types/node": "^17.0.45",
"@types/node-localstorage": "^1.3.0",
"@types/rimraf": "^3.0.2",
"ava": "5.1.0",
"ava": "5.3.1",
"esbuild": "^0.18.14",
"rimraf": "^3.0.2",
"threads": "1.7.0",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsm": "^2.2.1",
"tsup": "^7.1.0"
"tsup": "^6.2.3"
},
"files": [
"dist",
Expand All @@ -63,7 +63,6 @@
"dependencies": {
"@typescript/vfs": "^1.3.5",
"cross-fetch": "^3.1.5",
"node-localstorage": "^2.2.1",
"typescript": "^4.7.4",
"url-join": "^5.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/describe-package/test/typescript/project.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import { LocalStorage } from 'node-localstorage';
global.localStorage = new LocalStorage('./tmp');
// import { LocalStorage } from 'node-localstorage';
// global.localStorage = new LocalStorage('./tmp');
import { readFile } from 'node:fs/promises';
import { Project, getDefaultMap } from '../../src/typescript/project';
import { createDefaultMapFromNodeModules } from '@typescript/vfs';
Expand Down
13 changes: 13 additions & 0 deletions packages/logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openfn/logger

## 0.0.15

### Patch Changes

- faf1852: Downgrade tsup

## 0.0.14

### Patch Changes

- 749afe8: Pretty print output
- 4c875b3: minor version bumps

## 0.0.13

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/logger",
"version": "0.0.13",
"version": "0.0.15",
"description": "Cross-package logging utility",
"module": "dist/index.js",
"author": "Open Function Group <[email protected]>",
Expand Down Expand Up @@ -34,10 +34,10 @@
},
"devDependencies": {
"@types/node": "^18.7.18",
"ava": "5.1.0",
"ava": "5.3.1",
"ts-node": "10.8.1",
"tslib": "^2.4.0",
"tsup": "^7.1.0",
"tsup": "^6.2.3",
"typescript": "^4.8.3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/src/sanitize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type SanitizeOptions = {
const sanitize = (item: any, options: SanitizeOptions = {}) => {
// Stringify output to ensure we show deep nesting
const maybeStringify = (o: any) =>
options.stringify === false ? o : stringify(o);
options.stringify === false ? o : stringify(o, null, 2);

if (item instanceof Error) {
return item;
Expand Down
23 changes: 20 additions & 3 deletions packages/logger/test/logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ test('should log objects as strings', (t) => {
logger.success(obj);

const { message } = logger._parse(logger._last);
t.is(message, '{"a":22}');
t.is(
message,
`{
"a": 22
}`
);

const messageObj = JSON.parse(message as string);
t.deepEqual(messageObj.a, 22);
Expand Down Expand Up @@ -346,7 +351,14 @@ test('log a circular object', async (t) => {
logger.success(a);

const { message } = logger._parse(logger._last);
t.is(message, '{"z":{"a":"[Circular]"}}');
t.is(
message,
`{
"z": {
"a": "[Circular]"
}
}`
);
});

test('log a circular object as JSON', async (t) => {
Expand Down Expand Up @@ -375,7 +387,12 @@ test('ignore functions on logged objects', async (t) => {
logger.success(obj);

const { message } = logger._parse(logger._last);
t.is(message, '{"a":1}');
t.is(
message,
`{
"a": 1
}`
);
});

test('log an error object', (t) => {
Expand Down
Loading

0 comments on commit df96348

Please sign in to comment.