Skip to content

Commit f4bfe94

Browse files
Squashed commit of the following:
commit 94f8b65 Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 20:27:59 2025 +0200 release commit fe79816 Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 20:02:27 2025 +0200 jest watch mode code commit 65fa3b8 Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 19:32:41 2025 +0200 jest src path commit 3ff352a Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 18:04:04 2025 +0200 mapping options commit 6d488fd Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 18:03:34 2025 +0200 usage examples commit 85d1685 Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 16:44:08 2025 +0200 support false values commit f4bbbc6 Author: alexander <Alexander@Kirtzel.com> Date: Tue Apr 1 16:31:30 2025 +0200 module exports commit 6daa007 Merge: d55ec09 63d6199 Author: alexander <alexander@elbwalker.com> Date: Tue Apr 1 13:49:51 2025 +0200 Merge pull request #506 from elbwalker/499-destinationpush-util 499 destinationpush util commit 63d6199 Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 31 18:58:05 2025 +0200 changesets commit 680b487 Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 31 18:58:00 2025 +0200 dlq commit 3dabe0c Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 31 16:39:19 2025 +0200 type sync commit aa9816e Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 31 13:15:41 2025 +0200 common createPush commit 236840a Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 19:36:28 2025 +0100 state version commit 6bb8bbf Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 19:03:08 2025 +0100 common createEventOrCommand commit 81dea9b Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 17:31:48 2025 +0100 slightly adapted commit 19f143a Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 17:13:29 2025 +0100 commonHandleCommand commit 3c50ca0 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 16:38:35 2025 +0100 package updated commit a493ffb Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 15:45:34 2025 +0100 push result commit dda8f59 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 15:26:31 2025 +0100 push result ok commit dd278a8 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 15:07:31 2025 +0100 direct pushes commit 853a710 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 15:04:40 2025 +0100 isCommand util commit 79d9c51 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 15:03:29 2025 +0100 common allowed check commit 2379e99 Author: alexander <Alexander@Kirtzel.com> Date: Thu Mar 27 14:10:34 2025 +0100 accurate consent handling commit f7ac8b6 Author: alexander <Alexander@Kirtzel.com> Date: Tue Mar 25 12:08:29 2025 +0100 addDestination with id commit e3d56af Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 24 19:07:26 2025 +0100 error handling commit c89dda3 Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 24 18:57:41 2025 +0100 async handling commit 93ba9c7 Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 24 18:57:25 2025 +0100 async support commit 758165c Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 24 16:22:56 2025 +0100 createSourceWalkerjs commit aaeccfd Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 24 16:06:36 2025 +0100 error pushes commit 6e6651b Author: alexander <Alexander@Kirtzel.com> Date: Sat Mar 22 01:42:09 2025 +0100 addDestination util commit 8a26058 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 19:42:22 2025 +0100 async mapping support commit 536a3b9 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 18:47:28 2025 +0100 createSourceWalkerjs commit 9a16a0b Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 18:44:11 2025 +0100 unified is commit c834989 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 18:37:20 2025 +0100 setConsent and on to utils commit 1560821 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 17:47:44 2025 +0100 pushToDestinations util commit b998888 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 17:46:27 2025 +0100 async tests commit b917e8a Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 17:27:30 2025 +0100 PartialConfig commit c6e22e2 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 21 14:45:01 2025 +0100 async push commit e9f30af Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 17 18:51:13 2025 +0100 Push types commit 4550a35 Author: alexander <Alexander@Kirtzel.com> Date: Mon Mar 17 18:05:08 2025 +0100 wip destinationInit to Utils commit c650ff6 Author: alexander <Alexander@Kirtzel.com> Date: Sun Mar 16 01:40:17 2025 +0100 destinationPush to utils and type updates commit d55ec09 Merge: f0ccee6 9642bca Author: alexander <alexander@elbwalker.com> Date: Sat Mar 15 00:22:54 2025 +0100 Merge pull request #498 from elbwalker/496-duplicate-session-starts-on-multiple-consent-updates 496 duplicate session starts on multiple consent updates commit 9642bca Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 17:13:06 2025 +0100 session consent config commit 15e8ecf Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 16:58:41 2025 +0100 multiple consent states commit 4a3482d Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 16:54:58 2025 +0100 shared consent handler commit 40db3ee Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 16:37:14 2025 +0100 easy types commit 5d0f98c Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 16:32:29 2025 +0100 wip session consent keys commit 149379d Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 14:55:54 2025 +0100 #496 commit 5ab3ad8 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 14:54:03 2025 +0100 group session check commit c62dfa7 Author: alexander <Alexander@Kirtzel.com> Date: Fri Mar 14 14:03:17 2025 +0100 prevent duplicate checks on same run
1 parent 8a494ee commit f4bfe94

