Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrconley committed Jul 24, 2023
1 parent bdedb10 commit e15e3f9
Show file tree
Hide file tree
Showing 19 changed files with 1,286 additions and 2,362 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["scripts", "@nornir/test"]
}
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
dist/
bundle/
*
53 changes: 28 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
name: Conditional Release
on:
push:
branches:
- main
- release
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.2.0
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Prepare
run: pnpm i --frozen-lockfile
- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: pnpm release
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.2.0
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Prepare
run: pnpm i --frozen-lockfile
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

32 changes: 0 additions & 32 deletions .releaserc.json

This file was deleted.

6 changes: 0 additions & 6 deletions commitlint.config.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ const test = {
"dist",
"node_modules",
"**/*.js",
"**/*.cjs"
],
rules: {
// Reduce is confusing, but it shouldn't be banned
"unicorn/no-array-reduce": ["off"],
"unicorn/filename-case": ["error", {
case: "kebabCase",
}],
"unicorn/no-empty-files": ["off"],
"workspaces/require-dependency": ["off"],
"unicorn/prevent-abbreviations": ["off"],
"no-secrets/no-secrets": ["warn", {"tolerance": 5.0}],
Expand Down
26 changes: 10 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,33 @@
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@changesets/cli": "^2.26.2",
"@chialab/esbuild-plugin-html": "^0.17.2",
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@eslint/eslintrc": "^2.0.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/eslint": "^8.37.0",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"dprint": "^0.34.5",
"esbuild": "^0.17.18",
"eslint": "^8.38.0",
"eslint": "^8.45.0",
"eslint-config-turbo": "^1.9.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-workspaces": "^0.8.0",
"eslint-plugin-unicorn": "^48.0.0",
"eslint-plugin-workspaces": "^0.9.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-html-reporters": "^3.1.4",
"jest-junit": "^15.0.0",
"multi-semantic-release": "^3.0.2",
"plop": "^3.1.2",
"scripts": "workspace:*",
"semantic-release": "^21.0.1",
"syncpack": "^9.8.4",
"ts-patch": "3.0.0-beta3",
"ts-patch": "^3.0.2",
"turbo": "^1.9.2",
"typescript": "^5.0.4"
"typescript": "^5.1.6"
},
"engines": {
"node": ">=18.0.0",
Expand All @@ -55,7 +49,7 @@
"lint": "dprint check && eslint packages/* --no-error-on-unmatched-pattern --cache && syncpack-list-mismatches",
"lint:fix": "dprint fmt && eslint packages/* --no-error-on-unmatched-pattern --fix && syncpack-fix-mismatches && syncpack-format",
"prepare": "patch-typescript && husky install",
"release": "pnpm lint && pnpm build:clean && multi-semantic-release --ignore-private-packages",
"release": "pnpm lint && pnpm build:clean && pnpm changeset publish",
"test": "compile:tests && jest-esm --json --outputFile=reports/report.json",
"watch": "pnpm -r --parallel compile:single:watch"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"author": "John Conley",
"devDependencies": {
"@jest/globals": "^29.5.0",
"@nrfcloud/ts-json-schema-transformer": "^1.1.1",
"@nrfcloud/ts-json-schema-transformer": "^1.2.1",
"@types/jest": "^29.4.0",
"@types/node": "^18.15.11",
"esbuild": "^0.17.18",
"eslint": "^8.38.0",
"eslint": "^8.45.0",
"jest": "^29.5.0",
"ts-patch": "3.0.0-beta3",
"typescript": "^5.0.4"
"ts-patch": "^3.0.2",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=18.0.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
"description": "A nornir library",
"version": "1.0.0",
"dependencies": {
"@nrfcloud/ts-json-schema-transformer": "^1.1.1",
"@nrfcloud/ts-json-schema-transformer": "^1.2.1",
"@types/aws-lambda": "^8.10.115",
"ajv": "^8.12.0",
"openapi-types": "^12.1.0",
"trouter": "^3.2.1",
"ts-json-schema-generator": "^1.3.0-next.5",
"ts-morph": "^18.0.0",
"ts-json-schema-generator": "^1.3.0-next.7",
"ts-morph": "^19.0.0",
"tsutils": "^3.21.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"@nornir/core": "workspace:*",
"@types/jest": "^29.4.0",
"@types/node": "^18.15.11",
"eslint": "^8.38.0",
"eslint": "^8.45.0",
"jest": "^29.5.0",
"ts-patch": "3.0.0-beta3",
"typescript": "^5.0.4"
"ts-patch": "^3.0.2",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=18.0.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/rest/src/runtime/error.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {Result} from "@nornir/core";
export abstract class NornirRestError extends Error implements NodeJS.ErrnoException {
public abstract toHttpResponse(): HttpResponse;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
public static isNornirRestError(err: any): err is NornirRestError {
return "toHttpResponse" in err;
}
Expand All @@ -32,7 +33,9 @@ interface ErrorMapping {
toHttpResponse(error: unknown): HttpResponse;
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function mapErrorClass<T extends NodeJS.ErrnoException, TClass extends new (...args: any) => T>(error: TClass, toHttpResponse: (err: T) => HttpResponse): ErrorMapping;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function mapErrorClass<T extends Error, TClass extends new (...args: any) => T>(error: TClass, toHttpResponse: (err: T) => HttpResponse): ErrorMapping {
return {
errorMatch: (err: unknown): err is T => err instanceof error,
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/src/transform/controller-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class ControllerMeta {
}

function deparameterizePath(path: string) {
return path.replace(/:[^/]+/g, ":param");
return path.replaceAll(/:[^/]+/g, ":param");
}

export interface RouteInfo {
Expand Down
3 changes: 2 additions & 1 deletion packages/rest/src/transform/openapi-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable eslint-comments/disable-enable-pair,unicorn/no-empty-file */

// import type { OpenAPIV3 } from "openapi-types";
// import { Metadata } from "typia/lib/metadata/Metadata";
// import { ApplicationProgrammer } from "typia/lib/programmers/ApplicationProgrammer";
Expand Down Expand Up @@ -122,4 +124,3 @@
// schema: object;
// }
// type MetaTupleSet = MetaTuple[];
console.log("NOOP");
1 change: 1 addition & 0 deletions packages/test/__tests__/src/test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line unicorn/no-empty-file
describe("test something", () => {
it.skip("should do something", () => {
expect(true).toBe(true);
Expand Down
8 changes: 4 additions & 4 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"@nrfcloud/ts-json-schema-transformer": "^1.1.1",
"@nrfcloud/ts-json-schema-transformer": "^1.2.1",
"@types/aws-lambda": "^8.10.115",
"@types/jest": "^29.4.0",
"@types/node": "^18.15.11",
"esbuild": "^0.17.18",
"eslint": "^8.38.0",
"eslint": "^8.45.0",
"jest": "^29.5.0",
"ts-patch": "3.0.0-beta3",
"typescript": "^5.0.4"
"ts-patch": "^3.0.2",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/test/src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const testResponse = await handler(
},
},
},
{} as any,
{} as never,
console.log,
) as APIGatewayProxyStructuredResultV2;

Expand Down
4 changes: 2 additions & 2 deletions plop_templates/utility-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"esbuild": "^0.17.15",
"eslint": "^8.38.0",
"jest": "^29.5.0",
"ts-patch": "3.0.0-beta3",
"typescript": "^5.0.4"
"ts-patch": "3.0.2",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=18.0.0",
Expand Down
Loading

0 comments on commit e15e3f9

Please sign in to comment.