Skip to content

Release/v3.0.0 #60

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ developers around the world.


## Git branch flow
We adhere GitHub Flow to develop this project. Anything in the `master` branch is deployable. To work on something new, create
a descriptively named branch off of master, also add a prefix `feature/` to its name.
We adhere GitHub Flow to develop this project. Anything in the `main` branch is deployable. To work on something new, create
a descriptively named branch off of main, also add a prefix `feature/` to its name.
A branch name should be started with verb and the most terse and lucid possible.

```bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Build and test"
on:
push:
branches: ["master"]
branches: ["main"]
pull_request: {}
jobs:

Expand All @@ -20,7 +20,7 @@ jobs:
needs: "parameters"
strategy:
matrix:
node: ["10.15", "12.13", "14.15"]
node: ["14.15", "16.15", "18.7"]
steps:
- uses: "actions/checkout@v2"
- name: "Use Node.js"
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
node: ["10.15", "12.13", "14.15"]
node: ["14.15", "16.15", "18.7"]
steps:
- uses: "actions/checkout@v2"
- name: "Use Node.js"
Expand All @@ -61,7 +61,7 @@ jobs:
- name: "Execute tests"
run: "npm test"
- name: "Calculate coverage rate"
if: "matrix.node == '12.13'"
if: "matrix.node == '16.15'"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "npm run coverage"
Expand All @@ -72,7 +72,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
node: ["10.15", "12.13", "14.15"]
node: ["14.15", "16.15", "18.7"]
steps:
- uses: "actions/checkout@v2"
- name: "Use Node.js"
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.20.0
16.15.1
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright 2020 Jaga Apple
Copyright 2022 Jaga Apple

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,
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ some rules for some reason.
## Quick Start
### Requirements
- npm or Yarn
- Node.js 10.0.0 or higher
- Next.js 8.0.0 or higher
- Node.js 14.15.0 or higher
- Next.js 10.0.0 or higher

### Installation
```bash
Expand Down Expand Up @@ -379,7 +379,7 @@ Also you can specify directives using chain-case names such as `child-src` inste

> **❗️ When setting `frameAncestors` :X-Frame-Options takes priority.**
> [Section "Relation to X-Frame-Options" of the CSP Spec](https://w3c.github.io/webappsec-csp/#frame-ancestors-and-frame-options) says: _"If a resource is delivered with a policy that includes a directive named frame-ancestors and whose disposition is "enforce", then the X-Frame-Options header MUST be ignored"_, but Chrome 40 & Firefox 35 ignore the frame-ancestors directive and follow the X-Frame-Options header instead.
>
>
> Therefore, if setting `frameAncestors` you should set `frameGuard` to `false`.

### `expectCT`
Expand Down Expand Up @@ -535,4 +535,4 @@ Please read [Contributing Guidelines](./.github/CONTRIBUTING.md) before developm
## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2020 Jaga Apple. All rights reserved.
Copyright 2022 Jaga Apple. All rights reserved.
25 changes: 0 additions & 25 deletions example-hoc-9/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions example-hoc-9/next-env.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions example-hoc-9/next.config.js

This file was deleted.

Loading