Skip to content

Commit 849de8b

Browse files
authored
Merge pull request #63 from on-the-edge-cloud/copilot/support-nextjs-server-side
Add Next.js App Router support via `"use client"` and fix package.json entry points
2 parents d5d09ba + 47c05f5 commit 849de8b

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Nick Holmes
3+
Copyright (c) 2020 Tomás Novau
44

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

package-lock.json

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

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
{
22
"name": "react-circle-flags",
3-
"version": "0.0.27",
3+
"version": "0.0.28",
44
"description": "A React component with a collection of 300+ minimal circular SVG country flags",
55
"author": "Tomás Novau(tnovau@ontheedge.cloud)",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/on-the-edge-cloud/react-circle-flags.git"
1010
},
11-
"main": "dist/index.js",
12-
"module": "dist/index.modern.js",
13-
"source": "src/index.js",
11+
"main": "dist/index.umd.cjs",
12+
"module": "dist/index.js",
13+
"source": "src/index.jsx",
14+
"exports": {
15+
".": {
16+
"import": "./dist/index.js",
17+
"require": "./dist/index.umd.cjs",
18+
"default": "./dist/index.js"
19+
}
20+
},
1421
"engines": {
1522
"node": ">=10"
1623
},
@@ -68,7 +75,7 @@
6875
"react-component-library"
6976
],
7077
"volta": {
71-
"node": "24.14.1"
78+
"node": "24.15.0"
7279
},
7380
"dependencies": {
7481
"eslint-plugin-testing-library": "^7.16.2"

src/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import React from 'react'
23
import countries from './countries'
34
import languages from './languages'

0 commit comments

Comments
 (0)