Skip to content

Commit

Permalink
chore(update): updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
plusgut committed Jul 12, 2024
1 parent a14560b commit ce669cb
Show file tree
Hide file tree
Showing 8 changed files with 1,642 additions and 2,453 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.nodejs pkgs.yarn pkgs.nodePackages.typescript-language-server ];
};
}
);
}

1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ module.exports = {
lines: 100
}
}*/
testEnvironment: "jsdom" // default environment is "node", for a web app use a browser-like environment "jsdom" instead.
}
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@plusnew/enzyme-adapter",
"version": "1.1.0",
"version": "1.1.1",
"description": "adapter for enzyme testsuite to the plusnew framework",
"main": "src/index.ts",
"module": "src/index.ts",
"scripts": {
"prepublishOnly": "yarn run test --no-cache",
"test": "jest --coverage",
"test:watch": "jest --watch"
"prepublishOnly": "jest --coverage --no-cache",
"test": "jest --coverage --no-cache",
"test:watch": "jest --watch --no-cache"
},
"repository": {
"type": "git",
Expand All @@ -20,14 +20,16 @@
},
"homepage": "https://github.com/plusnew/enzyme-adapter-plusnew#readme",
"devDependencies": {
"@plusnew/core": "^1.0.1",
"@plusnew/driver-dom": "^1.0.2",
"@types/jest": "^26.0.0",
"@plusnew/core": "^1.7.9",
"@plusnew/driver-dom": "^1.5.2",
"@preact/signals-core": "^1.7.0",
"@types/jest": "^29.5.12",
"enzyme": "3.11.0",
"jest": "^25.1.0",
"ts-jest": "^25.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.2.2",
"tslint": "6.1.3",
"tslint-config-airbnb": "5.11.2",
"typescript": "3.9.7"
"typescript": "5.5.3"
}
}
}
3 changes: 2 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ComponentContainer } from '@plusnew/core';
import type { props as IProps } from '@plusnew/core/src/interfaces/component';

export function getAwaitAllHandle() {
let todoQueue: Promise<any>[] = [];
Expand All @@ -22,7 +23,7 @@ export function getAwaitAllHandle() {
}

export function getComponentPartial<
props,
props extends Partial<IProps & { children: any; }>,
HostElement,
HostTextElement
>(component: ComponentContainer<props, HostElement, HostTextElement>): ComponentContainer<Partial<props>, HostElement, HostTextElement> {
Expand Down
40 changes: 17 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"include": [
"src/*",
"test/*",
"node_modules/@plusnew"
"node_modules/@plusnew",
"node_modules/@preact/signals-core",
],
"compilerOptions": {
/* Basic Options */
"target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation: */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"reactNamespace": "plusnew",
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./dist/", /* Redirect output structure to the directory. */
Expand All @@ -23,41 +24,34 @@
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strictPropertyInitialization": true,
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */

"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */


"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"baseUrl": "./src/", /* Base directory to resolve non-absolute module names. */
"importsNotUsedAsValues": "error"
"baseUrl": "./src/", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": ["src"], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */

/* Source Map Options */
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */

/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
Loading

0 comments on commit ce669cb

Please sign in to comment.