Compare commits

...

14 Commits

Author SHA1 Message Date
Szilárd Dóró
ce1ea16981 Merge pull request #661 from nhost/changeset-release/main
chore: update versions
2022-06-02 12:50:27 +02:00
github-actions[bot]
7048eaf0bb chore: update versions 2022-06-02 10:47:48 +00:00
Szilárd Dóró
9c382a3773 Merge pull request #660 from nhost/fix/esm-rollback
chore: reverted ESM related changes
2022-06-02 12:46:57 +02:00
Johan Eliasson
7f07c75dc4 Merge pull request #659 from gdangelo/docs/quickstarts-nextjs
docs: Add skip option to useQuery call to skip query if id is falsy
2022-06-02 12:44:13 +02:00
Szilárd Dóró
ebad09364e added changeset 2022-06-02 12:43:40 +02:00
Szilárd Dóró
cbec4dbab6 chore: reverted ESM related changes
ESM gods didn't like me 😞 we'll come back to this in the future
2022-06-02 11:26:23 +02:00
Grégory D'Angelo
bcf2751625 docs: Add skip option to useQuery call to skip query if id is falsy 2022-06-02 09:20:53 +02:00
Szilárd Dóró
f7ddafdf05 Merge pull request #657 from nhost/changeset-release/main
chore: update versions
2022-06-01 15:26:43 +02:00
github-actions[bot]
f86b707d34 chore: update versions 2022-06-01 13:23:25 +00:00
Szilárd Dóró
d281665424 Merge pull request #655 from nhost/fix/missing-modules
fix: `@nhost/react-apollo` imports
2022-06-01 15:22:21 +02:00
Szilárd Dóró
24659b2979 fixed build warning related to unknown globals 2022-06-01 14:52:36 +02:00
Szilárd Dóró
ef8c8f9cd4 fixed @nhost/react-apollo imports 2022-06-01 14:47:04 +02:00
Johan Eliasson
bc526e70ef Merge pull request #651 from gdangelo/docs/quickstarts-redwoodjs
docs: Add skip option to useQuery call to skip query if id is falsy
2022-06-01 14:30:23 +02:00
Grégory D'Angelo
c1c7ceb319 docs: Add skip option to useQuery call to skip query if id is falsy 2022-06-01 13:20:41 +02:00
58 changed files with 180 additions and 135 deletions

View File

@@ -59,7 +59,6 @@ module.exports = {
allowArrowFunction: true,
allowAnonymousFunction: true
}
],
'import/extensions': ['error', { js: 'always' }]
]
}
}

View File

