Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .agents/skills/asp-branch

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion .agents/skills/asp-collections-release

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Fetch `origin/main` and check the remote for the exact `refs/tags/v<version>` re

## Prepare the release PR

1. Start from a clean checkout. Verify that the requested version is greater than the version in `origin/main:package.json` using SemVer precedence. Create a release branch from `origin/main` using the repository branch naming guidance.
2. Set the version in the root `package.json`. In `CHANGELOG.md`, keep `## [Unreleased]` and add a nonempty `## [<version>] — YYYY-MM-DD` section. Move applicable Unreleased notes there and fill gaps from the commits since the preceding release tag. Link each entry to its corresponding merged PRs when available.
3. Check that the manifest and changelog versions match, run `git diff --check`, and run `dotnet test .github/tests/Aspid.Collections.Tests.csproj --configuration Release`. Stop on a failed check and report the cause.
1. Start from a clean checkout. Verify that the requested version is greater than the version in `origin/main:Aspid.Collections/Packages/tech.aspid.collections/package.json` using SemVer precedence. Create a release branch from `origin/main` using the repository branch naming guidance.
2. Set the version in `Aspid.Collections/Packages/tech.aspid.collections/package.json`. In `CHANGELOG.md`, keep `## [Unreleased]` and add a nonempty `## [<version>] — YYYY-MM-DD` section. Move applicable Unreleased notes there and fill gaps from the commits since the preceding release tag. Link each entry to its corresponding merged PRs when available.
3. Check that the manifest and changelog versions match, run `git diff --check`, and run `dotnet test DotnetTests/Aspid.Collections.Tests.csproj --configuration Release`. Stop on a failed check and report the cause.
4. Commit the release changes with `asp-commit` and open a draft PR into `main` with `asp-pr`. Report the PR link, selected channel, and checks. Wait for the release PR to merge before proceeding.

## Publish the tag
Expand Down
1 change: 0 additions & 1 deletion .agents/skills/asp-commit

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion .agents/skills/asp-pr

This file was deleted.

File renamed without changes.
3 changes: 1 addition & 2 deletions .claude/asp-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

The bot review rules with the verdict format are in `.github/claude-review.md`.

Logic paths: `Runtime/`, `Editor/`, `Tests/`, `Samples~/`, `package.json`, `.github/workflows/`,
`.github/claude-review.md`.
Logic paths: `Aspid.Collections/`, `DotnetTests/`, `.github/workflows/`, and `.github/claude-review.md`.

Other paths are text: `README.md`, `README_RU.md`, `CHANGELOG.md`, `CLAUDE.md`, `Documentation/`, `.claude/`, `.agents/`.
A fix there needs no re-review.
1 change: 1 addition & 0 deletions .claude/skills/asp-branch
1 change: 1 addition & 0 deletions .claude/skills/asp-collections-release
1 change: 1 addition & 0 deletions .claude/skills/asp-commit
1 change: 1 addition & 0 deletions .claude/skills/asp-pr
4 changes: 2 additions & 2 deletions .github/claude-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Check, in this order:
- a renamed or moved file keeps its `.meta` GUID;
- a renamed serialized field gets `[FormerlySerializedAs]`, a renamed or moved type stored through
`[SerializeReference]` gets `[MovedFrom]`: without them user projects lose saved data;
- no C# feature or .NET API that Unity 2021.3 lacks (`package.json` minimum);
- no `UnityEngine` or `UnityEditor` reference in `Runtime/`: it sets `noEngineReferences: true`.
- no C# feature or .NET API that Unity 2021.3 lacks (the embedded package manifest minimum);
- no `UnityEngine` or `UnityEditor` reference in the embedded package's `Runtime/`: it sets `noEngineReferences: true`.
3. Public API: XML docs on each new or changed member, a CHANGELOG entry that describes the change as a user sees it,
and `README.md` and `README_RU.md` updated when they describe the API.
4. Workflows: actions pinned to a full commit SHA, only the permissions a job uses, and no `pull_request_target` job
Expand Down
3 changes: 0 additions & 3 deletions .github/tests/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 15 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

env:
PACKAGE_PATH: .
PACKAGE_PATH: Aspid.Collections/Packages/tech.aspid.collections
CHANGELOG_PATH: CHANGELOG.md

jobs:
Expand Down Expand Up @@ -164,25 +164,26 @@ jobs:
exit 1
fi

