Skip to content

Commit 6c90407

Browse files
authored
Reexport API functions (#474)
1 parent 487033c commit 6c90407

19 files changed

+12896
-21546
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ or the [example folder](examples) for full code examples.
3434

3535
The following steps will walk you through installing the library and integrating it into your application.
3636

37+
> [!TIP]
38+
> If you are using Next.js, head over to the [Plug Next.js](https://github.com/croct-tech/plug-next) library for a more
39+
> integrated experience.
40+
3741
This guide assumes you're already familiar with some key concepts and tools around Croct, like
3842
Contextual Query Language (CQL) and the playground. If you're not,
3943
[this 15-minute quickstart](https://croct.link/plug-js/quick-start) that will give you a hands-on overview of

package-lock.json

Lines changed: 12878 additions & 21261 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
3838
},
3939
"dependencies": {
40-
"@croct/plug": "^0.13.4",
41-
"@croct/sdk": "^0.14.0"
40+
"@croct/plug": "^0.14.0",
41+
"@croct/sdk": "^0.15.2"
4242
},
4343
"devDependencies": {
4444
"@babel/core": "^7.20.2",
@@ -61,7 +61,7 @@
6161
"@typescript-eslint/eslint-plugin": "^7.0.0",
6262
"@typescript-eslint/parser": "^7.0.0",
6363
"babel-loader": "^9.1.0",
64-
"eslint": "^9.0.0",
64+
"eslint": "^8.57.0",
6565
"jest": "^29.0.0",
6666
"jest-environment-jsdom": "^29.0.0",
6767
"jest-environment-node": "^29.0.0",

src/CroctProvider.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import '@testing-library/jest-dom/extend-expect';
21
import {render} from '@testing-library/react';
32
import {Plug} from '@croct/plug';
43
import {croct} from './ssr-polyfills';

src/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@croct/plug/api';

src/api/evaluate.test.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/api/evaluate.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/api/fetchContent.test.ts

Lines changed: 0 additions & 144 deletions
This file was deleted.

src/api/fetchContent.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/api/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)