Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
be73aae
chore: - Migrated js to typescript
May 16, 2025
f076aca
chore: - Updated to support better build types.
May 20, 2025
d993c76
chore: - Updated to rimraf@5.0.1 for node18 compatibility
May 20, 2025
ac9ce17
chore: - Updated to alpha package version.
May 20, 2025
4fb4184
Merge pull request #31 from adobe/chore/ts-port
kmaschi May 20, 2025
882c872
chore: - Updated tests to ensure expected payload passed into hook fu…
May 20, 2025
ee37933
Merge pull request #32 from adobe/chore/ts-port
kmaschi May 20, 2025
b6eda02
chore: - Updated readme.
May 20, 2025
abe1959
chore: - Updated local/remote usage in readme.
May 20, 2025
1e8d3c9
chore: - Updated index to export useful types for development.
May 20, 2025
c578f28
chore: - Enhanced README with detailed usage instructions and notes o…
May 22, 2025
252b625
chore: - Moved export types.
Jun 3, 2025
ebe2777
fix: cext-1411: hooks cjs fix
dani97 Jun 24, 2025
84766fe
fix: cext-1441: dyn import
dani97 Jun 24, 2025
be3e0cb
chore: cext-0000: lint error
dani97 Jun 24, 2025
8d871c2
chore: cext-0000: fix typo
dani97 Jun 24, 2025
f1f2a72
feat: first commit for afterAll implementation
nvyasadobe Jun 24, 2025
451949c
chore: cext-0000: fix tests
dani97 Jun 24, 2025
fc30dcc
feat: WIP: after hook implementation local hook and remote hook
nvyasadobe Jul 2, 2025
75ed10d
feat: added test coverage for afterAll
nvyasadobe Jul 2, 2025
4370be7
chore: bump alpha version
nvyasadobe Jul 9, 2025
35e8c8c
chore: exported error type from graphQl
nvyasadobe Jul 10, 2025
eee4451
feat: cext-1441: after before source hooks
dani97 Jul 10, 2025
0765f2e
chore: address some of review comments
nvyasadobe Jul 10, 2025
eec8ab6
chore: address review comments: moved logic of afterAll and beforeAll…
nvyasadobe Jul 11, 2025
7505e3c
chore: address review comments removed error codes seperately
nvyasadobe Jul 11, 2025
6393795
chore: updated tests
nvyasadobe Jul 11, 2025
2102e3f
chore: updated package.json to relase alpha.1
nvyasadobe Jul 14, 2025
2589907
chore: minor correction
nvyasadobe Jul 14, 2025
3d967b8
chore: did some refractor and updated error logic moved to common utils
nvyasadobe Jul 14, 2025
6de41c6
chore: created hookResolver to handle commanality between afterAll an…
nvyasadobe Jul 15, 2025
e13de59
chore: cext-1441: code improvements linters types fix
dani97 Jul 16, 2025
9705c58
chore: cext-1441: types fix
dani97 Jul 16, 2025
c3780aa
Merge pull request #34 from adobe/afterall-hooks-implementation
nvyasadobe Jul 17, 2025
41c16ad
tests: cext-1441: add tests
dani97 Jul 17, 2025
e20ef04
Merge branch 'epic/ts-migration' of github.com:adobe/plugin-hooks int…
dani97 Jul 17, 2025
50c31d3
tests: cext-1441: fix tests
dani97 Jul 17, 2025
3b77bba
chore: added dynamicImport.js to handle the commonJs case as well and…
nvyasadobe Jul 18, 2025
0a02893
Merge pull request #37 from adobe/fix-syntaxError-dynamicimport
nvyasadobe Jul 18, 2025
c8c9fa7
fix: cext-1441: update After Response playload interface
dani97 Jul 21, 2025
65deb5c
fix: cext-1441: update version
dani97 Jul 21, 2025
6a92e42
Merge branch 'epic/ts-migration' of github.com:adobe/plugin-hooks int…
dani97 Jul 21, 2025
2fa7f57
fix: cext-1441: hooks
dani97 Jul 22, 2025
97ad716
chore: cext-1441: update version
dani97 Jul 22, 2025
52f4b29
Merge pull request #35 from adobe/cext-1441-after-before-source-hooks
dani97 Jul 22, 2025
4bcc647
fix: cext-1441: fix source confusion issue
dani97 Jul 24, 2025
b0b2326
fix: cext-1441: update package
dani97 Jul 24, 2025
947a986
Merge pull request #38 from adobe/cext-1441-after-before-source-hooks
dani97 Jul 24, 2025
3b7859e
chore: cext-1441: release stable version
dani97 Jul 28, 2025
9846cd7
feat(context-state): CEXT-4829 - Extracted hook function import logic…
Jul 29, 2025
d9c20eb
feat(context-state): CEXT-4829 - Extracted hook function import logic…
Jul 29, 2025
b981e61
feat(context-state): CEXT-4829 - Added extensions to beforeSource/aft…
Jul 30, 2025
21b3aea
feat(context-state): CEXT-4829 - Fixed linting errors.
Jul 30, 2025
df2ea98
Merge pull request #39 from adobe/cext-1441-after-before-source-hooks
kmaschi Jul 30, 2025
ac22d04
feat(context-state): CEXT-4829 - Updated package version.
Jul 30, 2025
faef8a9
Merge branch 'epic/ts-migration' into feature/CEXT-4829-context-state
kmaschi Jul 30, 2025
67d1738
chore(plugin-hooks-fixes): - Updated payloads to have more consistent…
Jul 31, 2025
6419606
chore(plugin-hooks-fixes): - Updated error handling in source hooks.
Aug 1, 2025
6a69109
chore(plugin-hooks-v2): - Removed unnecessary functions.
Aug 1, 2025
5fe37b9
chore(plugin-hooks-fixes): - Fixed tests.
Aug 1, 2025
b1e8bd6
chore(plugin-hooks-fixes): - Removed jest.
Aug 1, 2025
1277a63
chore(plugin-hooks-fixes): - Updated to new alpha version
Aug 1, 2025
42838c8
Merge pull request #40 from adobe/feature/CEXT-4829-context-state
kmaschi Aug 1, 2025
bbf8498
Merge pull request #41 from adobe/chore/plugin-hooks-fixes
kmaschi Aug 3, 2025
8284e3d
chore: WIP: afterSource hook fix for remote hook
nvyasadobe Aug 4, 2025
4055476
feat: fixed the beforeSource remote hooks
nvyasadobe Aug 5, 2025
f6a4250
feat: minor correction and updated headers merge logic
nvyasadobe Aug 5, 2025
335385e
feat: added extensions support for afterAll
nvyasadobe Aug 5, 2025
37f9fd3
chore(remote-fix) - Removed unnecessary executors since invocated dif…
Aug 5, 2025
c5e26c1
Merge pull request #42 from adobe/chore/sourcehooks-remote-fix
kmaschi Aug 5, 2025
c8a336f
feat(plugin-hooks): - Bumped minor version.
Aug 5, 2025
45bc430
Updating readme. Excluding examples
brasewel Aug 6, 2025
0e2c9c5
Merge pull request #43 from adobe/chore/update-readme
brasewel Aug 6, 2025
c66db1c
Merge pull request #33 from adobe/epic/ts-migration
kmaschi Aug 6, 2025
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
20 changes: 15 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint/eslint-plugin", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["dist/", "node_modules/", "examples/"],
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
"es2021": true,
"node": true
},
"rules": {
"no-unused-vars": "off",
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout source
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Install
run: yarn install --frozen-lockfile
- name: Lint
run: npm run lint
run: yarn lint
- name: Test
run: npm test
run: yarn test:ci
- name: Build
run: yarn build
13 changes: 7 additions & 6 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: NPM install
- name: Install
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint
- name: Test
run: yarn test:ci
- name: Build
run: yarn build
- name: Get version from package.json
id: get_version
run: |
version=$(jq -r '.version' package.json)
echo "version=$version" >> $GITHUB_OUTPUT
echo "Read version $version from package.json"

- name: Verify version corresponds to branch
id: verify_version
run: |
Expand Down Expand Up @@ -61,7 +63,6 @@ jobs:

echo "version_tag=$version_tag" >> $GITHUB_OUTPUT;
echo "Will publish version ${{ steps.get_version.outputs.version }} as $version_tag"

- name: Publish to npm
if: ${{ steps.verify_version.outputs.version_tag != '' }}
uses: JS-DevTools/npm-publish@v1
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Ignore node_modules directory
node_modules

# Ignore build output directory
dist

# Ignore test coverage
coverage
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ yarn.lock

# Exclude .npmrc file
.npmrc

# Exclude types
dist/*
!dist/index.d.ts
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": true,
"singleQuote": true,
"semi": true,
"quoteProps": "consistent",
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "lf"
}
Loading
Loading