openpanel/packages/cli/CHANGELOG.md
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

66 KiB
Raw Blame History

@refinedev/cli

2.16.39

Patch Changes

2.16.38

Patch Changes

  • #6246 f5501f93a818d6e5811aa94cb354d77a2b1eb1ff Thanks @YusukeSano! - feat: added scripts for Remix SPA Mode

    It is now possible to execute the Remix SPA Mode script by selecting it from the platform options.

    Two new project types are added remix-vite and remix-spa. remix-vite is Remix + Vite and remix-spa is Remix + Vite SPA Mode. While remix-vite type can be inferred from the project configuration without needing to specify it in the command, remix-spa type needs to be specified explicitly.

    Resolves #6127

  • Updated dependencies [6963e591f8f307aee9362d5dfff99972eb64bf03]:

    • @refinedev/devtools-server@1.1.36

2.16.37

Patch Changes

  • #6162 d7fb07e59ddcbef49437c64d3a92b3d47d850225 Thanks @noritsune! - feat(cli): improve the resource add command to generate page files for Next.js

    When using the add resource command in a project using Next.js, a page will be generated to perform the selected actions for that resource.

    These pages simply display generated components that perform actions on the resource. The placement of page files assumes operation with the App Router. If you prefer to use the Page Router instead, you'll need to move them manually.

    Resolves #6091

  • #6221 cbf2fd70a6a0d54722b6541c948ce8cb3f682fb4 Thanks @alicanerdurmaz! - feat: Automatically install @refinedev/inferencer if missing after generating new resources.

    Resolves #6220

  • #6135 c3a75139f82de022b54855e87e200ab38c803af5 Thanks @alicanerdurmaz! - fix: yarn refine update removes semver range specifiers(^, ~) from package.json. #6134

  • #6226 9806a3629256d73bdc18ae808dce217f0108aad2 Thanks @alicanerdurmaz! - fix: refine add resource generating invalid React component name. #6225

    refine add resource blog-posts command was generating invalid React component name when the resource name contains a hyphen. This issue has been fixed by converting the resource name to PascalCase before generating the React component name.

    - export const Blog-PostsList: React.FC = () => {};
    + export const BlogPostsList: React.FC = () => {};
    

    Resolves #6225

  • #6196 e2b467528f6a799c3219e3a8fefd4834a0ca0431 Thanks @aliemir! - feat(cli): create base translation files for i18n provider in add provider command

    Currently refine add provider i18n command is only creating a demo i18n provider implementation but misses the translation files. This PR adds the base translation files for the i18n provider which is used by Refine internally in hooks, notifications and components.

    Now locale/en.json will be added with primarily used translation keys and values for the i18n provider.

    Resolves #5918

  • #6185 603c73eb7d376fc2357a577f5921f844a8f444e4 Thanks @aliemir! - fix(cli): avoid polluting process.env with unwanted environment variables

    Previously, the @refinedev/cli used dotenv to load environment variables from .env files and populate process.env. This caused issues when the users app has a different convention for environment variables, e.g. .env.development, .env.production, etc.

    Now, the @refinedev/cli will read the file but avoid populating process.env with the variables and keep the values in its scope without passing them to the child processes. This will prevent unwanted environment variables from being passed to the child processes and avoid conflicts with the user's environment variables.

    Resolves #5803

  • #6185 603c73eb7d376fc2357a577f5921f844a8f444e4 Thanks @aliemir! - feat(devtools): ability to change the port of the devtools server

    Now users can change the port of the devtools server by setting the REFINE_DEVTOOLS_PORT environment variable. Previously, the port was hardcoded to "5001" and could not be changed.

    If you're using @refinedev/cli's runner commands to start your development server, REFINE_DEVTOOLS_PORT will be propagated to your app with appropriate prefix. E.g. if you're using Vite, the environment variable will be VITE_REFINE_DEVTOOLS_PORT and it will be used by the @refinedev/devtools's <DevtoolsProvider /> component to connect to the devtools server.

    • In Next.js apps, it will be prefixed with NEXT_PUBLIC_
    • In Craco and Create React App apps, it will be prefixed with REACT_APP_
    • In Remix apps and other custom setups, the environment variable will be used as is.

    In some scenarios where the environment variables are not passed to the browser, you may need to manually set the Refine Devtools URL in the <DevtoolsProvider /> component via the url prop. Remix apps do not automatically pass environment variables to the browser, so you will need to set the URL manually. If not set, the default URL will be used.

    While the port can be changed, this feature also allows users to host the devtools server on a different machine or domain and provide the <DevtoolsProvider /> with the custom domain URL. This such case will be useful if you're dockerizing your app and devtools server separately.

    Enterprise Edition: Refine Devtools running on ports other than "5001" is only available in the Enterprise Edition. If you're using the Community Edition, Refine Devtools will not work if the port is changed.

    Resolves #5111

  • Updated dependencies [603c73eb7d376fc2357a577f5921f844a8f444e4]:

    • @refinedev/devtools-server@1.1.35

