@rvoh/psychic 1.2.1 → 1.2.2

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/package.json +6 -6
  2. package/CHANGELOG.md +0 -96
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "1.2.1",
5
+ "version": "1.2.2",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",
@@ -63,7 +63,7 @@
63
63
  "@rvoh/dream-spec-helpers": "^1.1.0",
64
64
  "@rvoh/psychic-spec-helpers": "^1.0.0",
65
65
  "@types/express": "^5.0.1",
66
- "@types/express-session": "^1",
66
+ "@types/express-session": "^1.18.2",
67
67
  "@types/node": "^22.5.1",
68
68
  "@types/passport": "^0",
69
69
  "@types/passport-local": "^1",
@@ -72,8 +72,8 @@
72
72
  "@typescript/analyze-trace": "^0.10.1",
73
73
  "eslint": "^9.19.0",
74
74
  "express": "^5.1.0",
75
- "express-session": "^1.18.1",
76
- "jsdom": "^26.0.0",
75
+ "express-session": "^1.18.2",
76
+ "jsdom": "^26.1.0",
77
77
  "kysely": "^0.27.4",
78
78
  "kysely-codegen": "~0.17.0",
79
79
  "luxon-jest-matchers": "^0.1.14",
@@ -83,7 +83,7 @@
83
83
  "pg": "^8.12.0",
84
84
  "prettier": "^3.3.3",
85
85
  "puppeteer": "^24.4.0",
86
- "supertest": "^7.0.0",
86
+ "supertest": "^7.1.4",
87
87
  "tslib": "^2.7.0",
88
88
  "tsx": "^4.19.3",
89
89
  "typedoc": "^0.26.6",
@@ -93,4 +93,4 @@
93
93
  "winston": "^3.14.2"
94
94
  },
95
95
  "packageManager": "yarn@4.7.0"
96
- }
96
+ }
package/CHANGELOG.md DELETED
@@ -1,96 +0,0 @@
1
- ## 1.2.1
2
-
3
- - add ability to set custom import extension, which will be used when generating new files for your application
4
-
5
- ## 1.2.0
6
-
7
- - update for Dream 1.4.0
8
-
9
- ## 1.1.11
10
-
11
- - 400 is more appropriate than 422 for `DataTypeColumnTypeMismatch`
12
-
13
- ## 1.1.10
14
-
15
- - Don't include deletedAt in generated create/update actions in resource specs since deletedAt is for deleting
16
-
17
- - return 422 if Dream throws `NotNullViolation` or `CheckConstraintViolation`
18
-
19
- ## 1.1.9
20
-
21
- - return 422 if dream throws `DataTypeColumnTypeMismatch`, which happens when a dream is saved to the database with data that cannot be inserted into the respective columns, usually because of a type mismatch.
22
-
23
- - castParam will now encase params in an array when being explicitly casted as an array type, bypassing a known bug in express from causing arrays with single items in them to be treated as non-arrays.
24
-
25
- ## 1.1.8
26
-
27
- - Tap into CliFileWriter provided by dream to tap into file reversion for sync files, since the auto-sync function in psychic can fail and leave your file tree in a bad state.
28
-
29
- ## 1.1.7
30
-
31
- - Add support for middleware arrays, enabling express plugins like passport
32
-
33
- ## 1.1.6
34
-
35
- - fix regression caused by missing --schema-only option in psychic cli
36
-
37
- ## 1.1.5
38
-
39
- - pass packageManager through to dream, now that it accepts a packageManager setting.
40
- - update dream shadowing within psychic application initialization to take place after initializers and plugins are processed, so that those initializers and plugins have an opportunity to adjust the settings.
41
-
42
- ## 1.1.4
43
-
44
- - fix regressions to redux bindings caused by default openapi path location changes
45
- - resource generator can handle prefixing slashes
46
-
47
- ## 1.1.3
48
-
49
- - fix more minor issues with redux openapi bindings
50
-
51
- ## 1.1.2
52
-
53
- - Fix various issues with openapi redux bindings
54
- - raise hard exception if accidentally using openapi route params in an expressjs route path
55
-
56
- ## 1.1.1
57
-
58
- Fix route printing regression causing route printouts to show the path instead of the action
59
-
60
- ## v1.1.0
61
-
62
- Provides easier access to express middleware by exposing `PsychicApp#use`, which enables a developer to provide express middleware directly through the psychcic application, without tapping into any hooks.
63
-
64
- ```ts
65
- psy.use((_, res) => {
66
- res.send(
67
- 'this will be run after psychic middleware (i.e. cors and bodyParser) are processed, but before routes are processed',
68
- )
69
- })
70
- ```
71
-
72
- Some middleware needs to be run before other middleware, so we expose an optional first argument which can be provided so explicitly send your middleware into express at various stages of the psychic configuration process. For example, to inject your middleware before cors and bodyParser are configured, provide `before-middleware` as the first argument. To initialize your middleware after the psychic default middleware, but before your routes have been processed, provide `after-middleware` as the first argument (or simply provide a callback function directly, since this is the default). To run after routes have been processed, provide `after-routes` as the first argument.
73
-
74
- ```ts
75
- psy.use('before-middleware', (_, res) => {
76
- res.send('this will be run before psychic has configured any default middleware')
77
- })
78
-
79
- psy.use('after-middleware', (_, res) => {
80
- res.send('this will be run after psychic has configured default middleware')
81
- })
82
-
83
- psy.use('after-routes', (_, res) => {
84
- res.send('this will be run after psychic has processed all the routes in your conf/routes.ts file')
85
- })
86
- ```
87
-
88
- Additionally, a new overload has been added to all CRUD methods on the PsychicRouter class, enabling you to provide RequestHandler middleware directly to psychic, like so:
89
-
90
- ```ts
91
- // conf/routes.ts
92
-
93
- r.get('helloworld', (req, res, next) => {
94
- res.json({ hello: 'world' })
95
- })
96
- ```