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
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

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

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v6

- uses: actions/setup-node@v6
with:
node-version: '24'

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

- name: Lint
run: pnpm run lint

- name: Build
run: pnpm run build

- name: Test (Node)
run: pnpm run test-node

- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps chromium

- name: Test (Browser)
run: pnpm run test-browser
14 changes: 0 additions & 14 deletions .github/workflows/issues-to-project.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/main.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # required for npm provenance
steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v6

- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'

- name: Update npm for trusted publishing
run: npm install -g npm@latest # trusted publishing needs npm >= 11.5.1

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

- name: Build
run: pnpm run build

- name: Publish to npm
run: npm publish
94 changes: 79 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,81 @@
*.sw[op]
*~
.cproject
.project
.c9
*.sublime-project
*.sublime-workspace
.DS_Store
.settings
coverage
node_modules
v8.log
.c9revisions
npm-debug.log
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

package-lock.json
.nyc_output
yarn.lock

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

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
/.nyc_output
/coverage


# Dependency directories
node_modules/
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# TernJS port file
.tern-port

# Editor files
*~
*.sw[nop]
/.vscode

# Output
dist

# Playwright
playwright-report/
test-results/

# Vite
.vite/

# MacOS
.DS_Store
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# did-io ChangeLog

## 2.0.0 -

### Changed
- Forked from `@digitalbazaar/did-io@1.0.0`.
- **BREAKING**: Convert to TypeScript.
- **BREAKING**: Update to latest `lru-cache` package, deprecate `maxAge` option
(uses `ttl` instead).

### Added
- Import `generate()` and a pass-through `cache` param from `@digitalbazaar/did-io@2.0.0`.

## 1.0.1 - 2021-10-01

### Changed
Expand Down
Loading