2.16.36

Patch Changes

2.16.34

Patch Changes

2.16.33

Patch Changes

2.16.32

Patch Changes

2.16.31

Patch Changes

  • #5928 db9756e7908 Thanks @aliemir! - fix: type errors on typescript <5

    Due to the changes in #5881, typescript users below version 5 are facing type errors. This PR fixes the type errors by updating the file extensions required by the d.mts declaration files to provide a compatible declarations for both typescript 4 and 5 users.

  • Updated dependencies []:

    • @refinedev/devtools-server@1.1.29

2.16.30

Patch Changes

2.16.29

Patch Changes

  • Updated dependencies [aedc6a2961c]:
    • @refinedev/devtools-server@1.1.27

2.16.28

Patch Changes

  • #5807 b20a18e4dfc Thanks @BatuhanW! - chore: update jscodeshift version to 0.15.2

  • #5765 0c197d82393 Thanks @aliemir! - refactor: package bundles and package.json configuration for exports

    Previously, Refine packages had exported ESM and CJS bundles with same .js extension and same types for both with .d.ts extensions. This was causing issues with bundlers and compilers to pick up the wrong files for the wrong environment. Now we're outputting ESM bundles with .mjs extension and CJS bundles with .cjs extension. Also types are now exported with both .d.mts and .d.cts extensions.

    In older versions ESM and CJS outputs of some packages were using wrong imports/requires to dependencies causing errors in some environments. This will be fixed since now we're also enforcing the module type with extensions.

    Above mentioned changes also supported with changes in package.json files of the packages to support the new extensions and types. All Refine packages now include exports fields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers.

  • #5799 33a8a80d80f Thanks @BatuhanW! - chore: update semver package version to 7.5.2.

  • #5754 56ed144a0f5 Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752

  • #5739 e9bbb1aa5af Thanks @aliemir! - Removed redundant usage of IResourceComponentsProps type in component templates of add resource command. This type only works with legacy routers and <RefineRoutes /> component, its usage outside of these scopes are unnecessary.

  • Updated dependencies [b20a18e4dfc, 0c197d82393, 51f368eab1a, 56ed144a0f5]:

    • @refinedev/devtools-server@1.1.26

2.16.27

Patch Changes

2.16.26

Patch Changes

2.16.25

Patch Changes

  • #5640 e504c5b043c Thanks @BatuhanW! - feat: added "integration" option to "add" command.

    Now you can run the following command to add integration into your existing project:

    > npm run refine add integration
    
    ? Which integration do you want to add? (Use arrow keys)
     Ant Design - Setup Ant Design with Refine
      React Router - Setup routing with React Router
    

    For now, Ant Design integration doesn't support NextJS and Remix projects.

2.16.24

Patch Changes

  • Updated dependencies []:
    • @refinedev/devtools-server@1.1.24

2.16.23

Patch Changes

  • Updated dependencies [ee0f7867c3]:
    • @refinedev/devtools-server@1.1.23

2.16.22

Patch Changes

  • #5398 fda3494215 Thanks @alicanerdurmaz! - fix: Remix v2 requires build path as argument for remix-serve but Refine CLI was not passing it. From now on, Refine CLI will pass the build path as argument to remix-serve command and uses the default ./build/index.js if not provided.

    You can pass the build path as argument to refine start command.

    // package.json
    
    {
      "scripts": {
        "start": "refine start ./build/index.js"
      }
    }
    

