Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(changesets): next version packages #3154

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions _changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions _changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "refinedev/refine" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": ["!@pankod/*", "!create-refine-app"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/antdAuditLog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@pankod/refine-antd-audit-log": "^3.29.0",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-react-router-v6": "^3.38.0",
"@pankod/refine-sdk": "^0.6.0",
"@pankod/refine-sdk": "^0.7.0",
"@pankod/refine-simple-rest": "^3.37.4",
"@types/node": "^12.20.11",
"@types/react": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-strapi": "^3.37.0",
"@pankod/refine-strapi-v4": "^3.39.0",
"axios": "^0.26.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/next-refine-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-simple-rest": "^3.37.4",
"next": "^13.0.6",
"next-compose-plugins": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-react-router-v6": "^3.38.0",
"@pankod/refine-simple-rest": "^3.37.4",
"@pankod/refine-cloud": "^6.0.0",
"@pankod/refine-cloud": "^7.0.0",
"@pankod/refine-antd-audit-log": "^3.29.0",
"@types/node": "^12.20.11",
"@types/react": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/fineFoods/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-react-table": "^4.9.0",
"@pankod/refine-simple-rest": "^3.37.4",
"gsap": "^3.8.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@pankod/refine-antd": "^3.64.4",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-simple-rest": "^3.37.4",
"next": "^13.0.6",
"next-compose-plugins": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/appdir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@pankod/refine-antd": "^3.64.2",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-simple-rest": "^3.37.4",
"next": "^13.0.6",
"nookies": "^2.5.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@pankod/refine-antd": "^3.64.4",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-simple-rest": "^3.37.4",
"next": "^13.0.6",
"nookies": "^2.5.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"nextjs-progressbar": "^0.0.14",
"@medusajs/medusa-js": "^1.2.3",
"@pankod/refine-core": "^3.90.4",
"@pankod/refine-nextjs-router": "^3.38.0",
"@pankod/refine-nextjs-router": "^4.0.0",
"@pankod/refine-react-hook-form": "^3.33.2",
"@pankod/refine-medusa": "^1.7.2",
"@stripe/react-stripe-js": "1.10.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/cloud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pankod/refine-cloud

## 7.0.0

### Patch Changes

- Updated dependencies [[`15d3fd535a2`](https://github.com/refinedev/refine/commit/15d3fd535a2f2ec18e984ee20c9064e35ce3f8b8)]:
- @pankod/[email protected]

## 6.0.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.0.0",
"version": "7.0.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -23,15 +23,15 @@
"module": "dist/esm/index.js",
"peerDependencies": {
"@pankod/refine-core": "^3.23.2",
"@pankod/refine-sdk": "^0.6.0",
"@pankod/refine-sdk": "^0.7.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"@types/react": "^17.0.0 || ^18.0.0",
"@types/react-dom": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@pankod/refine-core": "^3.69.9",
"@pankod/refine-sdk": "^0.6.0",
"@pankod/refine-sdk": "^0.7.0",
"@esbuild-plugins/node-resolve": "^0.1.4",
"@types/lodash": "^4.14.171",
"@tanstack/react-query": "^4.10.1",
Expand Down
80 changes: 80 additions & 0 deletions packages/nextjs-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
# @pankod/refine-nextjs-router

## 4.0.0

### Major Changes

- [#3140](https://github.com/refinedev/refine/pull/3140) [`102bfbf3283`](https://github.com/refinedev/refine/commit/102bfbf32830febe10b99655723863ebd277aadb) Thanks [@aliemir](https://github.com/aliemir)! - - Bumped Next.js to 13

- Added support for experimental `appDir` option in `next.config.js` to allow for the latest Next.js features.

## `pages` directory

Current support for `pages` directory has not changed and will continue to work as before. It will be supported as long as `Next.js` continues to support and prompts it as the stable way of working with `Next.js`.

## `appDir` option

`appDir` option is a new experimental feature in `Next.js` that introduces a bunch of new features. It is currently in beta and is not stable. It is not recommended to use it in production. But can be used alongside the current `pages` directory support.

To use `appDir` option, you need to add it to your `next.config.js` file.

```js
// next.config.js
module.exports = {
/* ... */
experimental: {
appDir: true,
},
};
```

## Using `appDir` with **refine**

We've needed to make some changes to the `@pankod/refine-nextjs-router` to make it work with the current structure of the `app` directory feature. To make sure these do not break the current support for `pages` directory, we've added a new exports at the sub path `@pankod/refine-nextjs-router/app` that can be used with the `appDir` option.

**Note**

To make optional catch-all routes to work with the `app` directory, you need to define them as directories unlike the option of defining them as files with `pages` directory.

You need to use `NextRouteComponent` from `@pankod/refine-nextjs-router/app` instead of `NextRouteComponent` from `@pankod/refine-nextjs-router` when using `appDir` option.

Inside your `layout` file, you need to bind `params` to `routerProvider` to make sure `@pankod/refine-nextjs-router` can work properly with the new structure.

```tsx
// app/[[...refine]]/layout.tsx
"use client";

import routerProvider from "@pankod/refine-nextjs-router/app";

const Layout = ({ children, params }) => {
return (
<Refine
routerProvider={routerProvider.apply({ params })}
/* ... */
>
{children}
</Refine>
);
};
```

**Warning**

Please note that, unlike the `routerProvider` from the `@pankod/refine-nextjs-router`, `routerProvider` from `@pankod/refine-nextjs-router/app` is a function and you need to bind `params` to make it work properly.

```tsx
// app/[[...refine]]/page.tsx

"use client";

import { NextRouteComponent } from "@pankod/refine-nextjs-router/app";

export default NextRouteComponent;
```

**Warning**

You need to add `"use client";` directive to both `layout.tsx` and `page.tsx` inside `app/[[...refine]]` directory.

**Warning**

`checkAuthentication` does not work with `appDir`. We're aiming to release a substitute for it using middleware but for now its not included in this release.

## 3.38.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs-router/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pankod/refine-nextjs-router",
"description": "refine Next.js router provider. refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
"version": "3.38.0",
"version": "4.0.0",
"license": "MIT",
"private": false,
"main": "dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @pankod/refine-sdk

## 0.7.0

### Minor Changes

- [#3149](https://github.com/refinedev/refine/pull/3149) [`15d3fd535a2`](https://github.com/refinedev/refine/commit/15d3fd535a2f2ec18e984ee20c9064e35ce3f8b8) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - Update compiler option on target `es6` for `@pankod/refine-sdk`.

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pankod/refine-sdk",
"version": "0.6.0",
"version": "0.7.0",
"description": "refine sdk. refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
"private": false,
"main": "dist/index.js",
Expand Down