Skip to content

Commit

Permalink
Merge pull request #212 from fingerprintjs/rc
Browse files Browse the repository at this point in the history
Release v1.4.0-rc.1
  • Loading branch information
TheUnderScorer authored Apr 8, 2024
2 parents 3d9e8ef + 8b47234 commit 55e9f59
Show file tree
Hide file tree
Showing 47 changed files with 8,627 additions and 6,859 deletions.
28 changes: 1 addition & 27 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['plugin:@typescript-eslint/eslint-recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
extends: ['@fingerprintjs/eslint-config-dx-team'],
ignorePatterns: ['dist/*'],
rules: {
semi: ['error', 'never'],
'linebreak-style': ['error', 'unix'],
'prefer-const': 'error',
'prettier/prettier': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
curly: [2, 'all'],
},
}
2 changes: 2 additions & 0 deletions .github/workflows/analyze-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ jobs:
analyze-commits:
name: Generate docs and coverage report
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
with:
nodeVersion: 18
18 changes: 5 additions & 13 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- name: Install pnpm
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
version: 8
- name: Install Dependencies and prepare packages
run: yarn install
env:
CI: true
run: pnpm install
- name: Run test
run: yarn test:coverage
run: pnpm test:coverage

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@e07f25709cd25486855c1ba1b26da53576ff3620
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: 'Build project, run CI checks and publish new release'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1
with:
nodeVersion: 16
nodeVersion: 18
appId: ${{ vars.APP_ID }}
secrets:
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

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

Expand Down
7 changes: 1 addition & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
"@fingerprintjs/prettier-config-dx-team"
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "yarn build:release",
"prepareCmd": "pnpm build:release",
"publishCmd": "./scripts/preparePackage.sh ${nextRelease.version}"
}
],
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## [1.4.0-rc.1](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/compare/v1.3.0...v1.4.0-rc.1) (2024-04-08)


### Features

* update dependencies ([40fb0a7](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/commit/40fb0a7cfa5cebe7f682ea66083c90b88a11e00c))

## [1.4.0-rc.1](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/compare/v1.3.0...v1.4.0-rc.1) (2024-04-08)


### Features

* update dependencies ([40fb0a7](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/commit/40fb0a7cfa5cebe7f682ea66083c90b88a11e00c))

## [1.4.0-rc.1](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/compare/v1.3.0...v1.4.0-rc.1) (2024-04-05)


### Features

* update dependencies ([40fb0a7](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/commit/40fb0a7cfa5cebe7f682ea66083c90b88a11e00c))

## [1.3.0](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/compare/v1.2.4...v1.3.0) (2023-12-20)


Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Working with code

We prefer using [yarn](https://yarnpkg.com/) for installing dependencies and running scripts.
We prefer using [pnpm](https://pnpm.io/) for installing dependencies and running scripts.

For proposing changes, use the standard [pull request approach](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). It's recommended to discuss fixes or new functionality in the Issues, first.

Expand All @@ -11,9 +11,9 @@ For proposing changes, use the standard [pull request approach](https://docs.git
* The `develop` branch functions as a candidate for the next release. Create your pull requests into this branch. The code in `develop` must always pass the tests.

### How to build
* After cloning the repository, run `yarn install` to install dependencies.
* After cloning the repository, run `pnpm install` to install dependencies.

* Run `yarn build` to build the project into the `dist` folder. The created `dist/fingerprintjs-pro-azure-function/fingerprintjs-pro-azure-function.js` and `dist/fingerprintjs-pro-azure-function-management/fingerprintjs-pro-azure-function-management.js` are meant to be deployed to Azure Functions.
* Run `pnpm build` to build the project into the `dist` folder. The created `dist/fingerprintjs-pro-azure-function/fingerprintjs-pro-azure-function.js` and `dist/fingerprintjs-pro-azure-function-management/fingerprintjs-pro-azure-function-management.js` are meant to be deployed to Azure Functions.

### How to deploy to Azure Functions

Expand All @@ -35,20 +35,20 @@ You can invoke the function from your local environment using the [start command

### How to run the function locally

* Run `yarn start` to run and debug the function locally via [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local).
* You can run `yarn emulate-storage` to locally emulate your Azure Storage account using [Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio).
* Run `pnpm start` to run and debug the function locally via [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local).
* You can run `pnpm emulate-storage` to locally emulate your Azure Storage account using [Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio).


### Code style

Consistent code formatting is enforced by [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/). To check your code, run:
```shell
yarn lint
pnpm lint
```

You don't need to do this manually, CI runs the check automatically. To fix all auto-fixable issues at once, run:
```shell
yarn lint:fix
pnpm lint:fix
```
### Commit style
Expand Down
12 changes: 6 additions & 6 deletions azure-pipelines-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ steps:
displayName: 'Output tag'
env:
TAG: $(TAG)
- script: yarn install --ignore-engines && npx playwright install && yarn global add ts-node
- script: npm install pnpm@8 -g && pnpm install && pnpm exec playwright install
displayName: 'Install dependencies'
- script: ts-node scripts/downloadGithubReleasePackage.ts
- script: pnpm exec ts-node scripts/downloadGithubReleasePackage.ts
displayName: 'Download release artifact from GitHub'
env:
TAG: $(TAG)
- script: yarn build:example-website
- script: pnpm build:example-website
displayName: 'Build website'
env:
VITE_API_KEY: $(API_KEY)
Expand All @@ -41,14 +41,14 @@ steps:
azureSubscription: 'azure-proxy-integration-e2e-tests'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'yarn e2e-deploy-infra'
inlineScript: 'pnpm e2e-deploy-infra'

- task: AzureCLI@2
inputs:
azureSubscription: 'azure-proxy-integration-e2e-tests'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'yarn test:e2e'
inlineScript: 'pnpm test:e2e'
displayName: 'Run e2e tests'
env:
CI: 'true'
Expand All @@ -58,7 +58,7 @@ steps:
azureSubscription: 'azure-proxy-integration-e2e-tests'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'yarn e2e-destroy-infra'
inlineScript: 'pnpm e2e-destroy-infra'
displayName: 'Destroy infrastructure'
condition: always()
env:
Expand Down
Loading

0 comments on commit 55e9f59

Please sign in to comment.