2.16.21

Patch Changes

2.16.20

Patch Changes

  • #5296 1b031a2c19 Thanks @aliemir! - Updated --devtools flag in dev command to allow disabling devtools by --devtools=false. (Issue: #5215)

  • Updated dependencies [1b031a2c19]:

    • @refinedev/devtools-server@1.1.22

2.16.19

Patch Changes

2.16.18

Patch Changes

2.16.17

Patch Changes

  • #5281 97d5d9c98b28 Thanks @aliemir! - Fixed the version of node-emoji to 2.1.0. Since v2.1.1 depends on an ESM-only package, it breaks the build.

2.16.16

Patch Changes

  • Updated dependencies []:
    • @refinedev/devtools-server@1.1.21

2.16.15

Patch Changes

2.16.14

Patch Changes

  • Updated dependencies []:
    • @refinedev/devtools-server@1.1.19

2.16.13

Patch Changes

  • Updated dependencies []:
    • @refinedev/devtools-server@1.1.18

2.16.12

Patch Changes

  • #5151 b5f93f60f1d Thanks @aliemir! - Update @refinedev/core version check for devtools runner to do a wider check to locate the package and its version. If the location is not found, it will start devtools without a version check.

  • Updated dependencies [2bd813f62bf, 38f2a9b2e71]:

    • @refinedev/devtools-server@1.1.17

2.16.11

Patch Changes

  • #5151 b5f93f60f1d Thanks @aliemir! - Update @refinedev/core version check for devtools runner to do a wider check to locate the package and its version. If the location is not found, it will start devtools without a version check.

  • Updated dependencies [2bd813f62bf, 38f2a9b2e71]:

    • @refinedev/devtools-server@1.1.16

2.16.10

Patch Changes

  • Updated dependencies [be419eb31bc]:
    • @refinedev/devtools-server@1.1.15

2.16.9

Patch Changes

  • Updated dependencies [be419eb31bc]:
    • @refinedev/devtools-server@1.1.14

2.16.8

Patch Changes

  • Updated dependencies [78117485899]:
    • @refinedev/devtools-server@1.1.13

2.16.7

Patch Changes

  • Updated dependencies [78117485899]:
    • @refinedev/devtools-server@1.1.12

2.16.6

Patch Changes

  • #5073 6c40a720140 Thanks @alicanerdurmaz! - chore: The packages ink, ink-markdown, and ink-table have been replaced with marked, marked-terminal, and cli-table3 packages.

  • Updated dependencies [61366ebd866]:

    • @refinedev/devtools-server@1.1.11

2.16.5

Patch Changes

  • #5073 6c40a720140 Thanks @alicanerdurmaz! - chore: The packages ink, ink-markdown, and ink-table have been replaced with marked, marked-terminal, and cli-table3 packages.

  • Updated dependencies [61366ebd866]:

    • @refinedev/devtools-server@1.1.10

2.16.4

Patch Changes

  • #26 7533e541739 Thanks @pull! - feat: From now on, npm run refine devtools init updates @refinedev/core to latest version.

  • Updated dependencies [7533e541739]:

    • @refinedev/devtools-server@1.1.9

2.16.3

Patch Changes

2.16.2

Patch Changes

2.16.1

Patch Changes

  • #5022 80513a4e42f Thanks @BatuhanW! - chore: update README.md

    • fix grammar errors.
    • make all README.md files consistent.
    • add code example code snippets.
  • #5024 1bb29d9fc3d Thanks @aliemir! - Added dynamic announcements to the CLI to show when a command is executed. Users will be able to receive news and updates about refine without having to update their dependencies.

  • Updated dependencies [80513a4e42f, 20f5b6128d4]:

    • @refinedev/devtools-server@1.1.6

2.16.0

Minor Changes

  • #5024 1bb29d9fc3d Thanks @aliemir! - Added dynamic announcements to the CLI to show when a command is executed. Users will be able to receive news and updates about refine without having to update their dependencies.

