Skip to content
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
9dd9621
Release 5.0.0 with plugin API and IIFE entry refactor
jaspk06 Feb 10, 2026
d20a657
improve type hints in api
jaspk06 Feb 10, 2026
1bbf533
support multiple plugins
jaspk06 Feb 10, 2026
ea8e446
separate maps + autocomplete ui kit
jaspk06 Feb 10, 2026
f2859de
tsconfig.test.json, and update TypeScript and Jest config for new build
jaspk06 Feb 10, 2026
af0e6ed
cleanup type
jaspk06 Feb 10, 2026
9698d06
cleanup type
jaspk06 Feb 10, 2026
9124fe3
Update GitHub Actions to use Node 24 and latest actions
jaspk06 Feb 10, 2026
7a797e0
Update dev dependencies and exports, fix LICENSE typo, remove unused
jaspk06 Feb 11, 2026
0cbbc1e
upgrade rollup
jaspk06 Feb 11, 2026
e401551
upgrade mock xml http request
jaspk06 Feb 11, 2026
7aefb78
upgrade cspell
jaspk06 Feb 11, 2026
055247d
typecheck package.json
jaspk06 Feb 11, 2026
02f3149
rm unused
jaspk06 Feb 11, 2026
e68047c
plugins + plugins release actions
jaspk06 Feb 11, 2026
085ee7e
test fix
jaspk06 Feb 11, 2026
1f2cc9f
actually fix tests
jaspk06 Feb 11, 2026
2a773ad
bump version
jaspk06 Feb 11, 2026
90a8a74
revert version
jaspk06 Feb 11, 2026
0a76bbc
bump dev deps
jaspk06 Feb 11, 2026
850fc1a
rename
jaspk06 Feb 11, 2026
a1cdcc7
properly bundle css
jaspk06 Feb 11, 2026
150e29f
bump plugin versions
jaspk06 Feb 11, 2026
c38d770
plugin types
jaspk06 Feb 11, 2026
3ff3b1b
cleanup rollup and tsconfigs
jaspk06 Feb 11, 2026
e2f514e
bump versions
jaspk06 Feb 11, 2026
429c243
expose RadarError class publically
Luke-zhang-04 Feb 11, 2026
855a139
set Radar constant as global in IIFE CDN bundles
Luke-zhang-04 Feb 11, 2026
adf30a1
Merge branch 'luke/external-core-sdk' into jasonliu/sdk-split-spike
Luke-zhang-04 Feb 11, 2026
6dedba6
fix Radar.ui type union
jaspk06 Feb 11, 2026
d678f32
rename radar-map css
jaspk06 Feb 11, 2026
50f1521
version bump
jaspk06 Feb 11, 2026
f12e647
update agents + symlink claude
jaspk06 Feb 11, 2026
87f5ddc
ts rollup, fix build, track fraud param
jaspk06 Feb 12, 2026
f1bb14a
docs
jaspk06 Feb 12, 2026
370164f
fraud plugin docs
jaspk06 Feb 12, 2026
67073a0
revert demo pages
jaspk06 Feb 12, 2026
1b81460
update demo pages
jaspk06 Feb 12, 2026
ff075cd
tsconfig nits
jaspk06 Feb 12, 2026
da22606
update ci
jaspk06 Feb 12, 2026
cbfdf96
typecheck failure
jaspk06 Feb 12, 2026
b1f4ba4
try again
jaspk06 Feb 12, 2026
622f642
radar-map.css -> radar-maps.css
jaspk06 Feb 12, 2026
9eae8c4
rename + bump version
jaspk06 Feb 12, 2026
6ff4823
jsdoc
jaspk06 Feb 12, 2026
8efbbd6
http client v2
jaspk06 Feb 12, 2026
d8a6b8e
fix xhr jsdoc
jaspk06 Feb 12, 2026
e385f2f
bump version
jaspk06 Feb 12, 2026
ebee7c4
rm version jsdoc
jaspk06 Feb 12, 2026
8ea7495
bump versions
jaspk06 Feb 12, 2026
0bd09a3
lint
jaspk06 Feb 12, 2026
4fa1c28
fmt
jaspk06 Feb 12, 2026
fa44df6
jsdoc on plugins
jaspk06 Feb 12, 2026
ab643c8
updates AGENTS.md
jaspk06 Feb 12, 2026
44200ab
consitent type imports
jaspk06 Feb 12, 2026
40945fb
lint after build
jaspk06 Feb 12, 2026
297057c
update readmes
jaspk06 Feb 13, 2026
973700c
address codeql
jaspk06 Feb 13, 2026
1e3c0d5
fmt
jaspk06 Feb 13, 2026
9618325
check if error was thrown for tests that expect errors
Luke-zhang-04 Feb 17, 2026
f58c905
check for response.ok instead of only 200
Luke-zhang-04 Feb 17, 2026
c17c323
pass requestId to autocomplete API
Luke-zhang-04 Feb 17, 2026
1aff3d9
fix abort controller race condition
Luke-zhang-04 Feb 17, 2026
4c4c9a5
export all types from packages
Luke-zhang-04 Feb 17, 2026
b6ded6d
narrow types for errors with constants
Luke-zhang-04 Feb 17, 2026
5500c6a
handle parse failure in http
Luke-zhang-04 Feb 17, 2026
2092038
pass missing location value to trigger test error
Luke-zhang-04 Feb 17, 2026
0cbe80d
Merge branch 'luke/sdk-split-fixes' of github.com:radarlabs/radar-sdk…
Luke-zhang-04 Feb 17, 2026
e8b51d2
Config.getConfig return promise
jaspk06 Feb 17, 2026
ee39267
code comment
jaspk06 Feb 17, 2026
358b0bd
narrow types for errors with constants
Luke-zhang-04 Feb 17, 2026
d72c162
remove fraud params from trackOnce(), add startTrackingVerified() dem…
nickpatrick Feb 17, 2026
c355fdc
Merge branch 'jasonliu/sdk-split-spike' of github.com:radarlabs/radar…
jaspk06 Feb 17, 2026
2604622
fix race condition in autocomplete UI
Luke-zhang-04 Feb 17, 2026
6a206b5
Merge pull request #232 from radarlabs/luke/sdk-split-fixes
Luke-zhang-04 Feb 17, 2026
cfe5ce0
fix config return type, TrackBodyExtension type
jaspk06 Feb 17, 2026
4775cab
bump version
jaspk06 Feb 17, 2026
995570b
export errors, use Radar.VERSION rather than context
jaspk06 Feb 17, 2026
8199c72
bump versions
jaspk06 Feb 17, 2026
8d426b5
export all errors
Luke-zhang-04 Feb 17, 2026
a5e6e56
bump versions
jaspk06 Feb 17, 2026
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: 0 additions & 11 deletions .babelrc

