├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yaml │ └── feature_request.yaml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── codeql-analysis.yaml │ ├── release.yaml │ ├── semantic-pr.yaml │ └── test.yaml ├── .gitignore ├── .npmrc ├── .tool-versions ├── .vscode ├── extensions.json └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── assets └── github-preview-svelte-adapter-firebase.png ├── package.json ├── pnpm-lock.yaml ├── src ├── files │ ├── entry.js │ ├── firebase-to-svelte-kit.js │ └── shims.js ├── index.d.ts ├── index.js └── utils.js └── tests ├── end-to-end ├── scaffold │ ├── .firebaserc │ ├── firebase.json │ ├── functions │ │ ├── .gitignore │ │ ├── index.js │ │ └── package.json │ └── svelte.config.js └── test.bash ├── integration ├── functions_single_site │ ├── .firebaserc │ ├── firebase.json │ ├── functions │ │ ├── .gitignore │ │ ├── index.js │ │ └── package.json │ └── svelte.config.js ├── integration-test.bash ├── nested_app_dirs │ ├── .firebaserc │ ├── app │ │ └── svelte.config.js │ ├── firebase.json │ └── functions │ │ ├── .gitignore │ │ ├── index.js │ │ └── package.json └── run_service_id │ ├── .firebaserc │ ├── firebase.json │ ├── functions │ ├── .gitignore │ ├── index.js │ └── package.json │ └── svelte.config.js └── unit ├── fixtures ├── failures │ ├── cf_invalid_function_name.json │ ├── cf_multi_site_no_target_match.json │ ├── cf_multi_site_requires_target.json │ ├── cf_site_missing_functions.json │ ├── cf_site_rewrite_mismatch.json │ ├── cr_invalid_region.json │ ├── cr_invalid_serviceId.json │ ├── cr_missing_serviceId.json │ ├── invalid.json │ ├── missing_hosting.json │ ├── site_empty_public.json │ ├── site_missing_public.json │ ├── site_missing_rewrite.json │ └── sites_missing_rewrites.json └── successes │ ├── cf_site.json │ ├── cf_sites_w_site.json │ ├── cf_sites_w_target.json │ ├── cr_site.json │ ├── cr_sites_w_site.json │ └── cr_sites_w_target.json └── src ├── files └── firebase-to-svelte-kit.test.js └── utils.test.js /.gitattributes: -------------------------------------------------------------------------------- 1 | ## GITATTRIBUTES FOR WEB PROJECTS 2 | # 3 | # These settings are for any web project. 4 | # 5 | # Details per file setting: 6 | # text These files should be normalized (i.e. convert CRLF to LF). 7 | # binary These files are binary and should be left untouched. 8 | # 9 | # Note that binary is a macro for -text -diff. 10 | ###################################################################### 11 | 12 | # Auto detect 13 | ## Handle line endings automatically for files detected as 14 | ## text and leave all files detected as binary untouched. 15 | ## This will handle all files NOT defined below. 16 | * text=auto 17 | 18 | # Source code 19 | *.bash text eol=lf 20 | *.bat text eol=crlf 21 | *.cmd text eol=crlf 22 | *.coffee text 23 | *.css text 24 | *.htm text diff=html 25 | *.html text diff=html 26 | *.inc text 27 | *.ini text 28 | *.js text 29 | *.json text 30 | *.jsx text 31 | *.less text 32 | *.ls text 33 | *.map text -diff 34 | *.od text 35 | *.onlydata text 36 | *.php text diff=php 37 | *.pl text 38 | *.ps1 text eol=crlf 39 | *.py text diff=python 40 | *.rb text diff=ruby 41 | *.sass text 42 | *.scm text 43 | *.scss text diff=css 44 | *.sh text eol=lf 45 | *.sql text 46 | *.styl text 47 | *.tag text 48 | *.ts text 49 | *.tsx text 50 | *.xml text 51 | *.xhtml text diff=html 52 | 53 | # Docker 54 | Dockerfile text 55 | 56 | # Documentation 57 | *.ipynb text 58 | *.markdown text 59 | *.md text 60 | *.mdwn text 61 | *.mdown text 62 | *.mkd text 63 | *.mkdn text 64 | *.mdtxt text 65 | *.mdtext text 66 | *.txt text 67 | AUTHORS text 68 | CHANGELOG text 69 | CHANGES text 70 | CONTRIBUTING text 71 | COPYING text 72 | copyright text 73 | *COPYRIGHT* text 74 | INSTALL text 75 | license text 76 | LICENSE text 77 | NEWS text 78 | readme text 79 | *README* text 80 | TODO text 81 | 82 | # Templates 83 | *.dot text 84 | *.ejs text 85 | *.haml text 86 | *.handlebars text 87 | *.hbs text 88 | *.hbt text 89 | *.jade text 90 | *.latte text 91 | *.mustache text 92 | *.njk text 93 | *.phtml text 94 | *.tmpl text 95 | *.tpl text 96 | *.twig text 97 | *.vue text 98 | 99 | # Configs 100 | *.cnf text 101 | *.conf text 102 | *.config text 103 | .editorconfig text 104 | .env text 105 | .gitattributes text 106 | .gitconfig text 107 | .htaccess text 108 | *.lock text -diff 109 | package-lock.json text -diff 110 | *.toml text 111 | *.yaml text 112 | *.yml text 113 | browserslist text 114 | Makefile text 115 | makefile text 116 | 117 | # Heroku 118 | Procfile text 119 | 120 | # Graphics 121 | *.ai binary 122 | *.bmp binary 123 | *.eps binary 124 | *.gif binary 125 | *.gifv binary 126 | *.ico binary 127 | *.jng binary 128 | *.jp2 binary 129 | *.jpg binary 130 | *.jpeg binary 131 | *.jpx binary 132 | *.jxr binary 133 | *.pdf binary 134 | *.png binary 135 | *.psb binary 136 | *.psd binary 137 | # SVG treated as an asset (binary) by default. 138 | *.svg text 139 | # If you want to treat it as binary, 140 | # use the following line instead. 141 | # *.svg binary 142 | *.svgz binary 143 | *.tif binary 144 | *.tiff binary 145 | *.wbmp binary 146 | *.webp binary 147 | 148 | # Audio 149 | *.kar binary 150 | *.m4a binary 151 | *.mid binary 152 | *.midi binary 153 | *.mp3 binary 154 | *.ogg binary 155 | *.ra binary 156 | 157 | # Video 158 | *.3gpp binary 159 | *.3gp binary 160 | *.as binary 161 | *.asf binary 162 | *.asx binary 163 | *.fla binary 164 | *.flv binary 165 | *.m4v binary 166 | *.mng binary 167 | *.mov binary 168 | *.mp4 binary 169 | *.mpeg binary 170 | *.mpg binary 171 | *.ogv binary 172 | *.swc binary 173 | *.swf binary 174 | *.webm binary 175 | 176 | # Archives 177 | *.7z binary 178 | *.gz binary 179 | *.jar binary 180 | *.rar binary 181 | *.tar binary 182 | *.zip binary 183 | 184 | # Fonts 185 | *.ttf binary 186 | *.eot binary 187 | *.otf binary 188 | *.woff binary 189 | *.woff2 binary 190 | 191 | # Executables 192 | *.exe binary 193 | *.pyc binary 194 | 195 | # RC files (like .babelrc or .eslintrc) 196 | *.*rc text 197 | 198 | # Ignore files (like .npmignore or .gitignore) 199 | *.*ignore text -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [jthegedus] 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yaml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Create a report to help us improve 3 | title: "bug: " 4 | labels: [bug] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | Thanks for taking the time to fill out this bug report! 10 | - type: textarea 11 | id: description 12 | attributes: 13 | label: Describe the Bug 14 | description: A clear and concise description of what the bug is. 15 | validations: 16 | required: true 17 | - type: textarea 18 | id: reproduction 19 | attributes: 20 | label: Steps to Reproduce 21 | description: Tell us what actions you performed before the issue occurred 22 | placeholder: | 23 | 1. Go to '...' 24 | 2. Click on '....' 25 | 3. Scroll down to '....' 26 | 4. See error 27 | validations: 28 | required: true 29 | - type: textarea 30 | id: expected 31 | attributes: 32 | label: Expected Behaviour 33 | description: Tell us what should have happened? 34 | validations: 35 | required: true 36 | - type: input 37 | id: svelte-adapter-firebase 38 | attributes: 39 | label: svelte-adapter-firebase version 40 | description: What version of `svelte-adapter-firebase` are you running? 41 | placeholder: 0.9.2 42 | validations: 43 | required: true 44 | - type: input 45 | id: sveltekit 46 | attributes: 47 | label: sveltejs/kit version 48 | description: What version of `@sveltejs/kit` are you running? 49 | placeholder: 1.0.0-next.128 50 | validations: 51 | required: true 52 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yaml: -------------------------------------------------------------------------------- 1 | name: "Feature Request" 2 | description: Suggest an idea for this project 3 | title: "feat: " 4 | labels: [enhancement] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | Thanks for taking the time to request this feature! 10 | - type: textarea 11 | id: problem 12 | attributes: 13 | label: Describe the problem 14 | description: Please provide a clear and concise description the problem this feature would solve. The more information you can provide here, the better. 15 | placeholder: I'm always frustrated when... 16 | validations: 17 | required: true 18 | - type: textarea 19 | id: solution 20 | attributes: 21 | label: Describe the proposed solution 22 | description: Please provide a clear and concise description of what you would like to happen. 23 | placeholder: I would like to see... 24 | validations: 25 | required: true 26 | - type: textarea 27 | id: alternatives 28 | attributes: 29 | label: Alternatives considered 30 | description: "Please provide a clear and concise description of any alternative solutions or features you've considered." 31 | validations: 32 | required: true 33 | - type: dropdown 34 | id: importance 35 | attributes: 36 | label: Importance 37 | description: How important is this feature to you? 38 | options: 39 | - would make my life easier 40 | - i cannot use `svelte-adapter-firebase` without it 41 | validations: 42 | required: true 43 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | 3 | 4 | 5 | Fixes: List issue numbers here 6 | 7 | ## Other Information 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yaml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | # 7 | # ******** NOTE ******** 8 | # We have attempted to detect the languages in your repository. Please check 9 | # the `language` matrix defined below to confirm you have the correct set of 10 | # supported CodeQL languages. 11 | # 12 | name: "CodeQL" 13 | 14 | on: 15 | push: 16 | branches: [ main ] 17 | pull_request: 18 | # The branches below must be a subset of the branches above 19 | branches: [ main ] 20 | schedule: 21 | - cron: '35 4 * * 5' 22 | 23 | jobs: 24 | analyze: 25 | name: Analyze 26 | runs-on: ubuntu-latest 27 | 28 | strategy: 29 | fail-fast: false 30 | matrix: 31 | language: [ 'javascript' ] 32 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] 33 | # Learn more: 34 | # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed 35 | 36 | steps: 37 | - name: Checkout repository 38 | uses: actions/checkout@v2 39 | 40 | # Initializes the CodeQL tools for scanning. 41 | - name: Initialize CodeQL 42 | uses: github/codeql-action/init@v1 43 | with: 44 | languages: ${{ matrix.language }} 45 | # If you wish to specify custom queries, you can do so here or in a config file. 46 | # By default, queries listed here will override any specified in a config file. 47 | # Prefix the list here with "+" to use these queries and those in the config file. 48 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 49 | 50 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 51 | # If this step fails, then you should remove it and run the build manually (see below) 52 | - name: Autobuild 53 | uses: github/codeql-action/autobuild@v1 54 | 55 | # ℹ️ Command-line programs to run using the OS shell. 56 | # 📚 https://git.io/JvXDl 57 | 58 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 59 | # and modify them (or add more) to build your code if your project 60 | # uses a compiled language 61 | 62 | #- run: | 63 | # make bootstrap 64 | # make release 65 | 66 | - name: Perform CodeQL Analysis 67 | uses: github/codeql-action/analyze@v1 68 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | release: 10 | name: Release 11 | runs-on: ubuntu-18.04 12 | env: 13 | HUSKY: 0 14 | steps: 15 | - uses: GoogleCloudPlatform/release-please-action@v2 16 | id: release 17 | with: 18 | release-type: node 19 | bump-minor-pre-major: true # remove this to enable breaking changes causing 1.0.0 tag 20 | 21 | # The logic below handles the npm publication: 22 | # The if statements ensure that a publication only occurs when a new release is created 23 | - name: Checkout 24 | uses: actions/checkout@v2 25 | with: 26 | fetch-depth: 0 27 | persist-credentials: false 28 | if: ${{ steps.release.outputs.release_created }} 29 | 30 | - uses: actions/setup-node@v1 31 | with: 32 | node-version: 16 33 | registry-url: 'https://registry.npmjs.org' 34 | if: ${{ steps.release.outputs.release_created }} 35 | 36 | - run: npm install 37 | if: ${{ steps.release.outputs.release_created }} 38 | 39 | - run: npm publish 40 | env: 41 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 42 | if: ${{ steps.release.outputs.release_created }} 43 | -------------------------------------------------------------------------------- /.github/workflows/semantic-pr.yaml: -------------------------------------------------------------------------------- 1 | name: Lint PR 2 | 3 | on: 4 | pull_request_target: 5 | types: 6 | - opened 7 | - edited 8 | - synchronize 9 | 10 | jobs: 11 | main: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: amannn/action-semantic-pull-request@v3.4.0 15 | env: 16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 17 | with: 18 | validateSingleCommit: true 19 | -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- 1 | name: Tests 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | env: 10 | CI: true 11 | FIREBASE_EMULATORS_PATH: ${{ github.workspace }}/emulator-cache 12 | 13 | jobs: 14 | unit: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v3 18 | - name: install asdf 19 | uses: asdf-vm/actions/install@v1 20 | - run: pnpm install 21 | - run: pnpm run test 22 | 23 | integration: 24 | runs-on: ubuntu-latest 25 | needs: 26 | - unit 27 | strategy: 28 | fail-fast: true 29 | matrix: 30 | params: 31 | - { 32 | test_dir: "functions_single_site", 33 | validation_app_dir: "public/_app/immutable/components/pages/_page.svelte-*.js", 34 | validation_compute_dir: "functions/sveltekit/index.js", 35 | nested_dir: ".", 36 | } 37 | - { 38 | test_dir: "nested_app_dirs", 39 | validation_app_dir: "public/_app/immutable/components/pages/_page.svelte-*.js", 40 | validation_compute_dir: "functions/sveltekit/index.js", 41 | nested_dir: "app", 42 | } 43 | - { 44 | test_dir: "run_service_id", 45 | validation_app_dir: "public/_app/immutable/components/pages/_page.svelte-*.js", 46 | validation_compute_dir: "functions/cloudrun/index.js", 47 | nested_dir: ".", 48 | } 49 | steps: 50 | - uses: actions/checkout@v3 51 | - name: install asdf 52 | uses: asdf-vm/actions/install@v1 53 | - name: Run Integration test for ${{ matrix.params.test_dir }} 54 | run: | 55 | bash ./tests/integration/integration-test.bash ${{ matrix.params.test_dir }} ${{ matrix.params.validation_app_dir }} ${{ matrix.params.validation_compute_dir }} ${{ matrix.params.nested_dir }} 56 | 57 | end-to-end: 58 | runs-on: ubuntu-latest 59 | needs: 60 | - unit 61 | steps: 62 | - uses: actions/checkout@v3 63 | - name: install asdf 64 | uses: asdf-vm/actions/install@v1 65 | - name: Cache firebase emulators 66 | uses: actions/cache@v2 67 | with: 68 | path: ${{ env.FIREBASE_EMULATORS_PATH }} 69 | key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('emulator-cache/**') }} 70 | continue-on-error: true 71 | - name: Run end-to-end test script 72 | run: | 73 | bash ./tests/end-to-end/test.bash 74 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/node 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=node 4 | 5 | ### Node ### 6 | # Logs 7 | logs 8 | *.log 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | lerna-debug.log* 13 | 14 | # Diagnostic reports (https://nodejs.org/api/report.html) 15 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 16 | 17 | # Runtime data 18 | pids 19 | *.pid 20 | *.seed 21 | *.pid.lock 22 | 23 | # Directory for instrumented libs generated by jscoverage/JSCover 24 | lib-cov 25 | 26 | # Coverage directory used by tools like istanbul 27 | coverage 28 | *.lcov 29 | 30 | # nyc test coverage 31 | .nyc_output 32 | 33 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 34 | .grunt 35 | 36 | # Bower dependency directory (https://bower.io/) 37 | bower_components 38 | 39 | # node-waf configuration 40 | .lock-wscript 41 | 42 | # Compiled binary addons (https://nodejs.org/api/addons.html) 43 | build/Release 44 | 45 | # Dependency directories 46 | node_modules/ 47 | jspm_packages/ 48 | 49 | # TypeScript v1 declaration files 50 | typings/ 51 | 52 | # TypeScript cache 53 | *.tsbuildinfo 54 | 55 | # Optional npm cache directory 56 | .npm 57 | 58 | # Optional eslint cache 59 | .eslintcache 60 | 61 | # Optional stylelint cache 62 | .stylelintcache 63 | 64 | # Microbundle cache 65 | .rpt2_cache/ 66 | .rts2_cache_cjs/ 67 | .rts2_cache_es/ 68 | .rts2_cache_umd/ 69 | 70 | # Optional REPL history 71 | .node_repl_history 72 | 73 | # Output of 'npm pack' 74 | *.tgz 75 | 76 | # Yarn Integrity file 77 | .yarn-integrity 78 | 79 | # dotenv environment variables file 80 | .env 81 | .env.test 82 | .env*.local 83 | 84 | # parcel-bundler cache (https://parceljs.org/) 85 | .cache 86 | .parcel-cache 87 | 88 | # Next.js build output 89 | .next 90 | 91 | # Nuxt.js build / generate output 92 | .nuxt 93 | dist 94 | 95 | # Storybook build outputs 96 | .out 97 | .storybook-out 98 | storybook-static 99 | 100 | # rollup.js default build output 101 | dist/ 102 | 103 | # Gatsby files 104 | .cache/ 105 | # Comment in the public line in if your project uses Gatsby and not Next.js 106 | # https://nextjs.org/blog/next-9-1#public-directory-support 107 | # public 108 | 109 | # vuepress build output 110 | .vuepress/dist 111 | 112 | # Serverless directories 113 | .serverless/ 114 | 115 | # FuseBox cache 116 | .fusebox/ 117 | 118 | # DynamoDB Local files 119 | .dynamodb/ 120 | 121 | # TernJS port file 122 | .tern-port 123 | 124 | # Stores VSCode versions used for testing VSCode extensions 125 | .vscode-test 126 | 127 | # Temporary folders 128 | tmp/ 129 | temp/ 130 | 131 | # End of https://www.toptal.com/developers/gitignore/api/node 132 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | auto-install-peers=true 2 | -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | firebase 11.19.0 2 | nodejs 18.12.1 3 | pnpm 7.18.2 4 | 5 | # use for Firebase Emulator 6 | 7 | java openjdk-18.0.1.1 8 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "redhat.vscode-yaml", 4 | "samverschueren.linter-xo" 5 | ] 6 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "xo.enable": true, 3 | "xo.format.enable": true, 4 | "files.insertFinalNewline": true, 5 | "[javascript]": { 6 | "editor.defaultFormatter": "samverschueren.linter-xo" 7 | }, 8 | "[typescript]": { 9 | "editor.defaultFormatter": "samverschueren.linter-xo" 10 | }, 11 | "[json]": { 12 | "editor.defaultFormatter": "vscode.json-language-features", 13 | }, 14 | "[yaml]": { 15 | "editor.defaultFormatter": "redhat.vscode-yaml" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.15.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.14.4...v0.15.0) (2023-01-17) 4 | 5 | 6 | ### ⚠ BREAKING CHANGES 7 | 8 | * sync with kit@1.1.1 based on (PRs #194 #200) (#203) 9 | 10 | ### Bug Fixes 11 | 12 | * **#192:** replace getStaticDirectory with kit.files.assets ([#193](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/193)) ([a4b4daa](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/a4b4daac795cd93a4a06f5d218f69841810e686b)) 13 | * sync with kit@1.1.1 based on (PRs [#194](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/194) [#200](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/200)) ([#203](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/203)) ([352072d](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/352072d0f30ef76442fc143ccb4a446119a573ee)) 14 | 15 | ### [0.14.4](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.14.3...v0.14.4) (2022-09-08) 16 | 17 | 18 | ### Bug Fixes 19 | 20 | * cross-site POST requests ([#184](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/184)) ([e2d8081](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/e2d80812976feb5d16e34131462628647af59dc3)) 21 | 22 | ### [0.14.3](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.14.2...v0.14.3) (2022-09-02) 23 | 24 | 25 | ### Bug Fixes 26 | 27 | * **#180:** Prepend `Server.init` before calling `Server.respond` ([#181](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/181)) ([5c937c9](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/5c937c9ca6627025ecd19c889a9be3b50be2a266)) 28 | 29 | ### [0.14.2](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.14.1...v0.14.2) (2022-08-13) 30 | 31 | 32 | ### Bug Fixes 33 | 34 | * **#172:** Remove reference to obsoleted `writeStatic` ([#173](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/173)) ([9a990a0](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/9a990a00667b5f2197915d8b380593a5a05d306b)) 35 | * bump kit versions, update deps & fix xojs issues ([#178](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/178)) ([dde0a0e](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/dde0a0ea9802000df2b07c760357d8eac8a976fa)) 36 | * Pass rendered.headers to writeHead as object ([#176](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/176)) ([11d90cb](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/11d90cb6059585e9c95ca06d06e153ddf514f7b4)) 37 | 38 | ### [0.14.1](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.14.0...v0.14.1) (2022-06-15) 39 | 40 | 41 | ### Bug Fixes 42 | 43 | * **#169:** Replace `installFetch()` with `installPolyfills()` ([#170](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/170)) ([9c44f0c](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/9c44f0cbcab64a390ad4197f8a13f474761e5476)) 44 | * builds on windows ([#164](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/164)) ([0dd5005](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/0dd50055706e85d4fb1cff562ab73af42c93df33)) 45 | 46 | ### [0.14.1](https://www.github.com/pham/svelte-adapter-firebase/compare/v0.14.0...v0.14.1) (2022-06-02) 47 | 48 | 49 | ### Bug Fixes 50 | 51 | * **#169:** Replace @sveltejs/kit/install-fetch with @sveltejs/kit/node/polyfills ([cc00699](https://www.github.com/pham/svelte-adapter-firebase/commit/cc00699fdf968a6a771a644ea75cc25877ed9dc2)) 52 | 53 | ## [0.14.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.13.1...v0.14.0) (2022-05-14) 54 | 55 | 56 | ### Features 57 | 58 | * Support for SvelteKit Next 303 ([#159](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/159)) ([d10fcf6](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/d10fcf6b68b65f59363aa9d25210b0f9f2b63793)) 59 | * upgrade to sveltekit 329 ([#161](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/161)) ([bf7c2e9](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/bf7c2e90e61f7562993d465bc90b4ab1232dfaac)) 60 | 61 | 62 | ### Bug Fixes 63 | 64 | * reading 'log' error ([#157](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/157)) ([f855bfb](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/f855bfb7a18ed9186463e8a04af8e4ef886d3b6a)) 65 | 66 | ## [0.14.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.13.1...v0.14.0) (2022-05-13) 67 | 68 | ### Bug Fixes 69 | 70 | - Supports the latest sveltekit apis (tested up until sveltekit 330) ([[#159](https://github.com/jthegedus/svelte-adapter-firebase/issues/159)) 71 | - Thanks to nielsvandermolen and co3k for the patch submissions. 72 | 73 | ### [0.13.1](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.13.0...v0.13.1) (2021-10-10) 74 | 75 | ### Bug Fixes 76 | 77 | - missed rename of hostingSite to target, bump kit for types ([#149](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/149)) ([cebf821](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/cebf8210c22291967b8ee2cbf3511736ddfbaef1)) 78 | 79 | ## [0.13.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.12.0...v0.13.0) (2021-09-19) 80 | 81 | ### Features 82 | 83 | - fb deploy targets. Rename opt `hostingSite` to `target` ([#144](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/144)) ([2ffe777](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/2ffe7774d41de9d4f88dc7d7935e5397e5999b44)) 84 | 85 | ### Bug Fixes 86 | 87 | - e2e tests with latest emulator ([#140](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/140)) ([5227bb5](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/5227bb5ced4576b530d0b9e6c38f91920e9863fe)) 88 | - pass null if no req.rawBody ([#143](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/143)) ([15c9ca4](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/15c9ca4bbd6783ab43614cb6b49692e4685372b8)) 89 | 90 | ## [0.12.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.11.2...v0.12.0) (2021-09-16) 91 | 92 | ### Features 93 | 94 | - compute esbuild target from Function runtime version ([#137](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/137)) ([61f2b3b](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/61f2b3bbc4c3c008a48b38890e4424956f06f9d9)) 95 | - deprecate Cloud Run support ([#135](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/135)) ([ee5d92a](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/ee5d92a2cf19508959846ef9090f679773d299de)) 96 | - rename adapter config `firebaseJson` to `firebaseJsonPath` ([#135](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/135)) ([ee5d92a](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/ee5d92a2cf19508959846ef9090f679773d299de)) 97 | 98 | ### Bug Fixes 99 | 100 | - output entrypoint code without verbose mode ([#138](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/138)) ([305ae73](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/305ae73197dc943dfe05734487ba43fd72e5a11b)) 101 | 102 | ### [0.11.2](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.11.1...v0.11.2) (2021-09-10) 103 | 104 | ### Bug Fixes 105 | 106 | - export package.json from package ([#132](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/132)) ([62e29f6](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/62e29f6b8a646cfb9537ed94f60cf040c843ed6e)) 107 | 108 | ### [0.11.1](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.11.0...v0.11.1) (2021-09-08) 109 | 110 | ### Bug Fixes 111 | 112 | - support nodejs16 env ([#129](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/129)) ([3645519](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/36455197594c49bed10b286a3fd7f35a0eb951f1)) 113 | 114 | ## [0.11.0](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.10.5...v0.11.0) (2021-08-23) 115 | 116 | ### Features 117 | 118 | - new rawBody type on SvelteKit req ([#123](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/123)) ([fec3174](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/fec31742415274110a1b068915cd166029dec6ad)) 119 | 120 | ### [0.10.5](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.10.4...v0.10.5) (2021-07-21) 121 | 122 | ### Bug Fixes 123 | 124 | - document potential Cloud Run deprecation ([#119](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/119)) ([ac8cd74](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/ac8cd745632f4d0f63d116dd6ea0aedf4d7178ab)) 125 | 126 | ### [0.10.4](https://www.github.com/jthegedus/svelte-adapter-firebase/compare/v0.10.3...v0.10.4) (2021-07-21) 127 | 128 | ### Features 129 | 130 | - support esbuild config ([#109](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/109)) ([3b7c733](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/3b7c733249b6f29e4041e56bbc9c8dabd24c9c86)) 131 | 132 | ### Bug Fixes 133 | 134 | - update sveltekit peer dep ([#112](https://www.github.com/jthegedus/svelte-adapter-firebase/issues/112)) ([d6aea82](https://www.github.com/jthegedus/svelte-adapter-firebase/commit/d6aea8293b04d6e529daed24d420656317315aed)) 135 | 136 | ## [0.9.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.9.1...v0.9.2) (2021-07-09) 137 | 138 | ### Bug Fixes 139 | 140 | - beta version compat table ([114a30f](https://github.com/jthegedus/svelte-adapter-firebase/commit/114a30f0e95bf34b5ecc58457bc920d8e15410aa)) 141 | 142 | ## [0.9.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.9.0...v0.9.1) (2021-07-07) 143 | 144 | ### Bug Fixes 145 | 146 | - use esbuild inject api to ensure exec order & polyfill ([#104](https://github.com/jthegedus/svelte-adapter-firebase/issues/104)) ([52429d2](https://github.com/jthegedus/svelte-adapter-firebase/commit/52429d23809c08dd8027e6b0ce8c2e04b6b41136)) 147 | 148 | # [0.9.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.5...v0.9.0) (2021-07-04) 149 | 150 | ### Features 151 | 152 | - adapter runs app init ([#103](https://github.com/jthegedus/svelte-adapter-firebase/issues/103)) ([9d281fb](https://github.com/jthegedus/svelte-adapter-firebase/commit/9d281fb0dfc9b41146232768850b67fa1b866e84)) 153 | 154 | ## [0.8.5](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.4...v0.8.5) (2021-06-25) 155 | 156 | ### Bug Fixes 157 | 158 | - valid cloud run region ([#102](https://github.com/jthegedus/svelte-adapter-firebase/issues/102)) ([58d8d3d](https://github.com/jthegedus/svelte-adapter-firebase/commit/58d8d3dfec5ac9d644df63fd00e497ac21544a91)) 159 | 160 | ## [0.8.4](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.3...v0.8.4) (2021-05-30) 161 | 162 | ### Bug Fixes 163 | 164 | - specify minimum nodejs version in package.json ([#98](https://github.com/jthegedus/svelte-adapter-firebase/issues/98)) ([456da34](https://github.com/jthegedus/svelte-adapter-firebase/commit/456da349d359470002dadb841acce5cbb0b8589a)) 165 | 166 | ## [0.8.3](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.2...v0.8.3) (2021-05-30) 167 | 168 | ### Bug Fixes 169 | 170 | - use SK computed config to determine if static dirs differ ([#97](https://github.com/jthegedus/svelte-adapter-firebase/issues/97)) ([53e3c97](https://github.com/jthegedus/svelte-adapter-firebase/commit/53e3c97d321fa8a29dfa44059927291893d4ee2a)) 171 | 172 | ## [0.8.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.1...v0.8.2) (2021-05-30) 173 | 174 | ### Bug Fixes 175 | 176 | - simplify body parsing & add handler types ([#96](https://github.com/jthegedus/svelte-adapter-firebase/issues/96)) ([8b47baf](https://github.com/jthegedus/svelte-adapter-firebase/commit/8b47baf262dcf409db83eaeb1fd84280b18c663f)) 177 | 178 | ## [0.8.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.8.0...v0.8.1) (2021-05-30) 179 | 180 | ### Bug Fixes 181 | 182 | - wait request body infinitely in handler.js ([#93](https://github.com/jthegedus/svelte-adapter-firebase/issues/93)) ([94c4158](https://github.com/jthegedus/svelte-adapter-firebase/commit/94c4158ee0fd11194e300f0e2b81b66f16b3a15d)) 183 | 184 | # [0.8.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.8...v0.8.0) (2021-05-30) 185 | 186 | ### Features 187 | 188 | - update adapter api to latest with config ([#95](https://github.com/jthegedus/svelte-adapter-firebase/issues/95)) ([622739f](https://github.com/jthegedus/svelte-adapter-firebase/commit/622739fea6628c80e09453944171f690c0c41dc7)) 189 | 190 | ## [0.7.8](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.7...v0.7.8) (2021-05-28) 191 | 192 | ### Bug Fixes 193 | 194 | - improve tests & document tip codes ([#85](https://github.com/jthegedus/svelte-adapter-firebase/issues/85)) ([8f33de7](https://github.com/jthegedus/svelte-adapter-firebase/commit/8f33de7e3e542272ddba2cbc85903ab4ae02492f)) 195 | 196 | ## [0.7.7](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.6...v0.7.7) (2021-05-17) 197 | 198 | ### Bug Fixes 199 | 200 | - improve guide & logging of adapter ([#80](https://github.com/jthegedus/svelte-adapter-firebase/issues/80)) ([e60f5e2](https://github.com/jthegedus/svelte-adapter-firebase/commit/e60f5e2241f4c590267d2a1da0e474e8aa214650)) 201 | 202 | ## [0.7.6](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.5...v0.7.6) (2021-05-16) 203 | 204 | ### Bug Fixes 205 | 206 | - import of svelte.config.js requires string ([#74](https://github.com/jthegedus/svelte-adapter-firebase/issues/74)) ([3376a22](https://github.com/jthegedus/svelte-adapter-firebase/commit/3376a2250e64f79443a47787b206a8eb4485afe2)) 207 | 208 | ## [0.7.5](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.4...v0.7.5) (2021-05-16) 209 | 210 | ### Bug Fixes 211 | 212 | - import call for svelte.config.js on windows ([#76](https://github.com/jthegedus/svelte-adapter-firebase/issues/76)) ([02992ce](https://github.com/jthegedus/svelte-adapter-firebase/commit/02992cebfaa7681200a1773d00f87b4e3be00583)) 213 | 214 | ## [0.7.4](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.3...v0.7.4) (2021-05-13) 215 | 216 | ### Bug Fixes 217 | 218 | - instruct firebase deployment alongside Cloud Run ([#67](https://github.com/jthegedus/svelte-adapter-firebase/issues/67)) ([d1a1797](https://github.com/jthegedus/svelte-adapter-firebase/commit/d1a17977085f97fa20f25e5fc7e583ac1ec66b93)) 219 | 220 | ## [0.7.3](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.2...v0.7.3) (2021-05-13) 221 | 222 | ### Bug Fixes 223 | 224 | - ensure valid cloud function runtime version ([#66](https://github.com/jthegedus/svelte-adapter-firebase/issues/66)) ([46fafad](https://github.com/jthegedus/svelte-adapter-firebase/commit/46fafadb6ccfe0c39f0eeb3ee43bdebb4c13235c)) 225 | 226 | ## [0.7.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.1...v0.7.2) (2021-05-13) 227 | 228 | ### Bug Fixes 229 | 230 | - static output dir differes from static source dirs ([#65](https://github.com/jthegedus/svelte-adapter-firebase/issues/65)) ([72c7670](https://github.com/jthegedus/svelte-adapter-firebase/commit/72c7670e0c035d6c84f0361b5d39b3082a67958a)) 231 | 232 | ## [0.7.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.7.0...v0.7.1) (2021-05-13) 233 | 234 | ### Bug Fixes 235 | 236 | - github release assets ([#63](https://github.com/jthegedus/svelte-adapter-firebase/issues/63)) ([cd1a5e0](https://github.com/jthegedus/svelte-adapter-firebase/commit/cd1a5e04d19aed5aaf57c0303418eeb11dc30981)) 237 | 238 | # [0.7.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.5...v0.7.0) (2021-05-12) 239 | 240 | ### Features 241 | 242 | - sync new SvelteKit & init test suite ([#52](https://github.com/jthegedus/svelte-adapter-firebase/issues/52)) ([a1cb743](https://github.com/jthegedus/svelte-adapter-firebase/commit/a1cb743e835b6782344437026b0a4c238bb39842)) 243 | 244 | ## [0.6.5](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.4...v0.6.5) (2021-05-10) 245 | 246 | ### Bug Fixes 247 | 248 | - resolve dirname of firebaseJsonDir ([#49](https://github.com/jthegedus/svelte-adapter-firebase/issues/49)) ([7556c7d](https://github.com/jthegedus/svelte-adapter-firebase/commit/7556c7d21f52488f500498a7bbf79f82771f51b2)) 249 | 250 | ## [0.6.4](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.3...v0.6.4) (2021-05-10) 251 | 252 | ### Bug Fixes 253 | 254 | - export firebaseJsonDir from config parser func ([#48](https://github.com/jthegedus/svelte-adapter-firebase/issues/48)) ([5ec2e18](https://github.com/jthegedus/svelte-adapter-firebase/commit/5ec2e184669a036941e5ad48477b93aa67ffbf85)) 255 | 256 | ## [0.6.3](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.2...v0.6.3) (2021-05-07) 257 | 258 | ### Bug Fixes 259 | 260 | - allow any node package manager to install ([#46](https://github.com/jthegedus/svelte-adapter-firebase/issues/46)) ([417f167](https://github.com/jthegedus/svelte-adapter-firebase/commit/417f1673fd3561d3cd80d9a23944407a8485fd7f)) 261 | 262 | ## [0.6.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.1...v0.6.2) (2021-05-07) 263 | 264 | ### Bug Fixes 265 | 266 | - treat `firebase.json` as root dir for Firebase resources ([#43](https://github.com/jthegedus/svelte-adapter-firebase/issues/43)) ([82c8493](https://github.com/jthegedus/svelte-adapter-firebase/commit/82c8493403199b82645eed8138fe04e79a108453)) 267 | 268 | ## [0.6.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.6.0...v0.6.1) (2021-05-06) 269 | 270 | ### Bug Fixes 271 | 272 | - handle empty deps when cloud run target ([#41](https://github.com/jthegedus/svelte-adapter-firebase/issues/41)) ([b7719bd](https://github.com/jthegedus/svelte-adapter-firebase/commit/b7719bd486de71ceccdc57c5703de49cdb3f9f77)) 273 | 274 | # [0.6.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.5.2...v0.6.0) (2021-05-06) 275 | 276 | ### Bug Fixes 277 | 278 | - remove unused pnpm run build cmd from workflow ([#40](https://github.com/jthegedus/svelte-adapter-firebase/issues/40)) ([e7ab34a](https://github.com/jthegedus/svelte-adapter-firebase/commit/e7ab34a2ac3da094f006e76e2b327cfe0463d547)) 279 | 280 | ### Features 281 | 282 | - update to kit@next.100, convert to esm ([#39](https://github.com/jthegedus/svelte-adapter-firebase/issues/39)) ([d2f95a1](https://github.com/jthegedus/svelte-adapter-firebase/commit/d2f95a1132abee67b41dce5a9419f132ea3164ce)) 283 | 284 | ## [0.5.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.5.1...v0.5.2) (2021-04-28) 285 | 286 | ### Bug Fixes 287 | 288 | - use searchParams in handler.js ([#35](https://github.com/jthegedus/svelte-adapter-firebase/issues/35)) ([b2911a0](https://github.com/jthegedus/svelte-adapter-firebase/commit/b2911a0e713f7da0371ebb8791dbbefb9875096b)) 289 | 290 | ## [0.5.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.5.0...v0.5.1) (2021-03-22) 291 | 292 | ### Bug Fixes 293 | 294 | - align adapter API with SvelteKit v1.0.0-next.54 ([#23](https://github.com/jthegedus/svelte-adapter-firebase/issues/23)) ([abe68f1](https://github.com/jthegedus/svelte-adapter-firebase/commit/abe68f19a293758574893984ebbb0c36b0a448ae)) 295 | 296 | # [0.5.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.4.1...v0.5.0) (2021-03-16) 297 | 298 | ### Features 299 | 300 | - cloud function support ([#21](https://github.com/jthegedus/svelte-adapter-firebase/issues/21)) ([2437374](https://github.com/jthegedus/svelte-adapter-firebase/commit/2437374b5b3517f6183e5d7ad8b5f5fe448ed61f)) 301 | 302 | ## [0.4.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.4.0...v0.4.1) (2021-03-15) 303 | 304 | ### Bug Fixes 305 | 306 | - dir structure and rollup cli entrypoint ([#19](https://github.com/jthegedus/svelte-adapter-firebase/issues/19)) ([fd0c5f2](https://github.com/jthegedus/svelte-adapter-firebase/commit/fd0c5f2712445edf4f9aa91820b53098bd1cab88)) 307 | 308 | # [0.4.0](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.3.3...v0.4.0) (2021-03-15) 309 | 310 | ### Features 311 | 312 | - SvelteKit CR update with better Firebase config parsing ([#18](https://github.com/jthegedus/svelte-adapter-firebase/issues/18)) ([42ddb0c](https://github.com/jthegedus/svelte-adapter-firebase/commit/42ddb0c5f5da6472c6a74786a14b1730ceefec58)) 313 | 314 | ## [0.3.3](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.3.2...v0.3.3) (2021-03-04) 315 | 316 | ### Bug Fixes 317 | 318 | - inline svelte-app-utils lib ([#15](https://github.com/jthegedus/svelte-adapter-firebase/issues/15)) ([6f79964](https://github.com/jthegedus/svelte-adapter-firebase/commit/6f79964715cda538a72f9a12f50a8584953db8d1)) 319 | 320 | # Changelog 321 | 322 | All notable changes to this project will be documented in this file. 323 | 324 | ### [0.3.2](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.3.1...v0.3.2) (2021-02-09) 325 | 326 | ### Bug Fixes 327 | 328 | - destructure of adapter config error ([#11](https://github.com/jthegedus/svelte-adapter-firebase/issues/11)) ([6ece557](https://github.com/jthegedus/svelte-adapter-firebase/commit/6ece5578129ff9178030b561850eacc5cf9af286)) 329 | 330 | ### [0.3.1](https://github.com/jthegedus/svelte-adapter-firebase/compare/v0.3.0...v0.3.1) (2021-02-08) 331 | 332 | ### Bug Fixes 333 | 334 | - elevate logs to .warn & check CFs for `@sveltejs/kit` dep ([#9](https://github.com/jthegedus/svelte-adapter-firebase/issues/9)) ([6b35ee1](https://github.com/jthegedus/svelte-adapter-firebase/commit/6b35ee1a711a979fedaf7f97fc8f513974599698)) 335 | 336 | ## 0.3.0 (2021-02-07) 337 | 338 | - fix: cjs output from sveltekit requires rename of local require in handler.js 339 | - fix: destructure of undefined in index.js.adapter(). Fixes #5 340 | 341 | ## 0.2.0 (2021-01-06) 342 | 343 | - chore: build with microbundle instead of Rollup directly 344 | - chore: format & lint with xojs instead of rome.tools 345 | - chore: Joi as dependency and not inlined 346 | 347 | ## 0.1.0 (2021-01-05) 348 | 349 | :tada: Initial Release 350 | 351 | - feat: Cloud Functions for Firebase target 352 | - feat: Cloud Run target 353 | - feat: Integrates with existing `functions` 354 | - feat: Supports Firebase configurations with multiple sites 355 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at jthegedus@hey.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | 3 | Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. 4 | 5 | ## How to contribute 6 | 7 | - Open a [GitHub Issue](https://github.com/jthegedus/svelte-adatper-firebase/issues) for a discussion of your idea before working on it 8 | - Fork this repo, develop your solution and submit a PR 9 | 10 | Tooling: 11 | 12 | - [`asdf`](https://asdf-vm.com/) is used to manage the dev environment and system-level tools 13 | - if you do not use `asdf`, then please see `.tool-versions` file for the specific versions of tools. 14 | - `nodejs` dependencies then define the dev tools for this specific package 15 | - prefer [`pnpm`](https://pnpm.js.org/motivation) over `npm` 16 | 17 | Setup: 18 | 19 | ``` 20 | git clone https://github.com/jthegedus/svelte-adapter-firebase.git 21 | asdf install 22 | pnpm i 23 | ``` 24 | 25 | ## What to contribute 26 | 27 | See the [GitHub Issues](https://github.com/jthegedus/svelte-adatper-firebase/issues) list for any open Issue, especially those marked as `help wanted` 28 | 29 | General improvements to any aspect of this adapter are welcome, just ensure major work is preceeded by a conversation in a [GitHub Issue](https://github.com/jthegedus/svelte-adatper-firebase/issues). 30 | 31 | ## Tests 32 | 33 | As an integration point between [SvelteKit](https://kit.svelte.dev) and Firebase Hosting with Function rewrites the tests for this package are **important**. 34 | 35 | The test suite is broken into three categories: 36 | 37 | - **unit**: test internal functions to the CLI & entrypoint JS code 38 | - **integration**: runs the `build` command of SvelteKit with demo apps that tests each path of the src/index.js CLI entrypoint. 39 | - **end-to-end**: runs a shell script which: 40 | - creates the SvelteKit Todo skeleton app (via `npm init@svelte
esbuildBuildOptions
firebaseJsonPath
target
sourceRewriteMatch