File tree

191 files changed

+4353
-4026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+4353
-4026
lines changed

package-lock.json

Lines changed: 1836 additions & 1811 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,32 @@
1919
"test": "turbo run test --filter=!@elbwalker/website"
2020
},
2121
"devDependencies": {
22-
"@changesets/cli": "^2.27.6",
22+
"@changesets/cli": "^2.28.1",
2323
"@elbwalker/eslint": "*",
2424
"@elbwalker/jest": "*",
2525
"@elbwalker/tsconfig": "*",
2626
"@elbwalker/tsup": "*",
27-
"css-loader": "^7.1.2",
28-
"sass": "^1.85.1",
29-
"sass-loader": "^16.0.5",
30-
"style-loader": "^4.0.0",
31-
"turbo": "^2.0.5",
32-
"typescript": "^5.5.2"
27+
"turbo": "^2.4.4",
28+
"typescript": "^5.8.2"
3329
},
34-
"packageManager": "npm@9.6.7",
30+
"packageManager": "npm@11.2.0",
3531
"browserslist": [
3632
"> 0.2%",
3733
"not dead",
3834
"not ie < 11",
3935
"not op_mini all"
40-
]
36+
],
37+
"overrides": {
38+
"ajv": {
39+
"uri-js": "^4.4.1"
40+
},
41+
"jsdom": {
42+
"whatwg-url": "^14.2.0"
43+
},
44+
"tsup": {
45+
"source-map": {
46+
"whatwg-url": "^14.2.0"
47+
}
48+
}
49+
}
4150
}

packages/config/eslint/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
"./web": "./web.js"
1111
},
1212
"devDependencies": {
13-
"@eslint/js": "^9.20.0",
14-
"@next/eslint-plugin-next": "^15.1.6",
15-
"eslint": "^9.20.0",
16-
"eslint-config-prettier": "^10.0.1",
13+
"@eslint/js": "^9.23.0",
14+
"@next/eslint-plugin-next": "^15.2.4",
15+
"@typescript-eslint/eslint-plugin": "^8.28.0",
16+
"@typescript-eslint/parser": "^8.28.0",
17+
"eslint": "^9.23.0",
18+
"eslint-config-prettier": "^10.1.1",
1719
"eslint-plugin-jest": "^28.11.0",
1820
"eslint-plugin-only-warn": "^1.1.0",
1921
"eslint-plugin-react": "^7.37.4",
20-
"eslint-plugin-react-hooks": "^5.1.0",
21-
"eslint-plugin-turbo": "^2.4.0",
22-
"globals": "^15.14.0",
23-
"typescript": "^5.7.3",
24-
"typescript-eslint": "^8.23.0"
22+
"eslint-plugin-react-hooks": "^5.2.0",
23+
"eslint-plugin-turbo": "^2.4.4",
24+
"globals": "^16.0.0",
25+
"typescript": "^5.8.2"
2526
}
2627
}

