Skip to content

Commit

Permalink
fix[ext]: yolo-2
Browse files Browse the repository at this point in the history
  • Loading branch information
molszanski committed Nov 12, 2024
1 parent 490e707 commit d5b80cf
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"@types/react-dom": "^18.0.6",
"classnames": "^2.3.1",
"debug": "^4.3.4",
"iti": "0.7.0-alpha.3",
"iti-react": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"iti-react": "0.7.0-alpha.4",
"lodash": "^4.17.21",
"mobx": "^6.6.1",
"mobx-react": "^7.5.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/node-cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lodash": "^4.17.21",
"mobx": "^6.3.12",
"nodemon": "^2.0.15",
"iti": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"react": "^17.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/node-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lodash": "^4.17.21",
"mobx": "^6.3.12",
"nodemon": "^2.0.15",
"iti": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"react": "^17.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/node-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lodash": "^4.17.21",
"mobx": "^6.3.12",
"nodemon": "^2.0.15",
"iti": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"react": "^17.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/node-mjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lodash": "^4.17.21",
"mobx": "^6.3.12",
"nodemon": "^2.0.15",
"iti": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"react": "^17.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.5"
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"iti": "0.7.0-alpha.3",
"iti-react": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"iti-react": "0.7.0-alpha.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
16 changes: 10 additions & 6 deletions iti-react/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"name": "iti-react",
"version": "0.7.0-alpha.3",
"version": "0.7.0-alpha.4",
"description": "Handy React bindings for iti, a ~1kB Typesafe dependency injection framework for TypeScript and JavaScript with a unique support for async flow",
"type": "module",
"sideEffects": false,
"source": "src/index.ts",
"module": "./dist/iti-react.mjs",
"module": "./dist/iti-react.js",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/iti-react.mjs"
"default": "./dist/iti-react.js"
},
"default": "./dist/iti-react.mjs"
"default": "./dist/iti-react.js"
},
"./package.json": "./package.json"
},
"source": "src/index.ts",
"publishConfig": {
"source": "./src/index.ts",
"module": "./dist/iti-react.js"
},
"files": [
"dist"
],
Expand All @@ -29,7 +33,7 @@
"prepare-not": "install-peers"
},
"dependencies": {
"iti": "0.7.0-alpha.3",
"iti": "0.7.0-alpha.4",
"utility-types": "^3.10.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions iti-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
export type { GetContainerFormat, UnPromisify } from "./_utils"

// React
export { generateEnsureContainerSet } from "./react/library.generate-ensure-hooks"
export { getContainerSetHooks } from "./react/library.hook-generator"
export { generateEnsureContainerSet } from "./react/library.generate-ensure-hooks.js"
export { getContainerSetHooks } from "./react/library.hook-generator.js"
4 changes: 3 additions & 1 deletion iti-react/src/react/library.hook-generator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, { useContext, useEffect, useState } from "react"
import { useBetterGenericContainer } from "./library.hooks.js"
import { addGetter, UnPromisify } from "../_utils.js"
import { addGetter } from "../_utils.js"

import type { UnPromisify } from "../_utils"
import type { Container, UnpackFunction, Prettify } from "iti"

type UnpackTokenFromContext<
Expand Down
2 changes: 1 addition & 1 deletion iti/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iti",
"version": "0.7.0-alpha.3",
"version": "0.7.0-alpha.4",
"description": "~1kB Dependency Injection Library for Typescript and React with a unique async flow support",
"sideEffects": false,
"type": "module",
Expand Down

0 comments on commit d5b80cf

Please sign in to comment.