Skip to content

Commit

Permalink
[NPM] Rename @inertiajs/* to @jamesst20/*
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesst20 committed Aug 31, 2024
1 parent abd5126 commit af94e11
Show file tree
Hide file tree
Showing 84 changed files with 102 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ npm run ssr:serve

This section is really for the benefit of the core maintainers.

1. Increment the version numbers in the `package.json` file for each package, making sure to also update the adapter dependencies on `@inertiajs/core`.
1. Increment the version numbers in the `package.json` file for each package, making sure to also update the adapter dependencies on `@jamesst20/core`.
2. Run `npm install` to update the top-laravel `package-lock.json` file.
3. Update `CHANGELOG.md`.
4. Run `npm publish` for each package. This will automatically run the necessary build step.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report----react.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

### Version:

- `@inertiajs/react` version: #.#.#
- `@jamesst20/react` version: #.#.#

### Describe the problem:

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report----svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: pedroborges

### Version:

- `@inertiajs/svelte` version: #.#.#
- `@jamesst20/svelte` version: #.#.#

### Describe the problem:

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
cd packages/core && npm run build
cd ../vue2 && npm run build
- name: Local-link @inertiajs/core
- name: Local-link @jamesst20/core
run: cd packages/core && npm link

- name: Local-link @inertiajs/${{ matrix.adapter }}
- name: Local-link @jamesst20/${{ matrix.adapter }}
run: cd packages/${{ matrix.adapter }} && npm link

- name: Install Cypress Dependencies
run: |
cd packages/${{ matrix.adapter }}/tests
npm install
npm link "@inertiajs/core" "@inertiajs/${{ matrix.adapter }}"
npm link "@jamesst20/core" "@jamesst20/${{ matrix.adapter }}"
- name: Run Cypress (${{ matrix.browser }} / ${{ matrix.adapter }})
run: |
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@inertiajs/core",
"name": "@jamesst20/core",
"version": "1.2.0",
"license": "MIT",
"description": "A framework for creating server-driven single page apps.",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@inertiajs/react",
"name": "@jamesst20/react",
"version": "1.2.0",
"license": "MIT",
"description": "The React adapter for Inertia.js",
Expand Down Expand Up @@ -59,7 +59,7 @@
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@inertiajs/core": "1.2.0",
"@jamesst20/core": "1.2.0",
"lodash.isequal": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/react/src/App.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHeadManager, router } from '@inertiajs/core'
import { createHeadManager, router } from '@jamesst20/core'
import { createElement, useEffect, useMemo, useState } from 'react'
import HeadContext from './HeadContext'
import PageContext from './PageContext'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Progress,
router,
shouldIntercept,
} from '@inertiajs/core'
} from '@jamesst20/core'
import { createElement, forwardRef, useCallback } from 'react'

const noop = () => undefined
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/createInertiaApp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, PageProps, PageResolver, setupProgress } from '@inertiajs/core'
import { Page, PageProps, PageResolver, setupProgress } from '@jamesst20/core'
import { ComponentType, FunctionComponent, Key, ReactElement, ReactNode, createElement } from 'react'
import { renderToString } from 'react-dom/server'
import App from './App'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router as Router } from '@inertiajs/core'
import { router as Router } from '@jamesst20/core'

export const router = Router
export { default as Head } from './Head'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/server.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as default } from '@inertiajs/core/server'
export { default as default } from '@jamesst20/core/server'
2 changes: 1 addition & 1 deletion packages/react/src/useForm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@inertiajs/core'
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@jamesst20/core'
import isEqual from 'lodash.isequal'
import { useCallback, useEffect, useRef, useState } from 'react'
import useRemember from './useRemember'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/usePage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, PageProps } from '@inertiajs/core'
import { Page, PageProps } from '@jamesst20/core'
import { useContext } from 'react'
import PageContext from './PageContext'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/useRemember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from '@inertiajs/core'
import { router } from '@jamesst20/core'
import { Dispatch, SetStateAction, useEffect, useState } from 'react'

export default function useRemember<State>(
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@inertiajs/svelte",
"name": "@jamesst20/svelte",
"version": "1.2.0",
"license": "MIT",
"description": "The Svelte adapter for Inertia.js",
Expand Down Expand Up @@ -61,7 +61,7 @@
"types": "./dist/index.d.ts",
"type": "module",
"dependencies": {
"@inertiajs/core": "1.2.0",
"@jamesst20/core": "1.2.0",
"lodash": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/components/Link.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { Method, PreserveStateOption, RequestPayload } from '@inertiajs/core'
import type { Method, PreserveStateOption, RequestPayload } from '@jamesst20/core'
import { beforeUpdate } from 'svelte'
import { inertia } from '../index'
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/components/Render.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script context="module" lang="ts">
import type { PageProps } from '@inertiajs/core'
import type { PageProps } from '@jamesst20/core'
import type { ComponentType } from 'svelte'
type RenderProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/components/SSR.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script context="module" lang="ts">
import type { Page } from '@inertiajs/core'
import type { Page } from '@jamesst20/core'
export type SSRProps = { id: string; initialPage: Page }
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/createInertiaApp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router, setupProgress, type InertiaAppResponse, type Page } from '@inertiajs/core'
import { router, setupProgress, type InertiaAppResponse, type Page } from '@jamesst20/core'
import type { ComponentType } from 'svelte'
import App from './components/App.svelte'
import SSR, { type SSRProps } from './components/SSR.svelte'
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { router } from '@inertiajs/core'
export { router } from '@jamesst20/core'
export { default as Link } from './components/Link.svelte'
export { default as createInertiaApp } from './createInertiaApp'
export { default as inertia } from './link'
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mergeDataIntoQueryString, router, shouldIntercept, type VisitOptions } from '@inertiajs/core'
import { mergeDataIntoQueryString, router, shouldIntercept, type VisitOptions } from '@jamesst20/core'
import type { Action } from 'svelte/action'

interface ActionElement extends HTMLElement {
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/remember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from '@inertiajs/core'
import { router } from '@jamesst20/core'
import { onDestroy } from 'svelte'
import { writable } from 'svelte/store'

Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/server.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as default } from '@inertiajs/core/server'
export { default as default } from '@jamesst20/core/server'
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Page } from '@inertiajs/core'
import type { Page } from '@jamesst20/core'
import { writable } from 'svelte/store'
import type { ResolvedComponent } from './types'

Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Page } from '@inertiajs/core'
import type { Page } from '@jamesst20/core'
import type { ComponentType } from 'svelte'

export type ComponentResolver = (name: string, page: Page) => ResolvedComponent | Promise<ResolvedComponent>
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/src/lib/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import type {
Progress,
RequestPayload,
VisitOptions,
} from '@inertiajs/core'
import { router } from '@inertiajs/core'
} from '@jamesst20/core'
import { router } from '@jamesst20/core'
import type { AxiosProgressEvent } from 'axios'
import cloneDeep from 'lodash/cloneDeep'
import isEqual from 'lodash/isEqual'
Expand Down
4 changes: 2 additions & 2 deletions packages/vue2/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@inertiajs/vue2",
"name": "@jamesst20/vue2",
"version": "1.2.0",
"license": "MIT",
"description": "The Vue 2 adapter for Inertia.js",
Expand Down Expand Up @@ -58,7 +58,7 @@
"vue": "^2.7.0"
},
"dependencies": {
"@inertiajs/core": "1.2.0",
"@jamesst20/core": "1.2.0",
"lodash.clonedeep": "^4.5.0",
"lodash.isequal": "^4.5.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHeadManager, Page, router } from '@inertiajs/core'
import { createHeadManager, Page, router } from '@jamesst20/core'
import { Component, computed, PluginObject, reactive } from 'vue'
import { ComponentOptions } from 'vue/types/umd'
import remember from './remember'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/createInertiaApp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, setupProgress } from '@inertiajs/core'
import { Page, setupProgress } from '@jamesst20/core'
import { Component, PluginObject } from 'vue'
import App, { InertiaApp, InertiaProps, plugin } from './app'

Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { router } from '@inertiajs/core'
export { router } from '@jamesst20/core'
export { usePage } from './app'
export { default as createInertiaApp } from './createInertiaApp'
export { default as Head } from './head'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Progress,
router,
shouldIntercept,
} from '@inertiajs/core'
} from '@jamesst20/core'
import { FunctionalComponentOptions, PropType } from 'vue'

export interface InertiaLinkProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/remember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from '@inertiajs/core'
import { router } from '@jamesst20/core'

export default {
created() {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/server.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as default } from '@inertiajs/core/server'
export { default as default } from '@jamesst20/core/server'
4 changes: 2 additions & 2 deletions packages/vue2/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createHeadManager, Page, PageHandler, router } from '@inertiajs/core'
import { createHeadManager, Page, PageHandler, router } from '@jamesst20/core'
import { ComponentPublicInstance } from 'vue'
import useForm, { InertiaFormTrait } from './useForm'

export type VuePageHandlerArgs = Parameters<PageHandler>[0] & {
component: ComponentPublicInstance | Promise<ComponentPublicInstance>
}

declare module '@inertiajs/core' {
declare module '@jamesst20/core' {
export interface Router {
form: typeof useForm
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/src/useForm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@inertiajs/core'
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@jamesst20/core'
import cloneDeep from 'lodash.clonedeep'
import isEqual from 'lodash.isequal'
import { reactive, watch } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/tests/app/Pages/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
</div>
</template>
<script>
import { router } from '@inertiajs/vue2'
import { router } from '@jamesst20/vue2'
export default {
data: () => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/vue2/tests/app/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createInertiaApp, Link, router } from '@inertiajs/vue2'
import { createInertiaApp, Link, router } from '@jamesst20/vue2'
import Vue from 'vue'

Vue.component('InertiaLink', Link)
Expand Down
4 changes: 2 additions & 2 deletions packages/vue2/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"vue": "^2.7.14"
},
"dependencies": {
"@inertiajs/core": "file:../../core",
"@inertiajs/vue2": "file:.."
"@jamesst20/core": "file:../../core",
"@jamesst20/vue2": "file:.."
}
}
4 changes: 2 additions & 2 deletions packages/vue3/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@inertiajs/vue3",
"name": "@jamesst20/vue3",
"version": "1.2.0",
"license": "MIT",
"description": "The Vue 3 adapter for Inertia.js",
Expand Down Expand Up @@ -56,7 +56,7 @@
"vue": "^3.0.0"
},
"dependencies": {
"@inertiajs/core": "1.2.0",
"@jamesst20/core": "1.2.0",
"lodash.clonedeep": "^4.5.0",
"lodash.isequal": "^4.5.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHeadManager, Page, PageProps, router } from '@inertiajs/core'
import { createHeadManager, Page, PageProps, router } from '@jamesst20/core'
import {
computed,
DefineComponent,
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/createInertiaApp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, setupProgress } from '@inertiajs/core'
import { Page, setupProgress } from '@jamesst20/core'
import { DefineComponent, Plugin, App as VueApp, createSSRApp, h } from 'vue'
import App, { InertiaApp, InertiaAppProps, plugin } from './app'

Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { router } from '@inertiajs/core'
export { router } from '@jamesst20/core'
export { usePage } from './app'
export { default as createInertiaApp } from './createInertiaApp'
export { default as Head } from './head'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mergeDataIntoQueryString, Method, PageProps, Progress, router, shouldIntercept } from '@inertiajs/core'
import { mergeDataIntoQueryString, Method, PageProps, Progress, router, shouldIntercept } from '@jamesst20/core'
import { defineComponent, DefineComponent, h, PropType } from 'vue'

export interface InertiaLinkProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/remember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from '@inertiajs/core'
import { router } from '@jamesst20/core'
import cloneDeep from 'lodash.clonedeep'
import { ComponentOptions } from 'vue'

Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/server.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as default } from '@inertiajs/core/server'
export { default as default } from '@jamesst20/core/server'
4 changes: 2 additions & 2 deletions packages/vue3/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createHeadManager, Page, PageHandler, router } from '@inertiajs/core'
import { createHeadManager, Page, PageHandler, router } from '@jamesst20/core'
import { ComponentPublicInstance } from 'vue'
import useForm from './useForm'

export type VuePageHandlerArgs = Parameters<PageHandler>[0] & {
component: ComponentPublicInstance | Promise<ComponentPublicInstance>
}

declare module '@inertiajs/core' {
declare module '@jamesst20/core' {
export interface Router {
form: typeof useForm
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/useForm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@inertiajs/core'
import { FormDataConvertible, Method, Progress, router, VisitOptions } from '@jamesst20/core'
import cloneDeep from 'lodash.clonedeep'
import isEqual from 'lodash.isequal'
import { reactive, watch } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/useRemember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from '@inertiajs/core'
import { router } from '@jamesst20/core'
import cloneDeep from 'lodash.clonedeep'
import { isReactive, reactive, ref, Ref, watch } from 'vue'

Expand Down
4 changes: 2 additions & 2 deletions playgrounds/react/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@inertiajs/react-playground",
"name": "@jamesst20/react-playground",
"private": true,
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build && vite build --ssr"
},
"devDependencies": {
"@inertiajs/react": "^1.0.0",
"@jamesst20/react": "^1.0.0",
"@types/react": "^16.14.35",
"@types/react-dom": "^16.9.18",
"@vitejs/plugin-react": "^3.0.0",
Expand Down
Loading

0 comments on commit af94e11

Please sign in to comment.