Patch Changes

2.15.4

Patch Changes

  • #5008 c8499114e55 Thanks @aliemir! - Fixed the @refinedev/devtools-server dependency version for following the releases easily.

  • Updated dependencies [c8499114e55]:

    • @refinedev/devtools-server@1.1.4

2.15.3

Patch Changes

  • #5008 c8499114e55 Thanks @aliemir! - Fixed the @refinedev/devtools-server dependency version for following the releases easily.

  • Updated dependencies [c8499114e55]:

    • @refinedev/devtools-server@1.1.3

2.15.2

Patch Changes

2.15.1

Patch Changes

2.15.0

Minor Changes

  • #4979 1958c77e7e3 Thanks @alicanerdurmaz! - feat: added devtools init command. From now on, you can install refine devtools with a single command and add the necessary components to your project.

    npm run refine devtools init
    

2.14.0

Minor Changes

  • #4979 1958c77e7e3 Thanks @alicanerdurmaz! - feat: added devtools init command. From now on, you can install refine devtools with a single command and add the necessary components to your project.

    npm run refine devtools init
    

2.13.0

Minor Changes

  • #4960 d8e464fa2c4 Thanks @aliemir! - Integration with refine devtools.

    Now you can start the Devtools server using the refine devtools command or when the server will be started automatically when you start your app in development mode using refine dev command if you have @refinedev/devtools installed.

Patch Changes

2.12.2

Patch Changes

2.12.1

Patch Changes

2.12.0

Minor Changes

  • #4960 d8e464fa2c4 Thanks @aliemir! - Integration with refine devtools.

    Now you can start the Devtools server using the refine devtools command or when the server will be started automatically when you start your app in development mode using refine dev command if you have @refinedev/devtools installed.

Patch Changes

  • Updated dependencies [d8e464fa2c4]:
    • @refinedev/devtools-server@1.0.0

2.11.0

Minor Changes

  • #4904 b1ab9a23520 Thanks @alicanerdurmaz! - feat: added add command to add new features to the project Now you can add a new provider or resource to the project using the command npm run refine add <arg>.

    • npm run refine add resource posts: will add a new resource to the project with the name posts.
    • npm run refine add auth: will add a new auth provider to the project.
    • npm run refine add data: will add a new data provider to the project.
    • npm run refine add live: will add a new live provider to the project.
    • npm run refine add access-control: will add a new access control provider to the project.
    • npm run refine add audit-log: will add a new audit log provider to the project.
    • npm run refine add i18n: will add a new i18n provider to the project.
    • npm run refine add notification: will add a new notification provider to the project.

2.10.0

Minor Changes

  • #4904 b1ab9a23520 Thanks @alicanerdurmaz! - feat: added add command to add new features to the project Now you can add a new provider or resource to the project using the command npm run refine add <arg>.

    • npm run refine add resource posts: will add a new resource to the project with the name posts.
    • npm run refine add auth: will add a new auth provider to the project.
    • npm run refine add data: will add a new data provider to the project.
    • npm run refine add live: will add a new live provider to the project.
    • npm run refine add access-control: will add a new access control provider to the project.
    • npm run refine add audit-log: will add a new audit log provider to the project.
    • npm run refine add i18n: will add a new i18n provider to the project.
    • npm run refine add notification: will add a new notification provider to the project.

2.9.0

Minor Changes

2.8.0

Minor Changes

2.7.6

Patch Changes

2.7.5

Patch Changes

2.7.4

Patch Changes

  • #4696 35a2c695a74 Thanks @BatuhanW! - feat: CLI will try to read projectId from package.json if exists and send it to the telemetry server.

    Also removed redundant comment lines on resource generation.

2.7.3

Patch Changes

  • #4696 35a2c695a74 Thanks @BatuhanW! - feat: CLI will try to read projectId from package.json if exists and send it to the telemetry server.

    Also removed redundant comment lines on resource generation.

2.7.2

Patch Changes

2.7.1

Patch Changes

2.7.0

Minor Changes

2.6.0

Minor Changes

2.5.5

Patch Changes

2.5.4

Patch Changes

2.5.3

