Skip to content

Commit 3716320

Browse files
committed
1.0 release rewrite of package
1 parent 1b87626 commit 3716320

File tree

129 files changed

+5273
-3165
lines changed

Some content is hidden

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

129 files changed

+5273
-3165
lines changed

.github/workflows/CI.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- master
63
push:
7-
branches:
8-
- master
9-
tags: '*'
4+
branches: [main, master]
5+
tags: ["*"]
6+
pull_request:
107
jobs:
118
test:
129
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,32 +12,39 @@ jobs:
1512
fail-fast: false
1613
matrix:
1714
version:
18-
- '1.0'
19-
- '1'
20-
- 'nightly'
15+
- '1' # automatically expands to the latest stable 1.x release of Julia
16+
- 'min'
17+
- 'pre'
2118
os:
2219
- ubuntu-latest
20+
- windows-latest
2321
arch:
2422
- x64
2523
include:
26-
- version: '1'
27-
os: ubuntu-latest
28-
arch: x86
29-
- version: '1'
30-
os: windows-latest
31-
arch: x64
32-
- version: '1'
33-
os: macos-latest
34-
arch: x64
24+
- os: macOS-latest
25+
arch: aarch64
26+
version: 1
3527
steps:
3628
- uses: actions/checkout@v4
3729
- uses: julia-actions/setup-julia@v2
3830
with:
3931
version: ${{ matrix.version }}
4032
arch: ${{ matrix.arch }}
33+
- uses: julia-actions/cache@v2
4134
- uses: julia-actions/julia-buildpkg@v1
4235
- uses: julia-actions/julia-runtest@v1
4336
- uses: julia-actions/julia-processcoverage@v1
44-
- uses: codecov/codecov-action@v3
37+
- uses: codecov/codecov-action@v5
4538
with:
46-
file: lcov.info
39+
files: lcov.info
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
docs:
42+
name: Documentation
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: julia-actions/julia-buildpkg@latest
47+
- uses: julia-actions/julia-docdeploy@latest
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/CompatHelper.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
CompatHelper:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
19+
with:
20+
version: '1'
21+
# arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
steps:
1212
- uses: JuliaRegistries/TagBot@v1
1313
with:
14-
token: ${{ secrets.GITHUB_TOKEN }}
14+
ssh: ${{ secrets.DOCUMENTER_KEY }}
15+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
*.mem
33
data/*.json
44
Manifest.toml
5+
test/jsonchecker/**
6+
test/JSONTestSuite/**

LICENSE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
The Julia JSON package is licensed under the MIT Expat License:
22

3-
> Copyright (c) 2002: JSON.org, 2012–2016: Avik Sengupta, Stefan Karpinski,
3+
> Copyright (c) 2002: JSON.org, 2012–2025: Jacob Quinn, Avik Sengupta, Stefan Karpinski,
44
> David de Laat, Dirk Gadsen, Milo Yip and other contributors
55
> https://github.com/JuliaLang/JSON.jl/contributors
6-
> and https://github.com/miloyip/nativejson-benchmark/contributors
76
>
87
> Permission is hereby granted, free of charge, to any person obtaining
98
> a copy of this software and associated documentation files (the

Project.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
name = "JSON"
22
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
3-
version = "0.21.4"
3+
version = "1.0.0"
44

55
[deps]
66
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
7+
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
78
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
89
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
10+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
11+
StructUtils = "ec057cc2-7a8d-4b58-b3b3-92acb9f63b42"
12+
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
913
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
1014

11-
[extras]
12-
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
13-
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
14-
FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
15-
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
16-
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
17-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
18-
1915
[compat]
20-
julia = "0.7, 1.0"
2116
Parsers = "1, 2"
17+
PrecompileTools = "1"
18+
StructUtils = "2"
19+
julia = "1.9"
20+
21+
[extras]
22+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
23+
Tar = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
2224

2325
[targets]
24-
test = ["DataStructures", "Distributed", "FixedPointNumbers", "OffsetArrays", "Sockets", "Test"]
26+
test = ["Tar", "Test"]

0 commit comments

Comments
 (0)