Skip to content

Commit

Permalink
!refactor: ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Feb 15, 2024
1 parent b729984 commit 6a2cfd5
Show file tree
Hide file tree
Showing 111 changed files with 14,975 additions and 8,619 deletions.
7 changes: 2 additions & 5 deletions .changeset/cool-donkeys-jam.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
Convert to ESM-only. Other changes include:

1. `isomorphic-fetch` and `isomorhpic-form-data` are removed as dependencies. They should be loaded by consumer s if necessary
2. Removed `./web` and `./node` modules
```diff
-import { Hydra } from 'alcaeus/web'
+import { Hydra } from 'alcaeus'
```
2. Removed `./web` and `./node` modules. Instead, consumers must use `alcaeus/Factory.js` module with an appropriate RDF/JS environment
3. Extracted packages `alcaeus-model` and `alcaeus-core`
6 changes: 6 additions & 0 deletions .changeset/proud-islands-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"alcaeus-model": major
"alcaeus-core": major
---

First release. Code extracted from `alceaus` v2
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"extends": [
"@tpluscode"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"mocha": true
},
"rules": {
"@typescript-eslint/no-explicit-any": "off"
},
"overrides": [
{
"files": [
"test/**"
"**/test/**"
],
"rules": {
"no-unused-expressions": "off",
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: yarn
- run: yarn test
- run: npm ci
- run: npm test
- name: Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -20,12 +20,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: yarn
- run: yarn build --noEmit
- run: npx wsrun -c build --noEmit

lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Tomasz Pluskiewicz
Copyright (c) 2024 Tomasz Pluskiewicz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 6a2cfd5

Please sign in to comment.