@baeta/plugin-pagination 2.0.0-next.3 → 2.0.0-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @baeta/plugin-pagination
2
2
 
3
+ ## 2.0.0-next.8
4
+
5
+ ## 2.0.0-next.7
6
+
3
7
  ## 2.0.0-next.3
4
8
 
5
9
  ### Patch Changes
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <div align="center">
6
6
  <h1>Baeta</h1>
7
7
  <a href="https://www.npmjs.com/package/@baeta/cli"><img src="https://img.shields.io/npm/v/@baeta/cli.svg?style=flat" /></a>
8
- <a href="https://github.com/andreisergiu98/baeta/actions/workflows/testing.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/testing.yml" /></a>
8
+ <a href="https://github.com/andreisergiu98/baeta/actions/workflows/checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/checks.yml" /></a>
9
9
  <a href="https://github.com/andreisergiu98/baeta/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" /></a>
10
10
  <a href="https://github.com/andreisergiu98/baeta/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" /></a>
11
11
  <br />
@@ -103,7 +103,7 @@ import { UserModule } from "./typedef.ts";
103
103
  const { Query } = UserModule;
104
104
 
105
105
  const userQuery = Query.user
106
- .auth({
106
+ .$auth({
107
107
  $or: {
108
108
  isPublic: true,
109
109
  isLoggedIn: true,
@@ -122,16 +122,16 @@ const { Query, Mutation, User } = UserModule;
122
122
  export const userCache = User.$createCache();
123
123
 
124
124
  const userQuery = Query.user
125
- .auth({
125
+ .$auth({
126
126
  // ...
127
127
  })
128
- .useCache(userCache)
128
+ .$useCache(userCache)
129
129
  .resolve(async ({ args }) => {
130
130
  // ...
131
131
  });
132
132
 
133
133
  const updateUserMutation = Mutation.updateUser
134
- .use(async (next) => {
134
+ .$use(async (next) => {
135
135
  const user = await next();
136
136
  await userCache.save(user);
137
137
  return user;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeta/plugin-pagination",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.8",
4
4
  "keywords": [
5
5
  "baeta",
6
6
  "graphql",
@@ -40,16 +40,24 @@
40
40
  "build": "builder build",
41
41
  "prepack": "builder prepare",
42
42
  "postpack": "builder prepare --clean",
43
+ "test": "builder test",
44
+ "test:circular": "builder test-circular",
43
45
  "types": "tsc --noEmit"
44
46
  },
47
+ "ava": {
48
+ "extensions": {
49
+ "ts": "module"
50
+ }
51
+ },
45
52
  "dependencies": {
46
53
  "@baeta/generator-sdk": "^2.0.0-next.3",
47
54
  "@baeta/util-path": "^2.0.0-next.2"
48
55
  },
49
56
  "devDependencies": {
50
57
  "@baeta/builder": "^0.0.0",
58
+ "@baeta/testing": "^0.0.0",
51
59
  "@baeta/tsconfig": "^0.0.0",
52
- "@types/node": "^22.18.13",
60
+ "@types/node": "^22.19.1",
53
61
  "graphql": "^16.12.0",
54
62
  "typescript": "^5.9.3"
55
63
  },