Patch Changes

  • #4195 18f955a064e Thanks @aliemir! - fix(cli): add file system check to find installed packages

    Updated the package find logic and added file system check for double checking if the package is installed or not.

2.5.2

Patch Changes

  • #4195 18f955a064e Thanks @aliemir! - fix(cli): add file system check to find installed packages

    Updated the package find logic and added file system check for double checking if the package is installed or not.

2.5.1

Patch Changes

  • #4195 18f955a064e Thanks @aliemir! - fix(cli): add file system check to find installed packages

    Updated the package find logic and added file system check for double checking if the package is installed or not.

2.5.0

Minor Changes

  • #4187 014ad4d5e79 Thanks @aliemir! - refactor: use require.resolve to find script executables.

    Updated the runner command to use require.resolve to find the script executable. This allows the script to be run from anywhere in the project and allow mono-repos with workspaces to work.

  • #4187 014ad4d5e79 Thanks @aliemir! - refactor: use require.resolve to find refine package paths.

    Updated the refine package search to use require.resolve to find the package path. This allows the package to be run from anywhere in the project and allow mono-repos with workspaces to work.

2.4.0

Minor Changes

  • #4187 014ad4d5e79 Thanks @aliemir! - refactor: use require.resolve to find script executables.

    Updated the runner command to use require.resolve to find the script executable. This allows the script to be run from anywhere in the project and allow mono-repos with workspaces to work.

  • #4187 014ad4d5e79 Thanks @aliemir! - refactor: use require.resolve to find refine package paths.

    Updated the refine package search to use require.resolve to find the package path. This allows the package to be run from anywhere in the project and allow mono-repos with workspaces to work.

2.3.0

Minor Changes

  • #4149 ca6a2b18576 Thanks @alicanerdurmaz! - feat: added required packages to install after swizzling. Now with this feature, users can automatically install the required packages after swizzling.

Patch Changes

  • #4138 a15634d6621 Thanks @alicanerdurmaz! - fix: When the project type is vite, the refine dev command was running vite start. It is now changed to vite dev, because there is no start command in vite.

2.2.0

Minor Changes

  • #4149 ca6a2b18576 Thanks @alicanerdurmaz! - feat: added required packages to install after swizzling. Now with this feature, users can automatically install the required packages after swizzling.

Patch Changes

  • #4138 a15634d6621 Thanks @alicanerdurmaz! - fix: When the project type is vite, the refine dev command was running vite start. It is now changed to vite dev, because there is no start command in vite.

2.1.2

Patch Changes

  • #3976 7e793ee9dc3 Thanks @BatuhanW! - feat: added parcel support

    fixed: refine --version doesn't return refine cli's version. fixed: add error message if user tries to run script with unsupported package. fixed: added "unknown" project type as fallback.

2.1.1

Patch Changes

  • #3976 7e793ee9dc3 Thanks @BatuhanW! - feat: added parcel support

    fixed: refine --version doesn't return refine cli's version. fixed: add error message if user tries to run script with unsupported package. fixed: added "unknown" project type as fallback.

2.1.0

Minor Changes

  • Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the @refinedev scope 🎉🎉

    Moved to the @refinedev scope and updated our packages to use the new scope. From now on, all packages will be published under the @refinedev scope with their new names.

    Now, we're also removing the refine prefix from all packages. So, the @pankod/refine-core package is now @refinedev/core, @pankod/refine-antd is now @refinedev/antd, and so on.

Patch Changes

1.19.0

Minor Changes

1.18.0

Minor Changes

1.17.2

Patch Changes

1.17.1

Patch Changes

1.17.0

Minor Changes

Patch Changes

  • #3367 e850fe25400 Thanks @alicanerdurmaz! - Fixed: ReferenceError: btoa is not defined. #3366 use Buffer.from when btoa is "undefined" for base64 encoding.

1.16.0

Minor Changes

Patch Changes

  • #3367 e850fe25400 Thanks @alicanerdurmaz! - Fixed: ReferenceError: btoa is not defined. #3366 use Buffer.from when btoa is "undefined" for base64 encoding.

1.15.0

Minor Changes

1.14.0

