Commit Graph

25 Commits

Author SHA1 Message Date
Landon Noss
6547a2e78f
Update Svelte-kit dependency to @next.259 (#69)
* updating svelte-kit types to 259 and patching RequestHandler for RequestEvent

* adding dist for github distribution

* cookie parsing from RequestEvent

* reverting gitignore change

* removing dist folder as test artifact

* adding npm prepare

* pattching a default to https redirects
2022-02-23 11:25:59 +01:00
RaviAnand Mohabir
a748c345cb 🔖 Bump version to 0.4.0 2022-01-12 19:15:22 +01:00
Alexander Staroselsky
962064eb48
feat: spotify provider (#60)
* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* 🔧 Add `README.md` to `.prettierignore`

* 🎨 Update Prettier and ESLint + format codebase

* 💚 Use `--frozen-lockfile` flag in `yarn install` GitHub CI

* 🔧 Ignore app dir in ESLint script

* 🔧 Move ESLint ignore instructions to `.eslintignore` file

* 🔧 Fix various glob patterns to properly ignore dirs

* 🎨 Run Prettier

Co-authored-by: Alexander Staroselsky <Alexander.Staroselsky1@T-Mobile.com>
Co-authored-by: Dan6erbond <moravrav@gmail.com>
2022-01-12 19:00:35 +01:00
lulzneko
9a5dbe2386
Upgrade to SvelteKit 1.0.0-next.211 and related fixes (#58)
*  Upgrade to SvelteKit 1.0.0-next.211 and related fixes

* 🚨 Fix some lint / formatter errors, ESLint plugin Svelte3 still not working

Co-authored-by: RaviAnand Mohabir <moravrav@gmail.com>
2022-01-12 17:04:51 +01:00
RaviAnand Mohabir
70fc8ac09e Merge branch 'main' of https://github.com/Dan6erbond/sk-auth into main 2021-05-26 13:54:46 +02:00
RaviAnand Mohabir
cf276bb9e7 🔖 Bump version to 0.3.7 2021-05-26 13:51:04 +02:00
Dan6erbond
735cc261fb
[ENHANCEMENT] Hybrid ESM & CJS Builds (#32)
* 👷 Create an ESM build with Rollup by renaming output files with `.esm`

* 📌 Reinstall `sk-auth` in app
2021-05-26 13:50:36 +02:00
RaviAnand Mohabir
d44e3be197 🔖 Version bump to 0.3.6 2021-05-26 00:01:50 +02:00
Dan6erbond
9a5cd3dc8b
[ENHANCEMENT] Build ESM Peer Dependency, Typing & Configs (#27)
* 👷 Switch to ESM build

* 🔧 Use `module` instead of `main` config fields

* 📌 Reinstall sk-auth

* 🏷️ Fix type errors

* 🔧 Create separate Vite config JS according to https://github.com/sveltejs/kit/issues/928

* Revert "🔧 Create separate Vite config JS according to https://github.com/sveltejs/kit/issues/928"

This reverts commit 83d23a5a4b.

*  Add `build-esm` as dev and peer dependency

* 👷 Compile CJS module

* 📌 Reinstall deps

* 🔧 Switch to ESM build

* Revert "🔧 Switch to ESM build"

This reverts commit c908a57df3.

* 🔧 Use `main` instead of `module` in `package.json`
2021-05-25 23:24:32 +02:00
Dan6erbond
b2d3995896 🔖 Bump version to 0.3.5 2021-05-25 14:32:21 +02:00
Dan6erbond
cb1b6ae4e2 🔖 Bump version to 0.3.4 2021-05-25 10:12:30 +02:00
Dan6erbond
3d2f8f8111 🔖 Bump version to 0.3.3 2021-05-25 10:06:47 +02:00
Dan6erbond
1b3c804590 🔖 Bump version to 0.3.2 2021-05-25 09:57:47 +02:00
RaviAnand Mohabir
753047c22c 🔖 Bump version to 0.3.1 2021-05-24 21:15:11 +02:00
RaviAnand Mohabir
9f77d2b0fd 🔖 Bump version to 0.3.0 2021-05-24 16:37:29 +02:00
RaviAnand Mohabir
d980240fd9 🔖 Bump version to 0.2.0 2021-05-23 22:10:47 +02:00
RaviAnand Mohabir
779afca23e 📝 Add basic README.md and bump version 2021-05-23 18:38:27 +02:00
RaviAnand Mohabir
c06ed65b46 🔧 Rename to sk-auth due to NPM name conflict 2021-05-23 18:23:31 +02:00
RaviAnand Mohabir
cdd821be66 🔧 Update repo URL 2021-05-23 17:45:30 +02:00
RaviAnand Mohabir
ffeba79157 🔧 Update repo URL 2021-05-23 17:43:31 +02:00
RaviAnand Mohabir
dbe3394782 👷 Create NPM publish workflow and set version to 0.1.0 2021-05-23 17:41:54 +02:00
Dan6erbond
591bfbbbc6
[ENHANCEMENT] Distributable Bundle with Rollup and ESBuild (#11)
* ⚰️ Remove `package-lock.json` to avoid conflicts with Yarn

* ⚰️ Remove `jwt.ts`

* 🏗️ Setup Rollup with entry module `package.json` files and use named exports exclusively for compatibility with CommonJS

* ⬆️ Use `file:..` instead of `link:..` in demo app to test local installation

* 🏷️ Export types as individual files to avoid protected access errors

* 🚨 Explicit `export types`

* 💚 Use ESBuild to bundle with Rollup, update Rollup deps and types

* 🐛 Remove usage of SvelteKit modules

Disable implicitly updating session, routing and getting redirect URL from SvelteKit modules due to missing exports.
2021-05-23 17:32:42 +02:00
Dan6erbond
5d1802fea4
[ENHANCEMENT] Demo / Testing App, Updated Build Configuration (#8)
* 🎉 Scaffold example app with SvelteKit barebones skeleton

* 💄 Add TWCSS and base styles with fonts Inter/Fira Mono

* 🔧 Add `exports` and `types` to `package.json` and update `tsconfig.json` for Vite-compatible build output

*  Add local dependency to `svelte-kit-auth` as symlink

* 🔧 Update example app env variables

*  Add basic auth config to example app

* ♻️ Export all providers from `/providers` module

* 🎨 Make `Auth` class default export of lib

* 🚚 Rename `example-app` to `app`

*  Use `file:` instead of `link:` for local dependency to `svelte-kit-auth`

* 🔧 Add `JWT_SECRET_KEY` to env and config

* 🎨 Add `RedditOAuthProvider.profileHandler` for general use and stripping of payload

*  Export auth API routes from app

* ⬆️ Update local deps

*  Add `host` and `basePath` to general config and improve recognition of routes

* 🚨 Exclude `app` from TS build

* 📌 Undo `file:` mapping dependency for usage with Vite

TODO: Needs to be fixed for release.

* 🎨 Enable TS `strict` mode and set target to `es2017`

* 📌 Undo `file:` mapping dependency for usage with Vite

* 🚨 Format and lint files

* 🍱 Add logo

*  Add login and profile routes to example app for showcase and testing

* 💄 Add PrismJS and create homepage with example

* 🔨 Add `build:watch`
2021-05-21 17:59:21 +02:00
RaviAnand Mohabir
65acc7dadc 🚨 Add Svelte dev dependencies 2021-05-17 19:00:01 +02:00
RaviAnand Mohabir
4ad637dd36 🎉 Initialize NPM project and install dependencies 2021-05-17 18:47:18 +02:00