Skip to content
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

version 2 #264

Merged
merged 39 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a6f1353
remove unused files
patinthehat Mar 2, 2024
a3e326c
rewrite and simplify build scripts
patinthehat Mar 2, 2024
8df447d
rename config files, add biome config
patinthehat Mar 2, 2024
79e9a02
wip
patinthehat Mar 2, 2024
ba1d3da
remove renamed files
patinthehat Mar 2, 2024
33629ed
wip
patinthehat Mar 2, 2024
347b2b1
bump dep versions, convert to module type, wip
patinthehat Mar 2, 2024
686a5b6
misc fixes, updates; wip
patinthehat Mar 2, 2024
5930faa
misc fixes, updates; rename jest config file
patinthehat Mar 2, 2024
343518e
fix standalone build conditional
patinthehat Mar 2, 2024
7d07f99
config updates
patinthehat Mar 2, 2024
1703393
convert to fully async
patinthehat Mar 2, 2024
8ca4886
Update typings and types paths in package.json from node.d.ts to inde…
patinthehat Mar 2, 2024
6f575b2
config updates
patinthehat Mar 2, 2024
2c7c354
remove unused file
patinthehat Mar 2, 2024
ab0f412
convert to esm/async code
patinthehat Mar 2, 2024
226d4c7
convert to esm/async code, wip
patinthehat Mar 2, 2024
5eaae9f
wip
patinthehat Mar 7, 2024
37d1095
wip
patinthehat Mar 8, 2024
bc392fb
wip
patinthehat Mar 8, 2024
efd9f06
wip
patinthehat Mar 8, 2024
8142def
bump dep versions
patinthehat Mar 8, 2024
85e3623
Merge branch 'main' into v2
patinthehat Mar 8, 2024
e1efc37
wip
patinthehat Mar 8, 2024
e3fd85e
wip
patinthehat Mar 8, 2024
4b9fef3
wip
patinthehat Mar 8, 2024
19b4461
code cleanup
patinthehat Mar 8, 2024
4e48ed7
code cleanup
patinthehat Mar 8, 2024
74f9016
bug fixes
patinthehat Mar 8, 2024
d39d1e4
code cleanup, update tests
patinthehat Mar 8, 2024
f3e73b9
remove unused build scripts
patinthehat Mar 8, 2024
5e91041
code cleanup, eliminate several dependencies by inlining or determini…
patinthehat Mar 8, 2024
c3b48af
add/implement vitest instead of jest
patinthehat Mar 8, 2024
2d59a30
remove jest and related packages, code cleanup
patinthehat Mar 8, 2024
1c60ef8
wip
patinthehat Mar 8, 2024
8909a0f
update readme
patinthehat Mar 8, 2024
ab519a7
move some methods to async to use async stack frame tracing
patinthehat Mar 8, 2024
ec0b6a1
wip
patinthehat Mar 8, 2024
400e96b
wip
patinthehat Mar 8, 2024
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
10 changes: 6 additions & 4 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaVersion: 2020,
sourceType: 'module',
},
env: {
node: true,
browser: false,
commonjs: true,
es6: true,
},
settings: {},
extends: ['plugin:@typescript-eslint/recommended', 'eslint:recommended'],
Expand All @@ -17,7 +17,9 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
// 'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
indent: ['error', 4, { SwitchCase: 1 }],
'no-useless-catch': 'off',
},
};
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: permafrost-dev
custom: https://permafrost.dev/open-source
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ If applicable, add screenshots to help explain your problem.
**Environment (please complete the following information):**

- OS: [e.g. iOS]
- NodeJS Version [e.g. 14.4]
- Language & Version [e.g. Typescript 4.1]
- NodeJS Version [e.g. 18.1.0]
- Language & Version [e.g. Typescript 5.0]

**Additional context**

Expand Down
11 changes: 7 additions & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
codecov:
branch: main
require_ci_to_pass: yes
require_ci_to_pass: true

coverage:
status:
Expand Down Expand Up @@ -34,7 +34,10 @@ comment:

ignore:
- "build/"
- "dist/"
- "scripts/"
- ".eslintrc.cjs"
- ".eslintrc.js"
- "jest.config.js"
- "rollup.config.js"
- "rollup.standalone-config.js"
- "prettier.config.cjs"
- "prettier.config.js"
- "jest.config.cjs"
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

Expand All @@ -21,3 +18,5 @@ updates:
prefix: "npm"
include: "scope"
open-pull-requests-limit: 10
labels:
- "dependencies"
53 changes: 0 additions & 53 deletions .github/workflows/codecov.yml.disabled

This file was deleted.

46 changes: 2 additions & 44 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,26 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
# push:
# branches: [ main ]
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [ main ]
schedule:
- cron: '16 2 * * *'
- cron: '16 2 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# 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

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
languages: javascript

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

15 changes: 4 additions & 11 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,15 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:

- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}

- name: Auto-merge non-major version Dependabot PRs
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down
29 changes: 7 additions & 22 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: run-tests

on:
push:
Expand All @@ -10,44 +10,29 @@ jobs:
tests:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache dependencies
uses: actions/cache@v4
id: npm-cache
- uses: oven-sh/setup-bun@v1
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-npm-
bun-version: latest

- name: Install dependencies
run: npm install
run: bun install

- name: Run the tests with coverage
run: node_modules/.bin/jest tests -- --coverage --coverageReporters json
run: bun run test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage-final.json
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/build/*.js
!/build/test.js

/.cache
/.vscode
/node_modules
/dist
/dist-test*
/dist-temp
/coverage
/build

package-lock.json
yarn.lock
bun.lockb

generate-from-ray-php-src.sh
_ray_notes.txt

*.ignore

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/*
dist/*
build/*
dist-test*
*.yml
*.yaml
*.ignore
Expand Down
Loading
Loading