@@ -1,4 +1,4 @@
const base = require('./.eslint.base.js')
const base = require('./.eslint.base')
module.exports = {
...base,
extends: ['react-app', 'plugin:react/recommended', 'plugin:react-hooks/recommended'],

View File

@@ -1,4 +1,4 @@
const base = require('./.eslint.base.js')
const base = require('./.eslint.base')
module.exports = {
...base,
extends: ['plugin:import/recommended', 'plugin:import/typescript'],

View File

@@ -13,23 +13,6 @@ const entry = fs.existsSync(tsEntry) ? tsEntry : tsEntry.replace('.ts', '.tsx')
const deps = [...Object.keys(Object.assign({}, pkg.peerDependencies, pkg.dependencies))]
function createModuleJsAndMapAfterBuild() {
return {
closeBundle() {
if (
fs.existsSync(path.join(PWD, 'dist/index.esm.js')) &&
fs.existsSync(path.join(PWD, 'dist/index.esm.js.map'))
) {
fs.copyFileSync(path.join(PWD, 'dist/index.esm.js'), path.join(PWD, 'dist/index.esm.mjs'))
fs.copyFileSync(
path.join(PWD, 'dist/index.esm.js.map'),
path.join(PWD, 'dist/index.esm.mjs.map')
)
}
}
}
}
export default defineConfig({
plugins: [
tsconfigPaths(),
@@ -42,8 +25,7 @@ export default defineConfig({
})
fs.rmdirSync(path.join(PWD, 'dist/src'))
}
}),
createModuleJsAndMapAfterBuild()
})
],
test: {
globals: true,
@@ -68,10 +50,11 @@ export default defineConfig({
globals: {
graphql: 'graphql',
'@apollo/client': '@apollo/client',
'@apollo/client/core/index.js': '@apollo/client/core',
'@apollo/client/link/context/index.js': '@apollo/client/link/context',
'@apollo/client/link/subscriptions/index.js': '@apollo/client/link/subscriptions',
'@apollo/client/utilities/index.js': '@apollo/client/utilities',
'@apollo/client/core': '@apollo/client/core',
'@apollo/client/link/context': '@apollo/client/link/context',
'@apollo/client/react': '@apollo/client/react',
'@apollo/client/link/subscriptions': '@apollo/client/link/subscriptions',
'@apollo/client/utilities': '@apollo/client/utilities',
'graphql-ws': 'graphql-ws',
xstate: 'xstate',
axios: 'axios',

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import viteLibConfig from './vite.lib.config.js'
import viteLibConfig from './vite.lib.config'
export default defineConfig({
...viteLibConfig,

View File

@@ -3,7 +3,7 @@ import path from 'path'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import baseLibConfig from './vite.lib.config.js'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))

View File

@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import baseLibConfig from './vite.lib.config.js'
import baseLibConfig from './vite.lib.config'
export default defineConfig({
...baseLibConfig,

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import viteReactConfig from './vite.react.config.js'
import viteReactConfig from './vite.react.config'
export default defineConfig({
...viteReactConfig,

View File

@@ -5,7 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
import react from '@vitejs/plugin-react'
import baseLibConfig from './vite.lib.config.js'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))

View File

@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import baseLibConfig from './vite.lib.config.js'
import baseLibConfig from './vite.lib.config'
export default defineConfig({
...baseLibConfig,

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import viteVueConfig from './vite.vue.config.js'
import viteVueConfig from './vite.vue.config'
export default defineConfig({
...viteVueConfig,

View File

@@ -5,7 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
import vue from '@vitejs/plugin-vue'
import baseLibConfig from './vite.lib.config.js'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))

View File

@@ -673,7 +673,8 @@ export function UserProvider({ children = null }) {
const id = useUserId()
// highlight-start
const { loading, error, data } = useQuery(GET_USER_QUERY, {
variables: { id }
variables: { id },
skip: !id
})
const user = data?.user
// highlight-end

View File

@@ -1090,7 +1090,8 @@ export function UserProvider({ children = null }) {
const { userMetadata } = useAuth()
const { loading, error, data } = useQuery(GET_USER_QUERY, {
variables: { id: userMetadata?.id }
variables: { id: userMetadata?.id },
skip: !userMetadata?.id
})
const user = data?.user

View File

@@ -5,7 +5,6 @@ module.exports = {
'plugin:@next/next/recommended'
],
rules: {
'react/react-in-jsx-scope': 'off',
'import/extensions': 'off'
'react/react-in-jsx-scope': 'off'
}
}

View File

@@ -15,7 +15,7 @@
<script lang="ts">
import { computed, defineComponent } from 'vue'
import { gql } from '@apollo/client/core/index.js'
import { gql } from '@apollo/client/core'
import { useAuthenticated } from '@nhost/vue'
import { useQuery } from '@vue/apollo-composable'

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { gql } from '@apollo/client/core/index.js'
import { gql } from '@apollo/client/core'
import { useNhostClient, useUserId } from '@nhost/vue'
import { useMutation, useSubscription } from '@vue/apollo-composable'
import { computed, ref } from 'vue'

View File

@@ -1,5 +1,13 @@
# @nhost/apollo
## 0.5.12
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/nhost-js@1.2.3
## 0.5.11
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/apollo",
"version": "0.5.11",
"version": "0.5.12",
"description": "Nhost Apollo Client library",
"license": "MIT",
"keywords": [
@@ -22,7 +22,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -32,11 +32,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -7,10 +7,10 @@ import {
RequestHandler,
split,
WatchQueryFetchPolicy
} from '@apollo/client/core/index.js'
import { setContext } from '@apollo/client/link/context/index.js'
import { GraphQLWsLink } from '@apollo/client/link/subscriptions/index.js'
import { getMainDefinition } from '@apollo/client/utilities/index.js'
} from '@apollo/client/core'
import { setContext } from '@apollo/client/link/context'
import { GraphQLWsLink } from '@apollo/client/link/subscriptions'
import { getMainDefinition } from '@apollo/client/utilities'
import { NhostClient } from '@nhost/nhost-js'
import { createRestartableClient } from './ws'

View File

@@ -1,5 +1,11 @@
# @nhost/core
## 0.6.4
### Patch Changes
- ebad0936: reverted ESM related changes
## 0.6.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/core",
"version": "0.6.3",
"version": "0.6.4",
"description": "Nhost core client library",
"license": "MIT",
"keywords": [
@@ -21,7 +21,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -31,11 +31,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthClient } from '../src/client'
import { INVALID_EMAIL_ERROR } from '../src/errors'
import { createAuthMachine, createChangeEmailMachine } from '../src/machines'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthClient } from '../src/client'
import { INVALID_PASSWORD_ERROR } from '../src/errors'
import { createAuthMachine, createChangePasswordMachine } from '../src/machines'

View File

@@ -1,7 +1,7 @@
import faker from '@faker-js/faker'
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthClient } from '../src/client'
import { INVALID_MFA_CODE_ERROR, INVALID_MFA_TYPE_ERROR } from '../src/errors'
import { createAuthMachine, createEnableMfaMachine } from '../src/machines'

View File

@@ -1,7 +1,7 @@
import faker from '@faker-js/faker'
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'
import { BASE_URL } from './helpers/config'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { INVALID_EMAIL_ERROR } from '../src/errors'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,7 +1,7 @@
import faker from '@faker-js/faker'
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, vi } from 'vitest'
import { BaseActionObject, interpret, Interpreter, ResolveTypegenMeta, ServiceMap } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import {
NHOST_JWT_EXPIRES_AT_KEY,
NHOST_REFRESH_TOKEN_KEY,

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthClient } from '../src/client'
import { INVALID_EMAIL_ERROR } from '../src/errors'
import { createResetPasswordMachine } from '../src/machines'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthClient } from '../src/client'
import { INVALID_EMAIL_ERROR } from '../src/errors'
import { createSendVerificationEmailMachine } from '../src/machines'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { NHOST_REFRESH_TOKEN_KEY } from '../src/constants'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,6 +1,6 @@
import faker from '@faker-js/faker'
import { interpret } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
import { createAuthMachine } from '../src/machines'
import { Typegen0 } from '../src/machines/index.typegen'

View File

@@ -1,5 +1,11 @@
# @nhost/docgen
## 0.1.2
### Patch Changes
- ebad0936: reverted ESM related changes
## 0.1.1
### Patch Changes

View File

@@ -2,7 +2,7 @@
"name": "@nhost/docgen",
"description": "Documentation generator for classes and functions",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts",

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env node
// eslint-disable-next-line import/extensions
import { snapshot } from 'valtio/vanilla'
import { getModuleContentMap } from './helpers'

View File

@@ -1,4 +1,3 @@
// eslint-disable-next-line import/extensions
import { proxyWithComputed } from 'valtio/utils'
export type AppState = {

View File

@@ -1,5 +1,4 @@
import { format } from 'prettier'
// eslint-disable-next-line import/extensions
import { snapshot } from 'valtio/vanilla'
import {

View File

@@ -1,5 +1,13 @@
# @nhost/hasura-auth-js
## 1.1.13
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/core@0.6.4
## 1.1.12
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/hasura-auth-js",
"version": "1.1.12",
"version": "1.1.13",
"description": "Hasura-auth client",
"license": "MIT",
"keywords": [
@@ -20,7 +20,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -30,11 +30,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import baseConfig from '../../config/vite.lib.config.js'
import baseConfig from '../../config/vite.lib.config'
export default defineConfig({
...baseConfig,

View File

@@ -1,5 +1,11 @@
# @nhost/hasura-storage-js
## 0.3.3
### Patch Changes
- ebad0936: reverted ESM related changes
## 0.3.2
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/hasura-storage-js",
"version": "0.3.2",
"version": "0.3.3",
"description": "Hasura-storage client",
"license": "MIT",
"keywords": [
@@ -18,7 +18,7 @@
"url": "https://github.com/nhost/hasura-storage-js.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -28,11 +28,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,5 +1,15 @@
# @nhost/nextjs
## 1.2.12
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/core@0.6.4
- @nhost/nhost-js@1.2.3
- @nhost/react@0.7.12
## 1.2.11
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nextjs",
"version": "1.2.11",
"version": "1.2.12",
"description": "Nhost NextJS library",
"license": "MIT",
"keywords": [
@@ -24,7 +24,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -34,11 +34,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,7 +1,7 @@
import Cookies from 'cookies'
import { GetServerSidePropsContext } from 'next'
import { StateFrom } from 'xstate'
import { waitFor } from 'xstate/lib/waitFor.js'
import { waitFor } from 'xstate/lib/waitFor'
import { AuthMachine, NHOST_REFRESH_TOKEN_KEY } from '@nhost/core'
import { NhostClient } from '@nhost/nhost-js'

View File

@@ -1,5 +1,14 @@
# @nhost/nhost-js
## 1.2.3
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/hasura-auth-js@1.1.13
- @nhost/hasura-storage-js@0.3.3
## 1.2.2
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nhost-js",
"version": "1.2.2",
"version": "1.2.3",
"description": "Nhost JavaScript SDK",
"license": "MIT",
"keywords": [
@@ -21,7 +21,7 @@
"url": "git+https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -31,11 +31,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,5 +1,20 @@
# @nhost/react-apollo
## 4.2.14
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/apollo@0.5.12
- @nhost/react@0.7.12
## 4.2.13
### Patch Changes
- ef8c8f9c: fixed imports in `@nhost/react-apollo`
## 4.2.12
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-apollo",
"version": "4.2.12",
"version": "4.2.14",
"description": "Nhost React Apollo client",
"license": "MIT",
"keywords": [
@@ -23,7 +23,7 @@
"url": "git+https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -33,11 +33,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,5 +1,14 @@
# @nhost/react-auth
## 3.0.10
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/hasura-auth-js@1.1.13
- @nhost/react@0.7.12
## 3.0.9
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-auth",
"version": "3.0.9",
"version": "3.0.10",
"description": "Nhost React client",
"license": "MIT",
"keywords": [
@@ -22,9 +22,9 @@
"url": "git+https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.tsx",
"source": "src/index.ts",
"files": [
"dist",
"umd",
@@ -32,11 +32,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,5 +1,14 @@
# @nhost/react
## 0.7.12
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/core@0.6.4
- @nhost/nhost-js@1.2.3
## 0.7.11
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react",
"version": "0.7.11",
"version": "0.7.12",
"description": "Nhost React library",
"license": "MIT",
"keywords": [
@@ -22,7 +22,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -32,11 +32,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {

View File

@@ -1,5 +1,14 @@
# @nhost/vue
## 0.1.5
### Patch Changes
- ebad0936: reverted ESM related changes
- Updated dependencies [ebad0936]
- @nhost/core@0.6.4
- @nhost/nhost-js@1.2.3
## 0.1.4
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/vue",
"version": "0.1.4",
"version": "0.1.5",
"description": "Nhost Vue library",
"license": "MIT",
"keywords": [
@@ -22,7 +22,7 @@
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
@@ -32,11 +32,8 @@
],
"exports": {
".": {
"node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"default": "./dist/index.esm.js"
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {