graphile-simple-inflector 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/README.md +17 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -16,14 +16,22 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
- Simplified naming inflector for Graphile/PostGraphile. It shortens common field names (e.g. `tableByNodeId` → `table`) and makes pluralization behave more predictably for numeric suffixes.
19
+ **`graphile-simple-inflector`** simplifies Graphile/PostGraphile naming by shortening common fields (e.g. `tableByNodeId` → `table`) and keeping pluralization predictable for numeric suffixes.
20
20
 
21
- ## Install
21
+ ## 🚀 Installation
22
22
 
23
23
  ```sh
24
24
  pnpm add graphile-simple-inflector
25
25
  ```
26
26
 
27
+ ## ✨ Features
28
+
29
+ - Shorter, predictable field names (`tableByNodeId` → `table`)
30
+ - Smarter pluralization for numeric suffixes
31
+ - Designed to pair with PostGraphile simplify options
32
+
33
+ ## 📦 Usage
34
+
27
35
  When using PostGraphile:
28
36
 
29
37
  ```ts
@@ -38,6 +46,13 @@ createPostGraphileSchema(pool, ['app_public'], {
38
46
  });
39
47
  ```
40
48
 
49
+ ## 🧪 Testing
50
+
51
+ ```sh
52
+ # requires a local Postgres available (defaults to postgres/password@localhost:5432)
53
+ pnpm --filter graphile-simple-inflector test
54
+ ```
55
+
41
56
  ---
42
57
 
43
58
  ## Education and Tutorials
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-simple-inflector",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Simple inflector plugin for Graphile/PostGraphile",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/launchql/launchql",
@@ -39,13 +39,13 @@
39
39
  "url": "https://github.com/launchql/launchql/issues"
40
40
  },
41
41
  "devDependencies": {
42
- "graphile-test": "^2.8.10",
42
+ "graphile-test": "^2.8.11",
43
43
  "graphql-tag": "2.12.6",
44
44
  "makage": "^0.1.8",
45
- "pgsql-test": "^2.14.13"
45
+ "pgsql-test": "^2.14.14"
46
46
  },
47
47
  "dependencies": {
48
48
  "graphile-build": "^4.14.1"
49
49
  },
50
- "gitHead": "4e1ff9771c2b07808a9830281abc24d12c689187"
50
+ "gitHead": "00c90828cab8d3e306ebb2bc6053aab4aa9ae807"
51
51
  }