Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hiroki0525/dandori
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 54c23683d66792b5d154dbd224d8b3d569805c63
Choose a base ref
..
head repository: hiroki0525/dandori
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b553a1259af04d16ae48afb63cec274be8824f74
Choose a head ref
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -26,27 +26,27 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/node": "^18.19.3",
"@typescript-eslint/eslint-plugin": "6.13.2",
"@typescript-eslint/parser": "6.13.2",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"eslint": "8.55.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-unused-imports": "3.0.0",
"eslint-plugin-vitest": "^0.3.10",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "3.1.0",
"prettier": "3.1.1",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
"turbo": "^1.11.1",
"typescript": "5.3.3",
"vitest": "^1.0.0"
},
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@8.12.1",
"engines": {
"node": ">=18.18.1",
"pnpm": "8.11.0"
"pnpm": "8.12.1"
},
"husky": {
"hooks": {
9 changes: 9 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @dandori/cli

## 0.0.22

### Patch Changes

- Updated dependencies [[`d3a1cfc`](https://github.com/hiroki0525/dandori/commit/d3a1cfc766544457de9c6d65c045b0657f27b7e5)]:
- @dandori/libs@0.0.22
- @dandori/ui@0.0.22
- @dandori/core@0.0.22

## 0.0.21

### Patch Changes
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dandori/cli",
"version": "0.0.21",
"version": "0.0.22",
"private": false,
"description": "",
"repository": {
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @dandori/core

## 0.0.22

### Patch Changes

- Updated dependencies [[`d3a1cfc`](https://github.com/hiroki0525/dandori/commit/d3a1cfc766544457de9c6d65c045b0657f27b7e5)]:
- @dandori/libs@0.0.22

## 0.0.21

### Patch Changes
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dandori/core",
"version": "0.0.21",
"version": "0.0.22",
"private": false,
"description": "",
"repository": {
6 changes: 6 additions & 0 deletions packages/libs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dandori/libs

## 0.0.22

### Patch Changes

- [#87](https://github.com/hiroki0525/dandori/pull/87) [`d3a1cfc`](https://github.com/hiroki0525/dandori/commit/d3a1cfc766544457de9c6d65c045b0657f27b7e5) Thanks [@hiroki0525](https://github.com/hiroki0525)! - fix miro log

## 0.0.21

### Patch Changes
2 changes: 1 addition & 1 deletion packages/libs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dandori/libs",
"version": "0.0.21",
"version": "0.0.22",
"private": false,
"description": "",
"repository": {
2 changes: 1 addition & 1 deletion packages/libs/src/checkApiKey.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function checkApiKey(
keyName: string,
targetKey?: string,
alternativeKey?: string,
alternativeKey?: string | undefined | null,
): string {
if (targetKey) {
return targetKey;
2 changes: 1 addition & 1 deletion packages/libs/src/logger.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export const setLogger = (newLogger: Logger): void => {
logger = newLogger;
};

type LogLevel = "debug" | "info" | "warn" | "error";
export type LogLevel = typeof process.env.LOG_LEVEL;

export const getLogLevel = (): LogLevel => {
return process.env.LOG_LEVEL ?? "info";
9 changes: 9 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @dandori/ui

## 0.0.22

### Patch Changes

- [#87](https://github.com/hiroki0525/dandori/pull/87) [`d3a1cfc`](https://github.com/hiroki0525/dandori/commit/d3a1cfc766544457de9c6d65c045b0657f27b7e5) Thanks [@hiroki0525](https://github.com/hiroki0525)! - fix miro log

- Updated dependencies []:
- @dandori/core@0.0.22

## 0.0.21

### Patch Changes
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dandori/ui",
"version": "0.0.21",
"version": "0.0.22",
"private": false,
"description": "",
"repository": {
9 changes: 7 additions & 2 deletions packages/ui/src/miro.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import {
export type GenerateDandoriMiroCardsOptions = {
boardId: Parameters<MiroApi["getBoard"]>[0];
isAppCard?: boolean;
apiKey?: string;
apiKey?: Parameters<typeof checkApiKey>[2];
};

// miro settings
@@ -66,7 +66,12 @@ export async function generateDandoriMiroCards(
);
const logger = getLogger();
const miroApi = new MiroApi(key, undefined, (...thing) => {
logger[getLogLevel()](thing);
// miro api sdk has no log level setting, so dandori only log debug level.
// https://github.com/miroapp/api-clients/blob/main/packages/miro-api/api/apis.ts#L4905-L4926
const logLevel = getLogLevel();
if (logLevel === "debug") {
logger[logLevel](thing);
}
});
const miroBoard = await miroApi.getBoard(options.boardId);
const taskFlat: (DandoriTask & { [taskParentPropName]?: string })[] = tasks
2 changes: 1 addition & 1 deletion packages/ui/src/notion.ts
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ export type DatabasePropertiesMap =
export type GenerateDandoriNotionPagesOptions = {
databaseId: string;
databasePropertiesMap?: DatabasePropertiesMap;
apiKey?: string;
apiKey?: Parameters<typeof checkApiKey>[2];
};

const hasStatusProperty = (
Loading