packages/config/jest/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
"private": true,
55
"type": "module",
66
"license": "MIT",
7-
"main": "./index.js",
7+
"main": "./src/index.js",
88
"exports": {
9-
".": "./index.js",
10-
"./web.config": "./web.config.js",
11-
"./web.setup": "./web.setup.ts",
12-
"./node.config": "./node.config.js",
13-
"./node.setup": "./node.setup.ts"
9+
".": "./src/index.js",
10+
"./web.config": "./src/web.config.js",
11+
"./web.setup": "./src/web.setup.ts",
12+
"./node.config": "./src/node.config.js",
13+
"./node.setup": "./src/node.setup.ts"
1414
},
1515
"dependencies": {
16-
"@swc/core": "^1.4.0",
17-
"@swc/jest": "^0.2.36",
18-
"@testing-library/jest-dom": "^6.4.2",
16+
"@swc/core": "^1.11.13",
17+
"@swc/jest": "^0.2.37",
18+
"@testing-library/jest-dom": "^6.6.3",
1919
"@types/jest": "^29.5.14",
2020
"jest": "^29.7.0",
2121
"jest-environment-jsdom": "^29.7.0"
Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
import path from 'path';
22
import { fileURLToPath } from 'url';
33

4-
function getModuleMapper() {
5-
// Check if we're in watch mode (dev) or regular test mode
6-
const isWatchMode = process.argv.includes('--watchAll');
4+
const isWatchMode = process.argv.includes('--watchAll');
5+
const packagesDir = path.join(
6+
path.dirname(fileURLToPath(import.meta.url)),
7+
'..',
8+
'..',
9+
'..',
10+
'/',
11+
);
712

8-
const packagesDir = path.join(
9-
path.dirname(fileURLToPath(import.meta.url)),
10-
'..',
11-
'..',
12-
'/',
13-
);
13+
function getDirectory(dir) {
14+
return path.join(packagesDir, dir);
15+
}
1416

15-
function getDirectory(dir, useDist = true) {
16-
// For packages without dist (like jest and types), always use src
17-
// For other packages, use src in watch mode and dist otherwise
18-
const targetDir = useDist ? (isWatchMode ? 'src' : 'dist') : 'src';
19-
return path.join(packagesDir, dir, targetDir);
20-
}
17+
function getModuleMapper() {
18+
if (!isWatchMode) return {};
2119

2220
return {
23-
'^@elbwalker/jest$1': getDirectory('config/jest$1', false),
24-
'^@elbwalker/types': getDirectory('types', false),
25-
'^@elbwalker/utils$1': getDirectory('utils$1'),
26-
'^@elbwalker/walker.js': getDirectory('sources/walkerjs'),
21+
'^@elbwalker/utils$': getDirectory('utils/src/'),
22+
'^@elbwalker/utils/node$': getDirectory('utils/src/node/'),
23+
'^@elbwalker/utils/web$': getDirectory('utils/src/web/'),
24+
'^@elbwalker/walker.js$': getDirectory('sources/walkerjs'),
25+
'^@elbwalker/source-node$': getDirectory('sources/node'),
2726
'^@elbwalker/destination-web-(.*)$': getDirectory('destinations/web/$1'),
2827
'^@elbwalker/destination-node-(.*)$': getDirectory('destinations/node/$1'),
29-
'^@elbwalker/source-(.*)$': getDirectory('sources/$1'),
3028
};
3129
}
3230

@@ -51,7 +49,7 @@ const config = {
5149
transformIgnorePatterns: ['/node_modules/(?!(@elbwalker)/)'],
5250
testMatch: ['<rootDir>/**/*.test.(ts|tsx|js|jsx)'],
5351
moduleFileExtensions: ['js', 'ts', 'mjs'],
54-
rootDir: 'src',
52+
rootDir: '.',
5553
moduleDirectories: ['node_modules', 'src'],
5654
extensionsToTreatAsEsm: ['.ts', '.tsx'],
5755
moduleNameMapper: getModuleMapper(),

packages/config/tsconfig/base.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@
1919
"allowJs": true,
2020
"resolveJsonModule": true,
2121
"sourceMap": true,
22-
"baseUrl": ".",
23-
"paths": {
24-
"@elbwalker/*": ["packages/*/src"],
25-
"@elbwalker/destination-web-*": ["packages/destinations/web/*/src"],
26-
"@elbwalker/destination-node-*": ["packages/destinations/node/*/src"],
27-
"@elbwalker/source-*": ["packages/sources/*/src"],
28-
"@elbwalker/walker.js": ["packages/sources/walkerjs"]
29-
}
22+
"outDir": "dist",
23+
"baseUrl": "."
3024
},
3125
"exclude": ["node_modules", "**/dist", "**/*.d.ts"]
3226
}

0 commit comments

Comments
 (0)