Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

117 changes: 58 additions & 59 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,61 @@
name: Bug Report
description: Create a bug report
labels: ["type: bug"]
labels: ['type: bug']
body:

- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this bug report!

- type: markdown
attributes:
value: |
## Bug Report

- type: textarea
id: i-tried-this
attributes:
label: "I tried this:"
placeholder: "What did you try to do? A code snippet or example helps."
validations:
required: true

- type: textarea
id: instead-what-happened
attributes:
label: "This happened:"
placeholder: "What happened instead of what you've expected?"
validations:
required: true

- type: textarea
id: what-did-you-expect
attributes:
label: "I expected this:"
placeholder: "What did you expect to happen? Describe the output or behavior you expected to see (unless it's obvious)."

- type: textarea
id: workaround
attributes:
label: "Is there a workaround?"
placeholder: "What's the workaround to avoid this issue?"

- type: textarea
attributes:
label: Anything else?
placeholder: |
Links? References? Logs? Anything that will give us more context about the issue you are encountering.
Tip: You can attach images or log files by dragging files in.

- type: markdown
attributes:
value: |
## Environment

- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the issue to help us prioritize.
* If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞
- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this bug report!

- type: markdown
attributes:
value: |
## Bug Report

- type: textarea
id: i-tried-this
attributes:
label: 'I tried this:'
placeholder: 'What did you try to do? A code snippet or example helps.'
validations:
required: true

- type: textarea
id: instead-what-happened
attributes:
label: 'This happened:'
placeholder: "What happened instead of what you've expected?"
validations:
required: true

- type: textarea
id: what-did-you-expect
attributes:
label: 'I expected this:'
placeholder: "What did you expect to happen? Describe the output or behavior you expected to see (unless it's obvious)."

- type: textarea
id: workaround
attributes:
label: 'Is there a workaround?'
placeholder: "What's the workaround to avoid this issue?"

- type: textarea
attributes:
label: Anything else?
placeholder: |
Links? References? Logs? Anything that will give us more context about the issue you are encountering.
Tip: You can attach images or log files by dragging files in.

- type: markdown
attributes:
value: |
## Environment

- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the issue to help us prioritize.
* If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
blank_issues_enabled: true
contact_links: []
contact_links: []
77 changes: 38 additions & 39 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
name: Feature Request
description: Create a feature request
labels: ["type: feature"]
labels: ['type: feature']
body:
- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this feature request!

- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this feature request!
- type: markdown
attributes:
value: |
## Feature Request

- type: markdown
attributes:
value: |
## Feature Request
- type: textarea
id: what-would-you-like-to-be-added
attributes:
label: 'What would you like to be added?'
placeholder: "Description of the feature you'd like to see."
validations:
required: true

- type: textarea
id: what-would-you-like-to-be-added
attributes:
label: "What would you like to be added?"
placeholder: "Description of the feature you'd like to see."
validations:
required: true
- type: textarea
id: proposals
attributes:
label: 'Proposal(s):'
placeholder: 'Describe your proposal(s) and any relevant details here.'

- type: textarea
id: proposals
attributes:
label: "Proposal(s):"
placeholder: "Describe your proposal(s) and any relevant details here."
- type: textarea
id: alternatives
attributes:
label: 'Alternative(s):'
placeholder: 'Describe any alternative approaches, options, or suggestions you’d like to consider.'

- type: textarea
id: alternatives
attributes:
label: "Alternative(s):"
placeholder: "Describe any alternative approaches, options, or suggestions you’d like to consider."
- type: textarea
id: additional-info
attributes:
label: 'Additional info:'
placeholder: 'Provide any supplementary details, context, or supporting information here.'

- type: textarea
id: additional-info
attributes:
label: "Additional info:"
placeholder: "Provide any supplementary details, context, or supporting information here."

- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the feature to help us prioritize.
* If you are interested to work on this feature, please leave a comment.
- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the feature to help us prioritize.
* If you are interested to work on this feature, please leave a comment.
14 changes: 7 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Many thanks for submitting your Pull Request :heart:!**
**What this PR does / why we need it**:
**Special notes for reviewers**:
**Additional information (if needed):**
**Many thanks for submitting your Pull Request :heart:!**

**What this PR does / why we need it**:

**Special notes for reviewers**:

**Additional information (if needed):**
61 changes: 35 additions & 26 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
name: Node CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 21.x, 22.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
name: Node CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
Comment thread
JBBianchi marked this conversation as resolved.
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run codegen:check
- run: npm test
- run: npm run validate:package
26 changes: 18 additions & 8 deletions .github/workflows/npmjs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@ name: npmjs release
on:
release:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.event.release.tag_name }}
cancel-in-progress: false

jobs:
build:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
Comment thread
ricardozanini marked this conversation as resolved.
with:
node-version: '20.x'
node-version: '22.x'
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run lint
- run: npm run codegen:check
- run: npm test
- run: npm run build
- run: cd dist && npm publish --access=public
- run: npm run validate:package
- run: cd dist && npm publish --access=public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
19 changes: 11 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Dependency directory
node_modules
bower_components
node_modules
bower_components
.npm-cache

# Editors
.idea
Expand All @@ -11,9 +12,11 @@ bower_components
.DS_Store
Thumbs.db

# Ignore built ts files
dist/**/*
out-tsc

# ignore yarn.lock
yarn.lock
# Ignore built ts files
dist/**/*
out-tsc
coverage
*.tgz

# ignore yarn.lock
yarn.lock
Loading