Minor Changes

1.13.6

Patch Changes

  • #3315 dda827e9a58 Thanks @yasnbouz! - Fixed: Ctrl+c not killing running dev; leaving ports open - #3175 Fixed: terminal output color w/ env FORCE_COLOR=true

1.13.5

Patch Changes

  • #3315 dda827e9a58 Thanks @yasnbouz! - Fixed: Ctrl+c not killing running dev; leaving ports open - #3175 Fixed: terminal output color w/ env FORCE_COLOR=true

1.13.4

Patch Changes

  • #3282 996b9077ea0 Thanks @alicanerdurmaz! - Added: npm -ls was always throws an error. From now returns null, with this way error handling can be done when needed.

1.13.3

Patch Changes

  • #3282 996b9077ea0 Thanks @alicanerdurmaz! - Added: npm -ls was always throws an error. From now returns null, with this way error handling can be done when needed.

1.13.2

Patch Changes

1.13.1

Patch Changes

1.13.0

Minor Changes

Patch Changes

1.12.0

Minor Changes

Patch Changes

1.11.0

Minor Changes

1.10.0

Minor Changes

1.9.0

Minor Changes

  • #3109 16549ed3012 Thanks @aliemir! - - Updated command order (swizzle to the top)
    • Added installed packages notification at the start of the swizzle command.
    • Updated swizzle command to respect project file paths (/src or /app)
    • Added grouping option for installed packages at the first prompt of the swizzle command.
    • Syntax highlighting and improvements for swizzle success messages.

1.8.0

Minor Changes

  • #3109 16549ed3012 Thanks @aliemir! - - Updated command order (swizzle to the top)
    • Added installed packages notification at the start of the swizzle command.
    • Updated swizzle command to respect project file paths (/src or /app)
    • Added grouping option for installed packages at the first prompt of the swizzle command.
    • Syntax highlighting and improvements for swizzle success messages.

1.7.0

Minor Changes

  • #3062 6c2ed708a9a Thanks @aliemir! - swizzle command added to the CLI. 🎉

    It allows you to copy the latest version of supported components and functions to your project and customize it the way you want. swizzle command will prompt you with package and component selection, then copy the latest version of the component to your project and log the path of the copied files.

1.6.0

Minor Changes

  • #3062 6c2ed708a9a Thanks @aliemir! - swizzle command added to the CLI. 🎉

    It allows you to copy the latest version of supported components and functions to your project and customize it the way you want. swizzle command will prompt you with package and component selection, then copy the latest version of the component to your project and log the path of the copied files.

1.5.3

Patch Changes

1.5.2

Patch Changes

1.5.1

Patch Changes

  • #3092 984f1c21ab6 Thanks @alicanerdurmaz! - Added: Warning command description changed according refine CLI installed or not.

    • If refine CLI is installed, It will be shown as npm run refine update command.
    • IF refine CLI is not installed, It will be shown as npx refine update command.
      • package manager will be detected automatically.

1.5.0

Minor Changes

1.4.0

Minor Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • #3067 6f83ddba2ad Thanks @alicanerdurmaz! - Added: whoami command to refine-cli. It's shows details of the development environment. Added: telemetry to refine-cli commands.

Patch Changes

1.2.0

Minor Changes

  • #3067 6f83ddba2ad Thanks @alicanerdurmaz! - Added: whoami command to refine-cli. It's shows details of the development environment. Added: telemetry to refine-cli commands.

Patch Changes

1.1.4

Patch Changes

1.1.3

Patch Changes

1.1.2

Patch Changes

  • #3058 5f43dc6361f Thanks @alicanerdurmaz! - Added: The description of dev,start,build commands changed according to project type.

  • #3060 1a53f4c4699 Thanks @yildirayunlu! - - Rename command name generate:resource to create-resource.

    • Removed the requirement for the resource name parameter. Ask for resource name and actions with inquirer.
    • Add multiple resource create support. (refine create-resource post category user)
  • #3056 29417155780 Thanks @alicanerdurmaz! - Fixed refine check-updates showing packages when current version ahead of next

1.1.1

Patch Changes

1.1.0

Minor Changes