# Stage only Unity package paths from the tagged source tree.
# Start the release tree at the embedded package root.
UPM_INDEX=$(mktemp)
trap 'rm -f "$UPM_INDEX"' EXIT
export GIT_INDEX_FILE="$UPM_INDEX"
git read-tree --empty
git ls-tree -rz "$TAG" -- \
package.json package.json.meta LICENSE \
CHANGELOG.md CHANGELOG.md.meta README.md README.md.meta README_RU.md README_RU.md.meta \
Runtime Runtime.meta Editor Editor.meta Tests Tests.meta "Samples~" \
| git update-index -z --index-info
LICENSE_META_BLOB=$(git rev-parse "$TAG:.github/upm/LICENSE.meta")
git update-index --add --cacheinfo "100644,$LICENSE_META_BLOB,LICENSE.meta"
# Keep README images working after their source directory is removed.
README_IMAGE_URL="https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/${TAG}/Documentation~/Images/"
git read-tree "$TAG:$PACKAGE_PATH"
git ls-tree -rz "$TAG" -- "$CHANGELOG_PATH" LICENSE | git update-index -z --index-info
for FILE in CHANGELOG.md LICENSE README.md README_RU.md; do
META_BLOB=$(git rev-parse "$TAG:.github/upm/$FILE.meta")
git update-index --add --cacheinfo "100644,$META_BLOB,$FILE.meta"
done

# Make code links package-relative and load images from the source tag.
PACKAGE_PATH_PATTERN="${PACKAGE_PATH//./\\.}"
README_IMAGE_URL="https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/${TAG}/Documentation/Images/"
for README_FILE in README.md README_RU.md; do
README_BLOB=$(git show "$TAG:$README_FILE" \
| sed -E "s|([\"(])Documentation~/Images/|\1${README_IMAGE_URL}|g" \
| sed -E -e "s|([\"(])${PACKAGE_PATH_PATTERN}/|\1|g" \
-e "s|([\"(])Documentation/Images/|\1${README_IMAGE_URL}|g" \
| git hash-object -w --stdin)
git update-index --cacheinfo "100644,$README_BLOB,$README_FILE"
git update-index --add --cacheinfo "100644,$README_BLOB,$README_FILE"
done
TREE=$(git write-tree)
unset GIT_INDEX_FILE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
with:
dotnet-version: '10.0.x'
dotnet-quality: ga
- run: dotnet test .github/tests/Aspid.Collections.Tests.csproj --configuration Release
- run: dotnet test DotnetTests/Aspid.Collections.Tests.csproj --configuration Release
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
.vscode/
/LICENSE.meta

# .NET test build output.
/DotnetTests/**/bin/
/DotnetTests/**/obj/
/DotnetTests/**/TestResults/

# Override the global "*~" rule that hides Unity's Samples~ folder.
!Samples~/
55 changes: 55 additions & 0 deletions Aspid.Collections/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Unity-generated folders.
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/

# Profiler and memory captures can be large and may contain sensitive data.
/[Mm]emoryCaptures/
/[Pp]rofilerCaptures/
/[Rr]ecordings/

# Package samples imported into the dev project via Package Manager.
# Source of truth is the package's `Samples~/`; the imported copy is local-only.
/[Aa]ssets/[Ss]amples/
/[Aa]ssets/[Ss]amples.meta

# Local Project Auditor defaults.
/[Pp]roject[Ss]ettings/ProjectAuditorSettings.asset

# Autogenerated JetBrains Rider plugin.
/[Aa]ssets/Plugins/Editor/JetBrains*

# Unity-generated meta files for debug symbols.
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Solution and project files generated by the IDE integration.
*.csproj
*.unityproj
*.sln
*.slnx

# IDE state.
.vs/
.vsconfig
*.suo
*.user
*.userprefs
*.opendb
*.VC.db

# Build and debug output.
ExportedObj/
*.pidb
*.pdb
*.mdb
*.tmp
*.unitypackage

