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

feat: support React Server Components #178

Merged
merged 25 commits into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6845370
feat: add initial React Server Components experiments
angeloashmore Apr 4, 2023
1a75eae
Merge branch 'master' into aa/rsc
angeloashmore Apr 5, 2023
2299b58
test: remove incorrect RSC test files
angeloashmore Apr 5, 2023
fe73dc0
fix: type import issue
angeloashmore Apr 5, 2023
2b420c0
fix: remove `@ts-expect-error`
angeloashmore Apr 5, 2023
180802a
feat: remove the ability to configure components via `@prismicio/reac…
angeloashmore Apr 5, 2023
03d47b3
chore: remove references to `/config` entry
angeloashmore Apr 6, 2023
fea9c14
refactor: export non-RSC modules from root
angeloashmore Apr 6, 2023
57c836f
chore: remove reference to `/config` entry
angeloashmore Apr 6, 2023
61020b5
feat: PrismicLink progress
angeloashmore Apr 21, 2023
935cb40
feat: full RSC compatibility (maybe)
angeloashmore Apr 22, 2023
299b701
chore(deps): update all dependencies
angeloashmore Apr 22, 2023
ffc7e75
chore: update Size Limit config to include all exports
angeloashmore Apr 22, 2023
ed75718
fix(PrismicLink): types for `rel` and internal/external component props
angeloashmore Apr 22, 2023
e901bc0
chore: use consistent `package.json` file paths
angeloashmore Apr 24, 2023
963d21c
chore: remove unused `jsdom` dependencies
angeloashmore Apr 24, 2023
9a3db4c
chore(release): 2.6.0-alpha.0
angeloashmore Apr 24, 2023
3742685
fix: support projects using `@prismicio/client` v6
angeloashmore Apr 24, 2023
a73eb4b
chore(release): 2.6.0-alpha.1
angeloashmore Apr 25, 2023
d558c91
fix: update error message for incompatible Server Component APIs
angeloashmore Apr 27, 2023
fdff6ce
fix: bundle `@prismicio/client` v7 to prevent `npm install` issues
angeloashmore May 1, 2023
db31014
chore(release): 2.6.0-alpha.2
angeloashmore May 1, 2023
ebfb24d
fix: mark `@prismicio/client` as an optional peer dependency
angeloashmore May 1, 2023
88d21f0
Revert "fix: mark `@prismicio/client` as an optional peer dependency"
angeloashmore May 1, 2023
2e5ffac
chore(release): 2.6.0-alpha.3
angeloashmore May 5, 2023
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
24 changes: 21 additions & 3 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
const pkg = require("./package.json");

module.exports = [pkg.module, pkg.main]
.filter(Boolean)
.map((path) => ({ path }));
function getObjectValues(input, acc = []) {
if (typeof input === "string") {
return input;
} else {
return [
...acc,
...Object.values(input).flatMap((value) => getObjectValues(value)),
];
}
}

module.exports = [
...new Set([pkg.main, pkg.module, ...getObjectValues(pkg.exports)]),
]
.sort()
.filter((path) => {
return path && path !== "./package.json";
})
.map((path) => {
return { path };
});
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,60 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.6.0-alpha.3](https://github.com/prismicio/prismic-react/compare/v2.6.0-alpha.2...v2.6.0-alpha.3) (2023-05-05)


### Bug Fixes

* mark `@prismicio/client` as an optional peer dependency ([ebfb24d](https://github.com/prismicio/prismic-react/commit/ebfb24d2c5648271e92271cb489211e1d4b440f2))

## [2.6.0-alpha.2](https://github.com/prismicio/prismic-react/compare/v2.6.0-alpha.1...v2.6.0-alpha.2) (2023-05-01)


### Bug Fixes

* bundle `@prismicio/client` v7 to prevent `npm install` issues ([fdff6ce](https://github.com/prismicio/prismic-react/commit/fdff6ce800407ad19e440863a23ffb19afd0137d))
* update error message for incompatible Server Component APIs ([d558c91](https://github.com/prismicio/prismic-react/commit/d558c918dce0afe3d434d59a01cf6303fbd60dd7))

## [2.6.0-alpha.1](https://github.com/prismicio/prismic-react/compare/v2.6.0-alpha.0...v2.6.0-alpha.1) (2023-04-25)


### Bug Fixes

* support projects using `@prismicio/client` v6 ([3742685](https://github.com/prismicio/prismic-react/commit/3742685837d20ec8f8def8a9f88d1e842046dab7))

## [2.6.0-alpha.0](https://github.com/prismicio/prismic-react/compare/v2.5.2...v2.6.0-alpha.0) (2023-04-24)


### Features

* add initial React Server Components experiments ([6845370](https://github.com/prismicio/prismic-react/commit/6845370758c6a37f39eaa375d0fd2921b5e8fba7))
* full RSC compatibility (maybe) ([935cb40](https://github.com/prismicio/prismic-react/commit/935cb40864716ff3047e100f5627ff83a6d737c5))
* PrismicLink progress ([61020b5](https://github.com/prismicio/prismic-react/commit/61020b5c08193bd0df3b2efdf552d46f68dce85e))
* remove the ability to configure components via `@prismicio/react/config` ([180802a](https://github.com/prismicio/prismic-react/commit/180802a915b386d90080dcf3135c2e567f51052d))


### Bug Fixes

* **PrismicLink:** types for `rel` and internal/external component props ([ed75718](https://github.com/prismicio/prismic-react/commit/ed75718de9aff5b59ec4b1f5eadef6ccc21901ce))
* remove `[@ts-expect-error](https://github.com/ts-expect-error)` ([2b420c0](https://github.com/prismicio/prismic-react/commit/2b420c049a77d7b18d9df45e009e3a3456432d27))
* type import issue ([fe73dc0](https://github.com/prismicio/prismic-react/commit/fe73dc0f1fd3406e1793506629dea0d74d771c75))


### Refactor

* export non-RSC modules from root ([fea9c14](https://github.com/prismicio/prismic-react/commit/fea9c146976cddd8fe8242b807e38fad5d29376f))


### Chore

* **deps:** update all dependencies ([299b701](https://github.com/prismicio/prismic-react/commit/299b701ef5edae426b833e47d04a4b10a68fdaa2))
* remove reference to `/config` entry ([57c836f](https://github.com/prismicio/prismic-react/commit/57c836fe2179bc0c403ba9c34ea376c0f2b175d0))
* remove references to `/config` entry ([03d47b3](https://github.com/prismicio/prismic-react/commit/03d47b3ccd39b4a7969a897e097046d8a38faa57))
* remove unused `jsdom` dependencies ([963d21c](https://github.com/prismicio/prismic-react/commit/963d21cc592148464327e57e27f0ccb967595ba7))
* update Size Limit config to include all exports ([ffc7e75](https://github.com/prismicio/prismic-react/commit/ffc7e75a9705ad2a601a7429f4d49037900cf4a8))
* use consistent `package.json` file paths ([e901bc0](https://github.com/prismicio/prismic-react/commit/e901bc0a5ae6ada843f749fd0943b442c7c551ca))

### [2.5.2](https://github.com/prismicio/prismic-react/compare/v2.5.1...v2.5.2) (2023-02-17)


Expand Down
Loading