Skip to content
Closed
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
22 changes: 0 additions & 22 deletions .changeset/add-guildmember-move-method.md

This file was deleted.

17 changes: 17 additions & 0 deletions .changeset/community-bootstrap-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@erinjs/builders': patch
'@erinjs/collection': patch
'@erinjs/core': patch
'@erinjs/rest': patch
'@erinjs/types': patch
'@erinjs/util': patch
'@erinjs/voice': patch
'@erinjs/ws': patch
---

chore(release): bootstrap @erinjs prerelease packages

Initial prerelease for the @erinjs package line.

Publishes the current SDK packages under @erinjs with the community prerelease
tag. Runtime APIs and package exports stay the same.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
Expand Down
13 changes: 0 additions & 13 deletions .changeset/fix-ack-backpressure-4013.md

This file was deleted.

17 changes: 17 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"mode": "pre",
"tag": "community",
"initialVersions": {
"@erinjs/builders": "1.2.4",
"@erinjs/collection": "1.2.4",
"@erinjs/core": "1.2.4",
"@erinjs/docgen": "1.2.4",
"@erinjs/docs": "1.2.4",
"@erinjs/rest": "1.2.4",
"@erinjs/types": "1.2.4",
"@erinjs/util": "1.2.4",
"@erinjs/voice": "1.2.4",
"@erinjs/ws": "1.2.4"
},
"changesets": []
}
5 changes: 0 additions & 5 deletions .changeset/six-icons-occur.md

This file was deleted.

12 changes: 7 additions & 5 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# These funding links will display a "Sponsor" button on your GitHub repo.
# Add your GitHub Sponsors username, or other platforms as needed.
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository

github: [blstmo]
custom:
[
'https://paypal.me/vesaber',
'https://ko-fi.com/dogbonewish',
'https://ko-fi.com/forgetfulskybro',
]
ko_fi: jbcrn
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ What you expected to happen.

## Environment

- @fluxerjs/core version:
- @erinjs/core version:
- Node.js version:
- OS:

Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/autoapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto Approve

on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
debug:
runs-on: ubuntu-latest
steps:
- run: echo "Author association: ${{ github.event.pull_request.author_association }}"

auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER'

steps:
- uses: hmarr/auto-approve-action@v4
continue-on-error: true
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -55,6 +56,7 @@ jobs:

- name: Comment on fork PR about format fixes
if: ${{ steps.format_check.outputs.has_changes == 'true' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
continue-on-error: true
uses: actions/github-script@v7
with:
script: |
Expand Down Expand Up @@ -87,7 +89,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}

- uses: pnpm/action-setup@v4

Expand All @@ -111,7 +113,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}

- uses: pnpm/action-setup@v4

Expand Down Expand Up @@ -141,7 +143,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}

- uses: pnpm/action-setup@v4

Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy docs to blstmo-abandoned-us-for-the-milk/docs

on:
push:
branches: [main]
paths:
- 'apps/docs-vitepress/**'
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.DOCS_APP_ID }}
private-key: ${{ secrets.DOCS_APP_PRIVATE_KEY }}
owner: blstmo-abandoned-us-for-the-milk
repositories: docs

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Generate API docs
working-directory: apps/docs-vitepress
run: node --import tsx/esm scripts/generate-api.ts api-data/latest/main.json

- name: Build VitePress
working-directory: apps/docs-vitepress
run: npx vitepress build
env:
VITEPRESS_BASE: /docs/

- name: Deploy to docs gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ steps.app-token.outputs.token }}
external_repository: blstmo-abandoned-us-for-the-milk/docs
publish_branch: gh-pages
publish_dir: apps/docs-vitepress/.vitepress/dist
40 changes: 0 additions & 40 deletions .github/workflows/docs-deploy.yml

This file was deleted.

24 changes: 16 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Publish
name: Release

on:
push:
tags:
- 'v*'
branches: [main]
workflow_dispatch:

jobs:
publish:
release:
if: ${{ vars.ERINJS_RELEASE_ENABLED == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand All @@ -24,12 +25,19 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install --ignore-scripts
run: pnpm install --frozen-lockfile --ignore-scripts

- name: Test (all)
run: pnpm run test:all

- name: Publish to npm
run: pnpm run publish:packages
- name: Create release PR or publish
uses: changesets/action@v1
with:
version: pnpm exec changeset version
publish: pnpm exec changeset publish
commit: 'chore: version packages'
title: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Prefer workspace packages; avoid fetching @fluxerjs/* from registry during install/publish
# Prefer workspace packages; avoid fetching community SDK packages from the registry during local install/publish
@erinjs:registry=https://registry.npmjs.org/
link-workspace-packages=true
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to Fluxer SDK
# Contributing to erin.js SDK

Thank you for your interest in contributing!

Expand All @@ -7,7 +7,7 @@ Thank you for your interest in contributing!
1. Clone the repository and install dependencies:

```bash
git clone https://github.com/fluxerjs/core.git
git clone https://github.com/blstmo-abandoned-us-for-the-milk/core.git
cd core
pnpm install
```
Expand Down
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# @fluxerjs/core
# @erinjs/core

[![CI](https://github.com/fluxerjs/core/actions/workflows/ci.yml/badge.svg)](https://github.com/fluxerjs/core/actions/workflows/ci.yml)
[![CodeQL](https://github.com/fluxerjs/core/actions/workflows/codeql.yml/badge.svg)](https://github.com/fluxerjs/core/actions/workflows/codeql.yml)
[![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/fluxerjs/core?utm_source=oss&utm_medium=github&utm_campaign=fluxerjs%2Fcore&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)](https://coderabbit.ai)
[![npm version](https://img.shields.io/npm/v/@fluxerjs/core.svg)](https://www.npmjs.com/package/@fluxerjs/core)
[![CI](https://github.com/blstmo-abandoned-us-for-the-milk/core/actions/workflows/ci.yml/badge.svg)](https://github.com/blstmo-abandoned-us-for-the-milk/core/actions/workflows/ci.yml)
[![CodeQL](https://github.com/blstmo-abandoned-us-for-the-milk/core/actions/workflows/codeql.yml/badge.svg)](https://github.com/blstmo-abandoned-us-for-the-milk/core/actions/workflows/codeql.yml)
[![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/blstmo-abandoned-us-for-the-milk/core?utm_source=oss&utm_medium=github&utm_campaign=blstmo-abandoned-us-for-the-milk%2Fcore&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)](https://coderabbit.ai)
[![npm version](https://img.shields.io/npm/v/@erinjs/core.svg)](https://www.npmjs.com/package/@erinjs/core)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

SDK for building bots on [Fluxer](https://fluxer.app).
erin.js is the SDK for building bots on [Fluxer](https://fluxer.app).

## Install

```bash
npm install @fluxerjs/core
npm install @erinjs/core
```

## Usage

```javascript
import { Client, Events } from '@fluxerjs/core';
import { Client, Events } from '@erinjs/core';

const client = new Client({ intents: 0 });

Expand All @@ -35,10 +35,12 @@ See [`examples/ping-bot.js`](./examples/ping-bot.js) for voice, embeds, and more

The docs site is a custom Vue app that pulls API docs from the SDK via a custom docgen (TypeScript Compiler API).

Public docs: https://erin.js.org

**From the repo root:**

```bash
# Dev server — http://localhost:3333
# Local dev server — http://localhost:3333
pnpm run docs:dev

# Generate docs JSON + build the site
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ If you discover a security vulnerability, please report it responsibly:
3. Include a description of the vulnerability and steps to reproduce
4. Allow time for a fix before public disclosure

We will acknowledge your report and work on a fix. Thank you for helping keep the Fluxer SDK secure.
We will acknowledge your report and work on a fix. Thank you for helping keep the erin.js SDK secure.
Loading
Loading