This file was deleted.

97 changes: 91 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,101 @@
version: 2
version: 2.1

jobs:
build:
install:
docker:
- image: cimg/node:16.15
- image: cimg/node:24.13.1
steps:
- checkout
- restore_cache:
keys:
- npm-deps-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
name: Install dependencies
command: npm ci
- save_cache:
key: npm-deps-{{ checksum "package-lock.json" }}
paths:
- node_modules
- persist_to_workspace:
root: .
paths:
- .

typecheck:
docker:
- image: cimg/node:24.13.1
steps:
- attach_workspace:
at: .
- run:
name: Typecheck
command: npm run typecheck

build:
docker:
- image: cimg/node:24.13.1
steps:
- attach_workspace:
at: .
- run:
name: Build all packages
command: npm run build:all
- persist_to_workspace:
root: .
paths:
- dist
- packages/maps/dist
- packages/autocomplete/dist
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CircleCI workflow persists cdn/ directory from the build job (line 46-48 covers dist folders but not cdn/). If CDN builds are needed for subsequent jobs or artifacts, add cdn and packages/*/cdn to the persist_to_workspace paths list.

Suggested change
- packages/autocomplete/dist
- packages/autocomplete/dist
- cdn
- packages/maps/cdn
- packages/autocomplete/cdn

Copilot uses AI. Check for mistakes.

fmt:
docker:
- image: cimg/node:24.13.1
steps:
- attach_workspace:
at: .
- run:
name: Format check
command: npm run fmt:check

lint:
docker:
- image: cimg/node:24.13.1
steps:
- attach_workspace:
at: .
- run:
name: Lint
command: npm run lint

test:
docker:
- image: cimg/node:24.13.1
steps:
- attach_workspace:
at: .
- run:
name: Run Tests
name: Run tests
command: npm run test
- store_artifacts:
path: coverage
prefix: coverage
destination: coverage

workflows:
ci:
jobs:
- install
- build:
requires:
- install
- fmt:
requires:
- install
- test:
requires:
- install
- lint:
requires:
- build
- typecheck:
requires:
- build
13 changes: 13 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"permissions": {
"allow": [
"Bash(npm run build:*)",
"Bash(npm test:*)",
"Bash(npm run typecheck:*)",
"Bash(npm run build:maps:*)",
"Bash(npm run build:all:*)",
"Bash(npm run lint:*)",
"Bash(npm run fmt:check:*)"
]
}
}
30 changes: 0 additions & 30 deletions .eslintrc

This file was deleted.

76 changes: 38 additions & 38 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
Expand All @@ -13,40 +13,40 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
37 changes: 37 additions & 0 deletions .github/workflows/plugin-pre-release-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish beta plugin package to npmjs
on:
release:
types: [prereleased]
jobs:
build:
if: ${{ !startsWith(github.ref_name, 'v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Parse plugin tag
run: |
TAG="${{ github.ref_name }}"
PLUGIN_NAME="${TAG%-v*}"
PLUGIN_VERSION="${TAG#*-v}"
echo "PLUGIN_NAME=$PLUGIN_NAME" >> $GITHUB_ENV
echo "PLUGIN_VERSION=$PLUGIN_VERSION" >> $GITHUB_ENV
echo "Parsed tag: plugin=$PLUGIN_NAME version=$PLUGIN_VERSION"
- run: npm ci --force
- run: npm run build
- run: npm run build:${{ env.PLUGIN_NAME }}
- run: node scripts/check-plugin-tag.cjs ${{ env.PLUGIN_NAME }} ${{ env.PLUGIN_VERSION }} beta
- run: npm publish -w packages/${{ env.PLUGIN_NAME }} --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: js.radar.com
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: packages/${{ env.PLUGIN_NAME }}/cdn/
DEST_DIR: ${{ env.PLUGIN_NAME }}/v${{ env.PLUGIN_VERSION }}
49 changes: 49 additions & 0 deletions .github/workflows/plugin-release-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish plugin package to npmjs
on:
release:
types: [released]
jobs:
build:
if: ${{ !startsWith(github.ref_name, 'v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Parse plugin tag
run: |
TAG="${{ github.ref_name }}"
PLUGIN_NAME="${TAG%-v*}"
PLUGIN_VERSION="${TAG#*-v}"
MAJOR_VERSION="${PLUGIN_VERSION%%.*}"
echo "PLUGIN_NAME=$PLUGIN_NAME" >> $GITHUB_ENV
echo "PLUGIN_VERSION=$PLUGIN_VERSION" >> $GITHUB_ENV
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
echo "Parsed tag: plugin=$PLUGIN_NAME version=$PLUGIN_VERSION major=$MAJOR_VERSION"
- run: npm ci --force
- run: npm run build
- run: npm run build:${{ env.PLUGIN_NAME }}
- run: node scripts/check-plugin-tag.cjs ${{ env.PLUGIN_NAME }} ${{ env.PLUGIN_VERSION }} stable
- run: npm publish -w packages/${{ env.PLUGIN_NAME }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: js.radar.com
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: packages/${{ env.PLUGIN_NAME }}/cdn/
DEST_DIR: ${{ env.PLUGIN_NAME }}/v${{ env.PLUGIN_VERSION }}
- uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: js.radar.com
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: packages/${{ env.PLUGIN_NAME }}/cdn/
DEST_DIR: ${{ env.PLUGIN_NAME }}/${{ env.MAJOR_VERSION }}
9 changes: 5 additions & 4 deletions .github/workflows/radar-pre-release-actions.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Publish beta package to npmjs
on:
release:
types: [ prereleased ]
types: [prereleased]
jobs:
build:
if: startsWith(github.ref_name, 'v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v6
with:
node-version: '16.x'
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci --force
- run: npm run build
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/radar-release-actions.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Publish package to npmjs
on:
release:
types: [ released ]
types: [released]
jobs:
build:
if: startsWith(github.ref_name, 'v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v6
with:
node-version: '16.x'
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ npm-debug.log
dist/
cdn/
coverage/
packages/*/dist
packages/*/cdn
packages/*/node_modules
site/
.nyc_output/
.vscode/
Loading
Loading