Balázs Orbán
|
eb33c9db1d
|
refactor: decouple Next.js from core (#2857)
* refactor: decouple Next.js from core (WIP)
* refactor: use `base` instead of `baseUrl`+`basePath`
* fix: signout route
* refactor(ts): convert files to TS
* fix: imports
* refactor: convert callback route
* fix: add `next` files to package
* chore(dev): alias npm email
* refactor: do not merge req with user options
* refactor: rename userOptions to options
* refactor: use native `URL` in `parseUrl`
* refactor: move Next.js specific code to `next` module
* refactor(ts): return `OutgoingResponse` on all routes
* fix: change `base` to `url`
* feat: introduce `getServerSession`
* refactor: move main logic to `handler` file
* chore(dev): showcase `getServerSession`
* feat: extract `sessionToken` from Authorization header
* fix: pass headers to getServerSession
* refactor: rename `server` to `core`
* refactor: re-export `next-auth/next` in `next-auth`
* fix: add `core` to npm package
* fix: re-export default method
* feat: return `body`+`header` instead of `json`,`text`
* feat: pass `NEXTAUTH_URL` as a variable to core
* refactor: simplify Next.js wrapper
* feat: export `client/_utils`
* fix(ts): suppress TS errors
|
2021-10-27 16:11:58 +02:00 |
|
Balázs Orbán
|
e099223a27
|
refactor(ts): rewrite core to TypeScript (#2552)
* chore(deps): upgrade TS packages
* build(ts): use tsc to compile
* refactor(ts): move some files to TS
* chore: implement SkyPack check suggestions
* chore(ci): temprarily disable tests
* chore: add PR comment action
* chore: add determine version github action
* chore: prefix with env.
* chore: add runs to action
* chore: change runs.using to node12
* chore: fix typo
* chore: install @actions/core as dev dependency
* chore: move env var, remove old script
* chore: change version comment message
* refactor(ts): convert server/index.js to TS
* chore: fix `types` path
* chore: fix paths
* refactor(ts): convert `next-auth/react`
* refactor(ts): convert `next-auth/jwt` to TS
* chore: fix import
* refactor: move `types` into `src`
* refactor(ts): fix types imports
* chore: add cleanup script
* chore: exclude all `tests` folder from compilation
* refactor: rename types/index.d.ts to types/index.ts
* refactor(ts): move `next-auth/jwt`
* refactor(ts): move `next-auth/providers`
* chore(ts): fix `next-auth` types
* refactor(ts): change internal import paths
* test(ts): remove type tests
* chore: remove test:types script
* refactor(ts): move more code to TypeScript
* refactor: fix some imports
* refactor(ts): move error module into server
* fix(ts): add type to .js providers
* chore: rename adapters.ts to adapters.d.ts
* fix: update exports field
* chore: add files that should end up on npm
* chore: add stricter lib checking
* refactor(ts): remove unnecessary files, fix imports
* chore: autocomplete env variables
* fix: add css folder to npm files
* fix: fix CSS import/generation
* feat: log provider when authorization url error happens
* refactor(ts): turn pages into .tsx
* chore: compile differently for client/server
* refactor(ts): move server file to TS
* chore: add back node target
* chore: add back comment removal
* chore: re-enable tests
* chore: ignore test files when building
* chore(ts): refactor files to TS
* chore(ts): fix imports
* chore(ts): more ts
* fix(ts): correctly type _NEXTAUTH_DEBUG env var
* chore: don't generate internals module iwth babel
* fix(ts): better `clientId`, `clientSecret` constraints
* refactor(ts): move facebook provider to TS
* refactor(ts): apply suggested changes
* chore(ts): strip internal types from compilation
* refactor(ts): move server types to server folder
* refactor(ts): rename internals to types
|
2021-08-31 15:18:12 +02:00 |
|