# Written by the Editor on a crash.
sysinfo.txt
Empty file.
9 changes: 9 additions & 0 deletions Aspid.Collections/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"dependencies": {
"com.unity.test-framework": "1.8.0",
"com.unity.test-framework.performance": "6.6.0"
},
"testables": [
"tech.aspid.collections"
]
}
47 changes: 47 additions & 0 deletions Aspid.Collections/Packages/packages-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"dependencies": {
"com.unity.ext.nunit": {
"version": "2.1.0",
"depth": 1,
"source": "builtin",
"dependencies": {}
},
"com.unity.test-framework": {
"version": "1.8.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.ext.nunit": "2.1.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}
},
"com.unity.test-framework.performance": {
"version": "6.6.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.test-framework": "1.1.33",
"com.unity.modules.jsonserialize": "1.0.0"
}
},
"tech.aspid.collections": {
"version": "file:tech.aspid.collections",
"depth": 0,
"source": "embedded",
"dependencies": {}
},
"com.unity.modules.imgui": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.jsonserialize": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {}
}
}
}
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions Aspid.Collections/ProjectSettings/AudioManager.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!11 &1
AudioManager:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Volume: 1
Rolloff Scale: 1
Doppler Factor: 1
Default Speaker Mode: 2
m_SampleRate: 0
m_DSPBufferSize: 1024
m_VirtualVoiceCount: 512
m_RealVoiceCount: 32
m_EnableOutputSuspension: 1
m_SpatializerPlugin:
m_AmbisonicDecoderPlugin:
m_DisableAudio: 0
m_VirtualizeEffects: 1
m_RequestedDSPBufferSize: 0
m_AudioFoundation: 0
m_OutputChannelLayout: 2
m_OutputSamplingRate: 48000
6 changes: 6 additions & 0 deletions Aspid.Collections/ProjectSettings/ClusterInputManager.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!236 &1
ClusterInputManager:
m_ObjectHideFlags: 0
m_Inputs: []
46 changes: 46 additions & 0 deletions Aspid.Collections/ProjectSettings/DynamicsManager.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!55 &1
PhysicsManager:
m_ObjectHideFlags: 0
serializedVersion: 24
m_Gravity: {x: 0, y: -9.81, z: 0}
m_DefaultMaterial: {fileID: 0}
m_BounceThreshold: 2
m_DefaultMaxDepenetrationVelocity: 10
m_SleepThreshold: 0.005
m_DefaultContactOffset: 0.01
m_DefaultSolverIterations: 6
m_DefaultSolverVelocityIterations: 1
m_QueriesHitBackfaces: 0
m_QueriesHitTriggers: 1
m_EnableAdaptiveForce: 0
m_ClothInterCollisionDistance: 0.1
m_ClothInterCollisionStiffness: 0.2
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffu
m_SimulationMode: 0
m_ThreadingMode: 0
m_AutoSyncTransforms: 0
m_ReuseCollisionCallbacks: 1
m_InvokeCollisionCallbacks: 1
m_ClothInterCollisionSettingsToggle: 0
m_ClothGravity: {x: 0, y: -9.81, z: 0}
m_ContactPairsMode: 0
m_BroadphaseType: 2
m_WorldBounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 256, y: 256, z: 256}
m_WorldSubdivisions: 8
m_FrictionType: 0
m_EnableEnhancedDeterminism: 0
m_ImprovedPatchFriction: 0
m_GenerateOnTriggerStayEvents: 1
m_SolverType: 0
m_DefaultMaxAngularSpeed: 50
m_ScratchBufferChunkCount: 4
m_CurrentBackendId: 4072204805
m_FastMotionThreshold: 3.4028235e+38
m_SceneBuffersReleaseInterval: 0
m_ReleaseSceneBuffers: 0
m_LogVerbosity: 3
m_IncrementalStaticBroadphase: 1
8 changes: 8 additions & 0 deletions Aspid.Collections/ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1045 &1
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes: []
m_configObjects: {}
53 changes: 53 additions & 0 deletions Aspid.Collections/ProjectSettings/EditorSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!159 &1
EditorSettings:
m_ObjectHideFlags: 0
serializedVersion: 16
m_SerializationMode: 2
m_LineEndingsForNewScripts: 1
m_DefaultBehaviorMode: 0
m_PrefabRegularEnvironment: {fileID: 0}
m_PrefabUIEnvironment: {fileID: 0}
m_SpritePackerMode: 0
m_SpritePackerCacheSize: 10
m_SpritePackerPaddingPower: 1
m_Bc7TextureCompressor: 0
m_EtcTextureCompressorBehavior: 1
m_EtcTextureFastCompressor: 1
m_EtcTextureNormalCompressor: 2
m_EtcTextureBestCompressor: 4
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp;java;cpp;c;mm;m;h
m_ProjectGenerationRootNamespace:
m_EnableTextureStreamingInEditMode: 1
m_EnableTextureStreamingInPlayMode: 1
m_EnableEditorAsyncCPUTextureLoading: 0
m_AsyncShaderCompilation: 1
m_BlockShaders: 0
m_UnlockBlockShaders: 0
m_PrefabModeAllowAutoSave: 1
m_EnterPlayModeOptionsEnabled: 1
m_EnterPlayModeOptions: 0
m_GameObjectNamingDigits: 1
m_GameObjectNamingScheme: 0
m_AssetNamingUsesSpace: 1
m_InspectorUseIMGUIDefaultInspector: 0
m_UseLegacyProbeSampleCount: 0
m_DisableCookiesInLightmapper: 0
m_ShadowmaskStitching: 1
m_AssetPipelineMode: 1
m_RefreshImportMode: 0
m_CacheServerMode: 0
m_CacheServerEndpoint:
m_CacheServerNamespacePrefix: default
m_CacheServerEnableDownload: 1
m_CacheServerEnableUpload: 1
m_CacheServerEnableTls: 0
m_CacheServerImportResultCachingEnabled: 0
m_CacheServerValidationMode: 2
m_CacheServerDownloadBatchSize: 128
m_EnableEnlightenBakedGI: 0
m_ReferencedClipsExactNaming: 1
m_ForceAssetUnloadAndGCOnSceneLoad: 1
m_HideBuildProfileClassicPlatforms: 0
m_UseLegacyHierarchy: 0
Loading
Loading