Skip to content

Commit

Permalink
update deps, clean tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Oct 5, 2022
1 parent 7b92d70 commit 1a7d5dc
Show file tree
Hide file tree
Showing 9 changed files with 1,272 additions and 10,114 deletions.
2,678 changes: 1 addition & 2,677 deletions dist/index.esm.js

Large diffs are not rendered by default.

2,684 changes: 1 addition & 2,683 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mods/react/contexts/core.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChildrenProps } from "../../../libs/react";
import { Core } from "../../core";
import { Params } from "../../types/params";
import React from "react";
import * as React from "react";
export declare const CoreContext: React.Context<Core | undefined>;
export declare function useCore(): Core;
export declare function useCoreProvider(params: Params): Core;
Expand Down
5,971 changes: 1,253 additions & 4,718 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"name": "@hazae41/xswr",
"version": "1.0.84",
"version": "1.0.85",
"author": "hazae41",
"license": "MIT",
"description": "The simplest React data (re)fetching library ever made",
"homepage": "https://github.com/hazae41/xswr#readme",
"homepage": "https://github.com/hazae41/xswr",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "rimraf dist && bunchee ./src/index.ts --no-sourcemap && ttsc && rimraf dist/libs"
"build": "rimraf dist && bunchee -m ./src/index.ts && ttsc && rimraf dist/libs"
},
"dependencies": {
"react": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.17",
"bunchee": "^1.9.1",
"@types/react": "^18.0.21",
"bunchee": "^2.0.1",
"rimraf": "^3.0.2",
"ttypescript": "^1.5.13",
"typescript": "^4.8.2",
"typescript": "^4.8.4",
"typescript-transform-paths": "^3.3.1"
},
"repository": {
Expand All @@ -26,8 +29,5 @@
},
"bugs": {
"url": "https://github.com/hazae41/xswr/issues"
},
"dependencies": {
"react": "^18.2.0"
}
}
}
3 changes: 2 additions & 1 deletion src/mods/react/contexts/core.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ChildrenProps } from "libs/react"
import { Core } from "mods/core"
import { Params } from "mods/types/params"
import React, { createContext, useContext, useEffect, useRef } from "react"
import * as React from "react"
import { createContext, useContext, useEffect, useRef } from "react"

export const CoreContext =
createContext<Core | undefined>(undefined)
Expand Down
17 changes: 0 additions & 17 deletions test/next/package-lock.json

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

1 change: 0 additions & 1 deletion test/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lint": "next lint"
},
"dependencies": {
"@hazae41/xswr": "^1.0.84",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
10 changes: 4 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
"outDir": "dist",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"declaration": true,
"emitDeclarationOnly": true,
"downlevelIteration": true,
"jsx": "preserve",
"lib": [
"dom",
"ESNext"
],
"jsx": "react",
"downlevelIteration": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"paths": {
"mods/*": [
"mods/*"
Expand All @@ -33,8 +32,7 @@
]
},
"exclude": [
"node_modules",
"libs"
"node_modules"
],
"include": [
"./src/index.ts"
Expand Down

0 comments on commit 1a7d5dc

Please sign in to comment.