-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from httpland/beta
Beta
- Loading branch information
Showing
22 changed files
with
1,626 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
schedule: | ||
- cron: '18 15 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'typescript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: release-npm | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
deno: [v1.x] | ||
node: [16.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: 6.23.6 | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --prefer-offline, --ignore-scripts] | ||
- name: Get tag version | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: get_tag_version | ||
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: build | ||
run: deno run -A ./_tools/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
|
||
- name: publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: deno run -A ./_tools/publish_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
deno: [v1.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Lint | ||
run: | | ||
deno fmt --check | ||
deno lint | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
deno: [v1.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Test | ||
run: deno task test --coverage=coverage | ||
|
||
- name: Generate coverage | ||
run: deno coverage coverage --output=cov_profile.lcov --lcov | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: cov_profile.lcov | ||
fail_ci_if_error: true | ||
|
||
release: | ||
needs: [lint, test] | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- uses: cycjimmy/semantic-release-action@v3 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/changelog | ||
@semantic-release/git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: test | ||
|
||
on: push | ||
jobs: | ||
lint: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-22.04, macos-latest, windows-latest] | ||
deno: [v1.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Lint | ||
run: | | ||
deno fmt --check | ||
deno lint | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-22.04, macos-latest, windows-latest] | ||
deno: [v1.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
|
||
- name: Test | ||
run: deno task test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"CHANGELOG.md" | ||
], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
] | ||
], | ||
"tagFormat": "${version}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# [1.0.0-beta.5](https://github.com/httpland/csp-middleware/compare/1.0.0-beta.4...1.0.0-beta.5) (2023-04-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **constants:** add lack of member ([b15653f](https://github.com/httpland/csp-middleware/commit/b15653fc9e0ebd7831cc1ec0b7f3939b218e9d8d)) | ||
* **types:** fix frame ancestors types ([7142fb5](https://github.com/httpland/csp-middleware/commit/7142fb54823ac9259912e6e70cc7d3ae440c4c6f)) | ||
* **types:** fix types of source list ([cec4591](https://github.com/httpland/csp-middleware/commit/cec459116504d9dce15d21131ac30af9330b1fc6)) | ||
|
||
|
||
### Features | ||
|
||
* **mod:** export related enum ([44d6c95](https://github.com/httpland/csp-middleware/commit/44d6c95d41d5fc8e2de5deecffc092dd5cd4067b)) | ||
* **types:** expand report uri directive acceptable types ([0c9fdc4](https://github.com/httpland/csp-middleware/commit/0c9fdc48c33a922e513843357f0a80cbd236d625)) | ||
* **types:** expand sandbox attribute acceptable types ([86f1d35](https://github.com/httpland/csp-middleware/commit/86f1d35c4d7e8c9df7f687f31ea5b1ae7557df2b)) | ||
|
||
# [1.0.0-beta.4](https://github.com/httpland/csp-middleware/compare/1.0.0-beta.3...1.0.0-beta.4) (2023-04-11) | ||
|
||
|
||
### Features | ||
|
||
* **middleware:** accept camel casing csp directives ([dab095d](https://github.com/httpland/csp-middleware/commit/dab095de22a3cd471a833e95824ab81bb5df7df1)) | ||
* **middleware:** accept structured directives and serialize it ([852970b](https://github.com/httpland/csp-middleware/commit/852970b92b7506122084407c43fb58ae267c0e92)) | ||
* **middleware:** do not accept string directives ([bb6a2c4](https://github.com/httpland/csp-middleware/commit/bb6a2c4e5464640fd50d6c4bfea1dce764539063)) | ||
* **middleware:** improve error message ([6925338](https://github.com/httpland/csp-middleware/commit/6925338feca1e33b886bab2da11a86e33ffa7c67)) | ||
* **mod:** export related types ([31727d0](https://github.com/httpland/csp-middleware/commit/31727d0598c41a1bff71fe2623fed01139f9e554)) | ||
* **utils:** add checking duplication of directive value ([62a4f31](https://github.com/httpland/csp-middleware/commit/62a4f31d46d39e766ada7249cc760c7547011e2e)) | ||
* **utils:** improve error message ([62dd335](https://github.com/httpland/csp-middleware/commit/62dd335285a79c7b8dcc50bc14dfa34fb7997f20)) | ||
* **validate:** add source expression format validator ([15745e9](https://github.com/httpland/csp-middleware/commit/15745e9888745ab4967ef892a699058f606998b3)) | ||
|
||
# [1.0.0-beta.3](https://github.com/httpland/csp-middleware/compare/1.0.0-beta.2...1.0.0-beta.3) (2023-03-31) | ||
|
||
|
||
### Features | ||
|
||
* **middleware:** change middleware factory interface to accept policy ([8c6a2b7](https://github.com/httpland/csp-middleware/commit/8c6a2b7d89f071f7a65f6ffa47a4d3ce87fd23e2)) | ||
|
||
# [1.0.0-beta.2](https://github.com/httpland/csp-middleware/compare/1.0.0-beta.1...1.0.0-beta.2) (2023-03-19) | ||
|
||
|
||
### Features | ||
|
||
* **middleware:** add asserting serialized CSP format ([4c438ad](https://github.com/httpland/csp-middleware/commit/4c438ade007c91781bff663dfe0625e3e89ee2ec)) | ||
* **mod:** export middleware types ([7d66401](https://github.com/httpland/csp-middleware/commit/7d66401df82be9147ee3d5cf7eebf847182ea1cc)) | ||
* **types:** improve csp interface ([56622c7](https://github.com/httpland/csp-middleware/commit/56622c7ccc4caf028c712cd74ecc9fca9d2a076f)) | ||
|
||
# 1.0.0-beta.1 (2023-03-17) | ||
|
||
|
||
### Features | ||
|
||
* add csp middleware factory ([364a1bc](https://github.com/httpland/csp-middleware/commit/364a1bc556cb5d7df3c30d39c4c89ce16d1c7d40)) |
Oops, something went wrong.