Skip to content

Commit 29ec2ae

Browse files
committed
import check for shared/browser
1 parent dfad322 commit 29ec2ae

File tree

6 files changed

+96
-198
lines changed

6 files changed

+96
-198
lines changed

eslint.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import jsonc from "eslint-plugin-jsonc";
22
import putout from "eslint-plugin-putout";
33
import pipedream from "eslint-plugin-pipedream";
44
import typescriptEslint from "@typescript-eslint/eslint-plugin";
5+
import importPlugin from "eslint-plugin-import";
56
import jest from "eslint-plugin-jest";
67
import globals from "globals";
78
import parser from "jsonc-eslint-parser";
@@ -52,6 +53,7 @@ export default [
5253
pipedream,
5354
"@typescript-eslint": typescriptEslint,
5455
jest,
56+
"import": importPlugin,
5557
},
5658

5759
languageOptions: {
@@ -313,4 +315,17 @@ export default [
313315
"react/react-in-jsx-scope": "off",
314316
},
315317
},
318+
{
319+
files: [
320+
"packages/sdk/src/browser/**/*.ts",
321+
"packages/sdk/src/shared/**/*.ts",
322+
],
323+
324+
rules: {
325+
"import/extensions": [
326+
"error",
327+
"always",
328+
],
329+
},
330+
},
316331
];

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@typescript-eslint/parser": "^8",
4747
"eslint": "^8",
4848
"eslint-config-next": "^15",
49+
"eslint-plugin-import": "^2.31.0",
4950
"eslint-plugin-jest": "^28",
5051
"eslint-plugin-jsonc": "^1.6.0",
5152
"eslint-plugin-pipedream": "0.2.4",

packages/sdk/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- markdownlint-disable MD024 -->
22
# Changelog
33

4+
## [1.0.9] - 2024-12-04
5+
6+
### Added
7+
8+
- `triggerDeploy` preview API
9+
- `client.version` and `x-pd-sdk-version` header
10+
411
## [1.0.8] - 2024-11-29
512

613
### Changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Pipedream SDK",
55
"main": "dist/server/server/index.js",
66
"module": "dist/server/server/index.js",

packages/sdk/src/shared/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This code is meant to be shared between the browser and server.
2-
import { AsyncResponseManager } from "./async.js";
32
import type {
4-
AsyncResponse, AsyncErrorResponse,
3+
AsyncResponse,
4+
AsyncErrorResponse,
5+
AsyncResponseManager,
56
} from "./async.js";
67
import type { V1Component } from "./component.js";
78
export * from "./component.js";

0 commit comments

Comments
 (0)