Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #115

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.1",
"version": "1.0.2",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"dev": "lerna run --parallel dev",
"build": "lerna run --stream build",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && lerna run --stream build",
"clean": "lerna run clean",
"typescript": "lerna run --stream typescript",
"test": "lerna run --stream test",
Expand Down Expand Up @@ -62,6 +62,10 @@
"typedoc": "0.17.0-3",
"typescript": "^4.0.3"
},
"resolutions": {
"@types/react": "17.0.25",
"@types/react-dom": "17.0.25"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn typescript",
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/domain/Log4brainsError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* Any error thrown by the core API extends this class.
*/
export class Log4brainsError extends Error {
constructor(public readonly name: string, public readonly details?: string) {
constructor(
public readonly name: string,
public readonly details?: string | unknown
) {
super(`${name}${details ? ` (${details})` : ""}`);
}
}
4 changes: 2 additions & 2 deletions packages/global-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "log4brains",
"version": "1.0.1",
"version": "1.0.2",
"description": "Log and publish your architecture decisions (ADR) with Log4brains",
"keywords": [
"log4brains",
Expand Down Expand Up @@ -50,7 +50,7 @@
"@log4brains/cli": "1.0.0",
"@log4brains/cli-common": "1.0.0",
"@log4brains/init": "1.0.0",
"@log4brains/web": "1.0.1",
"@log4brains/web": "1.0.2",
"chalk": "^4.1.0",
"commander": "^6.1.0",
"esm": "^3.2.25"
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@log4brains/web",
"version": "1.0.1",
"version": "1.0.2",
"description": "Log4brains architecture knowledge base web UI and static site generator",
"keywords": [
"log4brains"
Expand Down Expand Up @@ -77,7 +77,7 @@
"@storybook/react": "^6.1.9",
"@types/lunr": "^2.3.3",
"@types/mkdirp": "^1.0.1",
"@types/react": "^17.0.0",
"@types/react": "^17.0.25",
"@types/react-test-renderer": "^16.9.3",
"@types/signale": "^1.4.1",
"@types/socket.io": "^2.1.11",
Expand Down
3 changes: 2 additions & 1 deletion packages/web/src/cli/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export async function previewCommand(
srv.listen(port);
})
);
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
appConsole.stopSpinner();
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (err.code === "EADDRINUSE") {
Expand Down
6 changes: 3 additions & 3 deletions packages/web/src/components/AdrStatusChip/AdrStatusChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import {
lightGreen,
brown
} from "@material-ui/core/colors";
import { createStyles, Theme, makeStyles } from "@material-ui/core/styles";
import { createStyles, makeStyles } from "@material-ui/core/styles";
import type { AdrDtoStatus } from "@log4brains/core";
import clsx from "clsx";

// Styles are inspired by the MUI "Badge" styles
const useStyles = makeStyles((theme: Theme) =>
const useStyles = makeStyles(() =>
createStyles({
root: {
fontSize: "0.74rem",
fontWeight: theme.typography.fontWeightMedium,
fontWeight: 500,
height: "18px",
verticalAlign: "text-bottom"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/components/MarkdownToc/MarkdownToc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useStyles = makeStyles((theme: Theme) =>
}
},
title: {
fontWeight: theme.typography.fontWeightBold,
fontWeight: "bold",
paddingBottom: theme.spacing(1)
},
tocUl: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const useStyles = makeStyles((theme: CustomTheme) => {
paddingRight: theme.spacing(3)
},
adlTitle: {
fontWeight: theme.typography.fontWeightBold
fontWeight: "bold"
},
adrMenuSpinner: {
alignSelf: "center",
Expand Down
10,561 changes: 5,768 additions & 4,793 deletions yarn.lock

Large diffs are not rendered by default.