Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: migrate to typescript #50

Merged
merged 33 commits into from Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4ddeaeb
Updates the config
kiwicopple Oct 14, 2020
a984958
chore: Migrates the basic outline to TS
kiwicopple Oct 14, 2020
dff7b8b
Adds a simple example showing how it can be used.
kiwicopple Oct 14, 2020
f480f6c
chore: Moves tests to jest
kiwicopple Oct 14, 2020
880957c
chore: Adds semantic releases
kiwicopple Oct 15, 2020
111e0c4
Moves the subscription into it's own class
kiwicopple Oct 15, 2020
0f60730
Updates the todo readme with simple instructions
kiwicopple Oct 15, 2020
2399748
Updates installs
kiwicopple Oct 15, 2020
443f81b
Revverts commented code - sorry for the spam
kiwicopple Oct 15, 2020
7a2aa2e
docs: adds JSDoc to some functions
kiwicopple Oct 15, 2020
18ce21a
chore: Adds a function for backwards compat
kiwicopple Oct 16, 2020
ec1cd12
chore: migrates the client to SupabaseClient
kiwicopple Oct 16, 2020
2f6d607
This change attempts to make the naming conventions the same as Thor'…
kiwicopple Oct 19, 2020
1a44014
Updates GoTrue to latest version
kiwicopple Oct 19, 2020
cb0dcb6
Adds generic type to the from, and updates the name of the query builder
kiwicopple Oct 20, 2020
0a31411
Updates to latest versions of all packages
kiwicopple Oct 20, 2020
6199fa7
Updates the example to make sure it's working
kiwicopple Oct 20, 2020
3de3398
Refactor SupabaseQueryBuilder
thorwebdev Oct 21, 2020
95fc5cc
Adds prettier hook
kiwicopple Oct 21, 2020
cbdcff1
Add TypeScript next.js example.
thorwebdev Oct 21, 2020
90a4386
Declutter SupabaseClient and make work with gotrue-js changes.
thorwebdev Oct 21, 2020
335e97e
Merge pull request #1 from kiwicopple/thor/refactor-querybuilder
kiwicopple Oct 21, 2020
4fbbfb3
Bumps the GoTrue version
kiwicopple Oct 21, 2020
16ac2d4
Bumps postgrest to include the types
kiwicopple Oct 22, 2020
08dc857
Temporarily adds the spec so that I can use it in our docs
kiwicopple Oct 22, 2020
89733cf
Update examples and add resetPassword.
thorwebdev Oct 23, 2020
ef817d1
Bump gotrue-js version.
thorwebdev Oct 28, 2020
0b8a6b6
Update lockfile.
thorwebdev Oct 28, 2020
fc1dd25
Merge pull request #2 from kiwicopple/thor/supabase-auth-api
kiwicopple Oct 28, 2020
e044062
Add auth magic link capabilities.
thorwebdev Nov 1, 2020
88026d7
Merge pull request #3 from kiwicopple/feature/auth-magic-link
thorwebdev Nov 1, 2020
2c7fa2b
Gotrue-js user and session method updates.
thorwebdev Nov 1, 2020
4817c66
chore: Adds release notes
kiwicopple Nov 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,26 @@
name: CI

on: [push]

jobs:
test:
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['12']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Run tests
run: |
npm ci
npm t
38 changes: 38 additions & 0 deletions .github/workflows/docs.yml
@@ -0,0 +1,38 @@
name: Docs

on:
push:
branches:
- master
workflow_dispatch:

jobs:
docs:
name: Publish docs / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['12']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: |
npm ci
npm run docs
npm run docs:json

- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
force_orphan: true
commit_message: 'docs: update'
23 changes: 0 additions & 23 deletions .github/workflows/nodejs.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- master
workflow_dispatch:

jobs:
release:
name: Release / Node ${{ matrix.node }}
strategy:
matrix:
node: ['12']

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: |
npm ci
npm run build

- name: Create a release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
86 changes: 74 additions & 12 deletions .gitignore
Expand Up @@ -2,42 +2,104 @@
logs
*.log
npm-debug.log*
.env
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.DS_Store

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Compiled binary addons (http://nodejs.org/api/addons.html)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Editors
.idea
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# Lib
lib
umd
umd_temp
# DynamoDB Local files
.dynamodb/

others
.DS_Store
# TernJS port file
.tern-port
2 changes: 2 additions & 0 deletions .npmignore
Expand Up @@ -16,6 +16,8 @@ yarn.lock
src
test
examples
example
example-next-js
umd_temp
CHANGELOG.md
.travis.yml
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Supabase

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 0 additions & 22 deletions LICENSE.md

This file was deleted.

27 changes: 0 additions & 27 deletions Makefile

This file was deleted.

31 changes: 0 additions & 31 deletions docker-compose.yml

This file was deleted.